-
Notifications
You must be signed in to change notification settings - Fork 470
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
Delete test which is unrelated to the analyzer of interest #4853
Conversation
[Fact, WorkItem(1671, "https://github.com/dotnet/roslyn-analyzers/issues/1671")] | ||
public async Task ErrorCase_NoDiagnostic() | ||
{ | ||
// Missing "using System;" causes "Equals" method be marked as IsOverride but with null OverriddenMethod. |
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.
This comment makes me think that this case used to cause a crash.
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.
Most likely, this tests the following code path:
Lines 55 to 56 in b148fa8
containingMethod.OverriddenMethod == null || | |
containingMethod.OverriddenMethod.IsAbstract) |
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.
This comment makes me think that this case used to cause a crash
It may have, but not in this analyzer.
Most likely, this tests the following code path:
We have other tests covering the same path (all tests that contain methods not marked override
).
Codecov Report
@@ Coverage Diff @@
## master #4853 +/- ##
===========================================
+ Coverage 0 95.62% +95.62%
===========================================
Files 0 1177 +1177
Lines 0 269379 +269379
Branches 0 16258 +16258
===========================================
+ Hits 0 257600 +257600
- Misses 0 9677 +9677
- Partials 0 2102 +2102 |
CI failure |
Interesting. Looks like that one is a bug in Roslyn; submitted dotnet/roslyn#51244 to fix. |
Closes #4544