Skip to content

Commit ffa2a09

Browse files
hvitvedCopilot
andcommitted
Shared: Model binding pattern tests
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent fce853d commit ffa2a09

5 files changed

Lines changed: 952 additions & 962 deletions

File tree

‎rust/ql/test/library-tests/controlflow-unstable/Cfg.expected‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
edges
2-
| test.rs:5:5:11:5 | Entry | test.rs:5:24:5:24 | Before a | |
2+
| test.rs:5:5:11:5 | Entry | test.rs:5:24:5:24 | a | |
33
| test.rs:5:5:11:5 | Normal Exit | test.rs:5:5:11:5 | Exit | |
4-
| test.rs:5:24:5:24 | After a [match] | test.rs:5:33:5:33 | Before b | |
5-
| test.rs:5:24:5:24 | Before a | test.rs:5:24:5:24 | a | |
4+
| test.rs:5:24:5:24 | After a [match] | test.rs:5:33:5:33 | b | |
5+
| test.rs:5:24:5:24 | [OuterPatternMatch] a | test.rs:5:24:5:24 | a | |
66
| test.rs:5:24:5:24 | a | test.rs:5:24:5:24 | After a [match] | match |
7-
| test.rs:5:24:5:24 | a | test.rs:5:24:5:24 | a | |
8-
| test.rs:5:33:5:33 | After b [match] | test.rs:5:50:5:50 | Before c | |
9-
| test.rs:5:33:5:33 | Before b | test.rs:5:33:5:33 | b | |
7+
| test.rs:5:24:5:24 | a | test.rs:5:24:5:24 | [OuterPatternMatch] a | match |
8+
| test.rs:5:33:5:33 | After b [match] | test.rs:5:50:5:50 | c | |
9+
| test.rs:5:33:5:33 | [OuterPatternMatch] b | test.rs:5:33:5:33 | b | |
1010
| test.rs:5:33:5:33 | b | test.rs:5:33:5:33 | After b [match] | match |
11-
| test.rs:5:33:5:33 | b | test.rs:5:33:5:33 | b | |
11+
| test.rs:5:33:5:33 | b | test.rs:5:33:5:33 | [OuterPatternMatch] b | match |
1212
| test.rs:5:50:5:50 | After c [match] | test.rs:5:67:11:5 | { ... } | |
13-
| test.rs:5:50:5:50 | Before c | test.rs:5:50:5:50 | c | |
13+
| test.rs:5:50:5:50 | [OuterPatternMatch] c | test.rs:5:50:5:50 | c | |
1414
| test.rs:5:50:5:50 | c | test.rs:5:50:5:50 | After c [match] | match |
15-
| test.rs:5:50:5:50 | c | test.rs:5:50:5:50 | c | |
15+
| test.rs:5:50:5:50 | c | test.rs:5:50:5:50 | [OuterPatternMatch] c | match |
1616
| test.rs:5:67:11:5 | After { ... } | test.rs:5:5:11:5 | Normal Exit | |
1717
| test.rs:5:67:11:5 | { ... } | test.rs:6:9:10:9 | if ... {...} else {...} | |
1818
| test.rs:6:9:10:9 | After if ... {...} else {...} | test.rs:5:67:11:5 | After { ... } | |
@@ -31,32 +31,32 @@ edges
3131
| test.rs:6:21:6:27 | After Some(...) [no-match] | test.rs:6:17:6:31 | After let ... = b [false] | false |
3232
| test.rs:6:21:6:27 | Some(...) | test.rs:6:21:6:27 | After Some(...) [no-match] | no-match |
3333
| test.rs:6:21:6:27 | Some(...) | test.rs:6:21:6:27 | [OuterPatternMatch] Some(...) | match |
34-
| test.rs:6:21:6:27 | [OuterPatternMatch] Some(...) | test.rs:6:26:6:26 | Before d | |
34+
| test.rs:6:21:6:27 | [OuterPatternMatch] Some(...) | test.rs:6:26:6:26 | d | |
3535
| test.rs:6:26:6:26 | After d [match] | test.rs:6:21:6:27 | After Some(...) [match] | match |
36-
| test.rs:6:26:6:26 | Before d | test.rs:6:26:6:26 | d | |
36+
| test.rs:6:26:6:26 | [OuterPatternMatch] d | test.rs:6:26:6:26 | d | |
3737
| test.rs:6:26:6:26 | d | test.rs:6:26:6:26 | After d [match] | match |
38-
| test.rs:6:26:6:26 | d | test.rs:6:26:6:26 | d | |
38+
| test.rs:6:26:6:26 | d | test.rs:6:26:6:26 | [OuterPatternMatch] d | match |
3939
| test.rs:6:31:6:31 | b | test.rs:6:21:6:27 | Some(...) | |
4040
| test.rs:6:33:8:9 | After { ... } | test.rs:6:9:10:9 | After if ... {...} else {...} | |
4141
| test.rs:6:33:8:9 | { ... } | test.rs:7:13:7:13 | d | |
4242
| test.rs:7:13:7:13 | d | test.rs:6:33:8:9 | After { ... } | |
4343
| test.rs:8:16:10:9 | After { ... } | test.rs:6:9:10:9 | After if ... {...} else {...} | |
4444
| test.rs:8:16:10:9 | { ... } | test.rs:9:13:9:17 | false | |
4545
| test.rs:9:13:9:17 | false | test.rs:8:16:10:9 | After { ... } | |
46-
| test.rs:13:5:21:5 | Entry | test.rs:13:25:13:25 | Before a | |
46+
| test.rs:13:5:21:5 | Entry | test.rs:13:25:13:25 | a | |
4747
| test.rs:13:5:21:5 | Normal Exit | test.rs:13:5:21:5 | Exit | |
48-
| test.rs:13:25:13:25 | After a [match] | test.rs:13:34:13:34 | Before b | |
49-
| test.rs:13:25:13:25 | Before a | test.rs:13:25:13:25 | a | |
48+
| test.rs:13:25:13:25 | After a [match] | test.rs:13:34:13:34 | b | |
49+
| test.rs:13:25:13:25 | [OuterPatternMatch] a | test.rs:13:25:13:25 | a | |
5050
| test.rs:13:25:13:25 | a | test.rs:13:25:13:25 | After a [match] | match |
51-
| test.rs:13:25:13:25 | a | test.rs:13:25:13:25 | a | |
52-
| test.rs:13:34:13:34 | After b [match] | test.rs:13:42:13:42 | Before c | |
53-
| test.rs:13:34:13:34 | Before b | test.rs:13:34:13:34 | b | |
51+
| test.rs:13:25:13:25 | a | test.rs:13:25:13:25 | [OuterPatternMatch] a | match |
52+
| test.rs:13:34:13:34 | After b [match] | test.rs:13:42:13:42 | c | |
53+
| test.rs:13:34:13:34 | [OuterPatternMatch] b | test.rs:13:34:13:34 | b | |
5454
| test.rs:13:34:13:34 | b | test.rs:13:34:13:34 | After b [match] | match |
55-
| test.rs:13:34:13:34 | b | test.rs:13:34:13:34 | b | |
55+
| test.rs:13:34:13:34 | b | test.rs:13:34:13:34 | [OuterPatternMatch] b | match |
5656
| test.rs:13:42:13:42 | After c [match] | test.rs:13:59:21:5 | { ... } | |
57-
| test.rs:13:42:13:42 | Before c | test.rs:13:42:13:42 | c | |
57+
| test.rs:13:42:13:42 | [OuterPatternMatch] c | test.rs:13:42:13:42 | c | |
5858
| test.rs:13:42:13:42 | c | test.rs:13:42:13:42 | After c [match] | match |
59-
| test.rs:13:42:13:42 | c | test.rs:13:42:13:42 | c | |
59+
| test.rs:13:42:13:42 | c | test.rs:13:42:13:42 | [OuterPatternMatch] c | match |
6060
| test.rs:13:59:21:5 | After { ... } | test.rs:13:5:21:5 | Normal Exit | |
6161
| test.rs:13:59:21:5 | { ... } | test.rs:14:9:20:9 | if ... {...} else {...} | |
6262
| test.rs:14:9:20:9 | After if ... {...} else {...} | test.rs:13:59:21:5 | After { ... } | |
@@ -74,10 +74,10 @@ edges
7474
| test.rs:14:17:14:25 | After let ... = b [true] | test.rs:14:12:14:25 | After ... && ... [true] | true |
7575
| test.rs:14:17:14:25 | let ... = b | test.rs:14:25:14:25 | b | |
7676
| test.rs:14:21:14:21 | After d [match] | test.rs:14:17:14:25 | After let ... = b [true] | true |
77-
| test.rs:14:21:14:21 | Before d | test.rs:14:21:14:21 | d | |
77+
| test.rs:14:21:14:21 | [OuterPatternMatch] d | test.rs:14:21:14:21 | d | |
7878
| test.rs:14:21:14:21 | d | test.rs:14:21:14:21 | After d [match] | match |
79-
| test.rs:14:21:14:21 | d | test.rs:14:21:14:21 | d | |
80-
| test.rs:14:25:14:25 | b | test.rs:14:21:14:21 | Before d | |
79+
| test.rs:14:21:14:21 | d | test.rs:14:21:14:21 | [OuterPatternMatch] d | match |
80+
| test.rs:14:25:14:25 | b | test.rs:14:21:14:21 | d | |
8181
| test.rs:15:16:15:16 | After c [false] | test.rs:14:12:15:16 | After ... && ... [false] | false |
8282
| test.rs:15:16:15:16 | After c [true] | test.rs:14:12:15:16 | After ... && ... [true] | true |
8383
| test.rs:15:16:15:16 | c | test.rs:15:16:15:16 | After c [false] | false |

0 commit comments

Comments
 (0)