File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
csharp/ql/test/query-tests/Bad Practices/Control-Flow/ConstantCondition Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ #select
1
2
| ConstantCondition.cs:38:18:38:29 | (...) ... | Expression is always 'null'. |
2
3
| ConstantCondition.cs:39:18:39:24 | (...) ... | Expression is never 'null'. |
3
4
| ConstantCondition.cs:46:17:46:26 | (...) ... | Expression is always 'null'. |
10
11
| ConstantCondition.cs:95:13:95:13 | _ | Pattern always matches. |
11
12
| ConstantCondition.cs:114:13:114:14 | access to parameter b1 | Condition always evaluates to 'true'. |
12
13
| ConstantCondition.cs:114:19:114:20 | access to parameter b2 | Condition always evaluates to 'true'. |
14
+ | ConstantCondition.cs:132:13:132:13 | _ | Pattern always matches. |
15
+ | ConstantCondition.cs:141:22:141:22 | _ | Pattern always matches. |
16
+ | ConstantCondition.cs:150:22:150:22 | _ | Pattern always matches. |
17
+ | ConstantCondition.cs:152:22:152:22 | _ | Pattern always matches. |
13
18
| ConstantConditionBad.cs:5:16:5:20 | ... > ... | Condition always evaluates to 'false'. |
14
19
| ConstantConditionalExpressionCondition.cs:11:22:11:34 | ... == ... | Condition always evaluates to 'true'. |
15
20
| ConstantConditionalExpressionCondition.cs:12:21:12:25 | false | Condition always evaluates to 'false'. |
28
33
| ConstantWhileCondition.cs:12:20:12:32 | ... == ... | Condition always evaluates to 'true'. |
29
34
| ConstantWhileCondition.cs:16:20:16:24 | false | Condition always evaluates to 'false'. |
30
35
| ConstantWhileCondition.cs:24:20:24:29 | ... == ... | Condition always evaluates to 'true'. |
36
+ testFailures
37
+ | ConstantCondition.cs:132:13:132:13 | Pattern always matches. | Unexpected result: Alert |
38
+ | ConstantCondition.cs:150:22:150:22 | Pattern always matches. | Unexpected result: Alert |
39
+ | ConstantCondition.cs:152:22:152:22 | Pattern always matches. | Unexpected result: Alert |
You can’t perform that action at this time.
0 commit comments