-
Notifications
You must be signed in to change notification settings - Fork 763
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
improve test coverage: OpenTelemetry.Api CallerArgumentExpressionAttribute
#3362
improve test coverage: OpenTelemetry.Api CallerArgumentExpressionAttribute
#3362
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3362 +/- ##
==========================================
- Coverage 86.58% 86.50% -0.09%
==========================================
Files 275 275
Lines 9978 9978
==========================================
- Hits 8639 8631 -8
- Misses 1339 1347 +8
|
test/OpenTelemetry.Tests/Internal/CallerArgumentExpressionAttributeTests.cs
Outdated
Show resolved
Hide resolved
…ub.com/TimothyMothra/opentelemetry-dotnet into 3353_CallerArgumentExpressionAttribute
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I am curious about
This value for Guard isn't correct. Seems that CodeCov is only counting the first class in this file.
If CallerArgumentExpressionAttribute
was moved to its own file does CodeCov account for things correctly? Might be worth experimenting, but I don't feel strongly it has to block this PR.
We could experiment with moving |
This comment was marked as outdated.
This comment was marked as outdated.
Guard
and CallerArgumentExpressionAttribute
This reverts commit 7c44451.
…ub.com/TimothyMothra/opentelemetry-dotnet into 3353_CallerArgumentExpressionAttribute
I reverted the change to Guard.cs. |
Guard
and CallerArgumentExpressionAttribute
CallerArgumentExpressionAttribute
Contributes to #3353
As of today;
This value for Guard isn't correct. Seems that CodeCov is only counting the first class in this file.
Screenshot
Changes
CallerArgumentExpressionAttribute
with a link to the original implementation. link.CallerArgumentExpressionAttributeTests
, borrowed from linkpublic class GuardTest
.#pragma warning disable SA1402 // File may only contain a single type
#pragma warning disable SA1649 // File name should match first type name
Please provide a brief description of the changes here.
For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes