-
Notifications
You must be signed in to change notification settings - Fork 229
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
S3655: Prepare TestCases #6844
S3655: Prepare TestCases #6844
Conversation
0cfc91d
to
ed1f90c
Compare
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
There are a couple of test cases which I don't fully understand, but they weren't introduced in this PR.
|
||
public class EmptyNullableValueAccess | ||
{ | ||
protected void LogFailure(Exception e) |
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.
Any idea what this test case could have been added here? The method doesn't work with any Nullable<T>
type. What is it supposed to test?
If the reason is that the rule shouldn't ignore reference types then a comment for this would be helpful.
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.
Based on commit history, this was supposed to prove that CFG is build for try
block.
The test itself could be removed. It has nothing to do with nullable values.
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.
Removed
} | ||
|
||
private int i0; | ||
public void SetI0() |
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.
Any idea which scenario is being tested here? The SetI0
method isn't called from anywhere.
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.
Probably some debugging leftovers from the time the old CFG or SE was build.
Can be safely removed
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.
Both the SetI0
method and its i0
have been removed.
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
… as FIXME Non-compliant
ed1f90c
to
585f288
Compare
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Task 1 of #6794