Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullable for tests-projects with already handled projects #1370

Merged
merged 6 commits into from
Oct 9, 2023

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Sep 22, 2023

Towards #894.

Changes

Nullable for tests-projects with already handled projects.

While reviewing consider to check each commit separately.

For significant contributions please make sure you have completed the following items:

  • [ ] Appropriate CHANGELOG.md updated for non-trivial changes
  • [ ] Design discussion issue #
  • [ ] Changes in public API reviewed

@codecov
Copy link

codecov bot commented Sep 22, 2023

Codecov Report

Merging #1370 (608e19a) into main (71655ce) will increase coverage by 5.94%.
Report is 19 commits behind head on main.
The diff coverage is 41.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1370      +/-   ##
==========================================
+ Coverage   73.91%   79.86%   +5.94%     
==========================================
  Files         267      165     -102     
  Lines        9615     4703    -4912     
==========================================
- Hits         7107     3756    -3351     
+ Misses       2508      947    -1561     
Flag Coverage Δ
unittests-Instrumentation.StackExchangeRedis 75.88% <ø> (?)
unittests-Solution 80.08% <41.17%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...searchClient/ElasticsearchClientInstrumentation.cs 100.00% <100.00%> (ø)
...ityFrameworkCore/EntityFrameworkInstrumentation.cs 100.00% <100.00%> (ø)
...ation/EntityFrameworkInstrumentationEventSource.cs 12.00% <100.00%> (ø)
...Instrumentation.Quartz/QuartzJobInstrumentation.cs 83.33% <100.00%> (+1.51%) ⬆️
...ry.ResourceDetectors.AWS/AWSEBSResourceDetector.cs 92.30% <ø> (+1.00%) ⬆️
...ntation/ElasticsearchInstrumentationEventSource.cs 7.69% <16.66%> (-4.81%) ⬇️
...Implementation/QuartzInstrumentationEventSource.cs 33.33% <0.00%> (-16.67%) ⬇️

... and 113 files with indirect coverage changes

@Kielek Kielek marked this pull request as ready for review September 22, 2023 09:00
@Kielek Kielek requested a review from a team September 22, 2023 09:00
@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Sep 30, 2023
@Kielek Kielek removed the Stale label Oct 2, 2023
@@ -41,6 +41,7 @@ public void AddTraceEnricherOfTRegistersEnricher()
using var source = new ActivitySource(SourceName);
using (var activity = source.StartActivity(SourceName))
{
Assert.NotNull(activity);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really need these Assert.NotNull(activity); statements. The unit tests would fail anyway if the activity ends up being null.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can use either use ! as null-forgiving operator or add this assertion. Assertion looks better IMO.

@Kielek Kielek merged commit 26ba08f into open-telemetry:main Oct 9, 2023
24 checks passed
@Kielek Kielek deleted the nullable-test branch October 9, 2023 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants