Skip to content

Commit 697064d

Browse files
committed
C# tests
1 parent 91523c3 commit 697064d

11 files changed

Lines changed: 2341 additions & 0 deletions

‎csharp/ql/test/library-tests/controlflow/graph/BasicBlock.expected‎

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,22 @@
858858
| MultiImplementationB.cs:25:7:25:8 | Before call to method <object initializer> | MultiImplementationB.cs:25:7:25:8 | {...} | 8 |
859859
| MultiImplementationB.cs:30:15:30:16 | Before call to method <object initializer> | MultiImplementationB.cs:30:15:30:16 | {...} | 8 |
860860
| MultiImplementationB.cs:32:17:32:17 | 0 | MultiImplementationA.cs:36:9:36:10 | Normal Exit | 2 |
861+
| Negations.cs:1:7:1:15 | Entry | Negations.cs:1:7:1:15 | Exit | 11 |
862+
| Negations.cs:3:17:3:20 | Entry | Negations.cs:3:17:3:20 | Exit | 5 |
863+
| Negations.cs:5:17:5:22 | Entry | Negations.cs:5:17:5:22 | Exit | 29 |
864+
| Negations.cs:14:17:14:29 | Entry | Negations.cs:14:17:14:29 | Exit | 29 |
865+
| Negations.cs:23:17:23:25 | Entry | Negations.cs:23:17:23:25 | Exit | 33 |
866+
| Negations.cs:32:17:32:31 | Entry | Negations.cs:34:32:34:34 | access to type Int32 | 9 |
867+
| Negations.cs:34:9:37:40 | After if (...) ... | Negations.cs:32:17:32:31 | Exit | 10 |
868+
| Negations.cs:34:32:34:34 | After access to type Int32 [match] | Negations.cs:35:13:35:36 | After ...; | 10 |
869+
| Negations.cs:34:32:34:34 | After access to type Int32 [no-match] | Negations.cs:37:13:37:40 | After ...; | 10 |
870+
| Negations.cs:41:17:41:33 | Entry | Negations.cs:43:32:43:34 | access to type Int32 | 10 |
871+
| Negations.cs:43:9:46:42 | After if (...) ... | Negations.cs:41:17:41:33 | Exit | 10 |
872+
| Negations.cs:43:32:43:34 | After access to type Int32 [match] | Negations.cs:43:32:43:34 | After access to type Int32 [match] | 1 |
873+
| Negations.cs:43:32:43:34 | After access to type Int32 [no-match] | Negations.cs:43:39:43:44 | access to type String | 2 |
874+
| Negations.cs:43:32:43:44 | After ... or ... [match] | Negations.cs:44:13:44:38 | After ...; | 10 |
875+
| Negations.cs:43:39:43:44 | After access to type String [match] | Negations.cs:43:39:43:44 | After access to type String [match] | 1 |
876+
| Negations.cs:43:39:43:44 | After access to type String [no-match] | Negations.cs:46:13:46:42 | After ...; | 11 |
861877
| NullCoalescing.cs:1:7:1:20 | Entry | NullCoalescing.cs:1:7:1:20 | Exit | 11 |
862878
| NullCoalescing.cs:3:9:3:10 | Entry | NullCoalescing.cs:3:23:3:23 | access to parameter i | 4 |
863879
| NullCoalescing.cs:3:23:3:23 | After access to parameter i [non-null] | NullCoalescing.cs:3:23:3:23 | After access to parameter i [non-null] | 1 |
@@ -1011,6 +1027,67 @@
10111027
| Qualifiers.cs:7:16:7:21 | Entry | Qualifiers.cs:7:16:7:21 | Exit | 4 |
10121028
| Qualifiers.cs:8:23:8:34 | Entry | Qualifiers.cs:8:23:8:34 | Exit | 4 |
10131029
| Qualifiers.cs:10:10:10:10 | Entry | Qualifiers.cs:10:10:10:10 | Exit | 149 |
1030+
| Slices.cs:1:7:1:12 | Entry | Slices.cs:1:7:1:12 | Exit | 11 |
1031+
| Slices.cs:3:17:3:20 | Entry | Slices.cs:3:47:3:56 | [ ... ] | 5 |
1032+
| Slices.cs:3:38:3:56 | After ... is ... | Slices.cs:3:17:3:20 | Exit | 3 |
1033+
| Slices.cs:3:47:3:56 | After [ ... ] [no-match] | Slices.cs:3:47:3:56 | After [ ... ] [no-match] | 1 |
1034+
| Slices.cs:3:47:3:56 | [OuterPatternMatch] [ ... ] | Slices.cs:3:48:3:48 | 1 | 2 |
1035+
| Slices.cs:3:48:3:48 | After 1 [match] | Slices.cs:3:55:3:55 | 2 | 4 |
1036+
| Slices.cs:3:48:3:48 | After 1 [no-match] | Slices.cs:3:48:3:48 | After 1 [no-match] | 1 |
1037+
| Slices.cs:3:55:3:55 | After 2 [match] | Slices.cs:3:47:3:56 | After [ ... ] [match] | 2 |
1038+
| Slices.cs:3:55:3:55 | After 2 [no-match] | Slices.cs:3:55:3:55 | After 2 [no-match] | 1 |
1039+
| Slices.cs:5:17:5:23 | Entry | Slices.cs:5:50:5:68 | [ ... ] | 5 |
1040+
| Slices.cs:5:41:5:68 | After ... is ... | Slices.cs:5:17:5:23 | Exit | 3 |
1041+
| Slices.cs:5:50:5:68 | After [ ... ] [no-match] | Slices.cs:5:50:5:68 | After [ ... ] [no-match] | 1 |
1042+
| Slices.cs:5:50:5:68 | [OuterPatternMatch] [ ... ] | Slices.cs:5:51:5:51 | 1 | 2 |
1043+
| Slices.cs:5:51:5:51 | After 1 [match] | Slices.cs:5:67:5:67 | 2 | 9 |
1044+
| Slices.cs:5:51:5:51 | After 1 [no-match] | Slices.cs:5:51:5:51 | After 1 [no-match] | 1 |
1045+
| Slices.cs:5:67:5:67 | After 2 [match] | Slices.cs:5:50:5:68 | After [ ... ] [match] | 2 |
1046+
| Slices.cs:5:67:5:67 | After 2 [no-match] | Slices.cs:5:67:5:67 | After 2 [no-match] | 1 |
1047+
| Slices.cs:7:17:7:23 | Entry | Slices.cs:7:50:7:61 | [ ... ] | 5 |
1048+
| Slices.cs:7:41:7:61 | After ... is ... | Slices.cs:7:17:7:23 | Exit | 3 |
1049+
| Slices.cs:7:50:7:61 | After [ ... ] [no-match] | Slices.cs:7:50:7:61 | After [ ... ] [no-match] | 1 |
1050+
| Slices.cs:7:50:7:61 | [OuterPatternMatch] [ ... ] | Slices.cs:7:51:7:51 | 1 | 2 |
1051+
| Slices.cs:7:51:7:51 | After 1 [match] | Slices.cs:7:60:7:60 | 2 | 6 |
1052+
| Slices.cs:7:51:7:51 | After 1 [no-match] | Slices.cs:7:51:7:51 | After 1 [no-match] | 1 |
1053+
| Slices.cs:7:60:7:60 | After 2 [match] | Slices.cs:7:50:7:61 | After [ ... ] [match] | 2 |
1054+
| Slices.cs:7:60:7:60 | After 2 [no-match] | Slices.cs:7:60:7:60 | After 2 [no-match] | 1 |
1055+
| Slices.cs:9:17:9:24 | Entry | Slices.cs:9:51:9:74 | [ ... ] | 5 |
1056+
| Slices.cs:9:42:9:74 | After ... is ... | Slices.cs:9:17:9:24 | Exit | 3 |
1057+
| Slices.cs:9:51:9:74 | After [ ... ] [no-match] | Slices.cs:9:51:9:74 | After [ ... ] [no-match] | 1 |
1058+
| Slices.cs:9:51:9:74 | [OuterPatternMatch] [ ... ] | Slices.cs:9:52:9:52 | 1 | 2 |
1059+
| Slices.cs:9:52:9:52 | After 1 [match] | Slices.cs:9:58:9:70 | { ... } | 4 |
1060+
| Slices.cs:9:52:9:52 | After 1 [no-match] | Slices.cs:9:52:9:52 | After 1 [no-match] | 1 |
1061+
| Slices.cs:9:58:9:70 | After { ... } [no-match] | Slices.cs:9:55:9:70 | After .. [no-match] | 3 |
1062+
| Slices.cs:9:58:9:70 | [OuterPatternMatch] { ... } | Slices.cs:9:68:9:68 | 2 | 2 |
1063+
| Slices.cs:9:68:9:68 | After 2 [match] | Slices.cs:9:73:9:73 | 2 | 5 |
1064+
| Slices.cs:9:68:9:68 | After 2 [no-match] | Slices.cs:9:68:9:68 | After 2 [no-match] | 1 |
1065+
| Slices.cs:9:73:9:73 | After 2 [match] | Slices.cs:9:51:9:74 | After [ ... ] [match] | 2 |
1066+
| Slices.cs:9:73:9:73 | After 2 [no-match] | Slices.cs:9:73:9:73 | After 2 [no-match] | 1 |
1067+
| Slices.cs:11:17:11:20 | Entry | Slices.cs:11:47:11:60 | [ ... ] | 5 |
1068+
| Slices.cs:11:38:11:60 | After ... is ... | Slices.cs:11:17:11:20 | Exit | 3 |
1069+
| Slices.cs:11:47:11:60 | After [ ... ] [no-match] | Slices.cs:11:47:11:60 | After [ ... ] [no-match] | 1 |
1070+
| Slices.cs:11:47:11:60 | [OuterPatternMatch] [ ... ] | Slices.cs:11:48:11:48 | 1 | 2 |
1071+
| Slices.cs:11:48:11:48 | After 1 [match] | Slices.cs:11:54:11:56 | [ ... ] | 3 |
1072+
| Slices.cs:11:48:11:48 | After 1 [no-match] | Slices.cs:11:48:11:48 | After 1 [no-match] | 1 |
1073+
| Slices.cs:11:54:11:56 | After [ ... ] [no-match] | Slices.cs:11:51:11:56 | After .. [no-match] | 2 |
1074+
| Slices.cs:11:54:11:56 | [OuterPatternMatch] [ ... ] | Slices.cs:11:55:11:55 | 3 | 2 |
1075+
| Slices.cs:11:55:11:55 | After 3 [match] | Slices.cs:11:59:11:59 | 2 | 4 |
1076+
| Slices.cs:11:55:11:55 | After 3 [no-match] | Slices.cs:11:55:11:55 | After 3 [no-match] | 1 |
1077+
| Slices.cs:11:59:11:59 | After 2 [match] | Slices.cs:11:47:11:60 | After [ ... ] [match] | 2 |
1078+
| Slices.cs:11:59:11:59 | After 2 [no-match] | Slices.cs:11:59:11:59 | After 2 [no-match] | 1 |
1079+
| Slices.cs:13:17:13:27 | Entry | Slices.cs:13:54:13:71 | [ ... ] | 5 |
1080+
| Slices.cs:13:45:13:71 | After ... is ... | Slices.cs:13:17:13:27 | Exit | 3 |
1081+
| Slices.cs:13:54:13:71 | After [ ... ] [no-match] | Slices.cs:13:54:13:71 | After [ ... ] [no-match] | 1 |
1082+
| Slices.cs:13:54:13:71 | [OuterPatternMatch] [ ... ] | Slices.cs:13:55:13:55 | 1 | 2 |
1083+
| Slices.cs:13:55:13:55 | After 1 [match] | Slices.cs:13:65:13:67 | [ ... ] | 4 |
1084+
| Slices.cs:13:55:13:55 | After 1 [no-match] | Slices.cs:13:55:13:55 | After 1 [no-match] | 1 |
1085+
| Slices.cs:13:65:13:67 | After [ ... ] [no-match] | Slices.cs:13:70:13:70 | 2 | 4 |
1086+
| Slices.cs:13:65:13:67 | [OuterPatternMatch] [ ... ] | Slices.cs:13:66:13:66 | 3 | 2 |
1087+
| Slices.cs:13:66:13:66 | After 3 [match] | Slices.cs:13:58:13:67 | After .. [no-match] | 4 |
1088+
| Slices.cs:13:66:13:66 | After 3 [no-match] | Slices.cs:13:66:13:66 | After 3 [no-match] | 1 |
1089+
| Slices.cs:13:70:13:70 | After 2 [match] | Slices.cs:13:54:13:71 | After [ ... ] [match] | 2 |
1090+
| Slices.cs:13:70:13:70 | After 2 [no-match] | Slices.cs:13:70:13:70 | After 2 [no-match] | 1 |
10141091
| Switch.cs:3:7:3:12 | Entry | Switch.cs:3:7:3:12 | Exit | 11 |
10151092
| Switch.cs:5:10:5:11 | Entry | Switch.cs:5:10:5:11 | Exit | 9 |
10161093
| Switch.cs:10:10:10:11 | Entry | Switch.cs:14:18:14:20 | "a" | 7 |

0 commit comments

Comments
 (0)