Skip to content

Commit c83c654

Browse files
committed
Test changes to investigate
1 parent e70ad26 commit c83c654

File tree

9 files changed

+119
-110
lines changed

9 files changed

+119
-110
lines changed

go/ql/test/library-tests/semmle/go/dataflow/GlobalValueNumbering/GlobalValueNumber.expected

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,38 @@
11
| main.go:6:2:6:5 | 1 | main.go:14:7:14:7 | 1 |
2-
| main.go:10:2:10:2 | definition of x | main.go:10:7:10:7 | 0 |
2+
| main.go:10:2:10:2 | SSA def(x) | main.go:10:7:10:7 | 0 |
33
| main.go:10:7:10:7 | 0 | main.go:10:7:10:7 | 0 |
4-
| main.go:11:6:11:6 | definition of y | main.go:10:7:10:7 | 0 |
4+
| main.go:11:6:11:6 | SSA def(y) | main.go:10:7:10:7 | 0 |
55
| main.go:11:6:11:6 | zero value for y | main.go:10:7:10:7 | 0 |
66
| main.go:12:2:12:18 | call to Println | main.go:12:2:12:18 | call to Println |
77
| main.go:12:14:12:14 | x | main.go:10:7:10:7 | 0 |
88
| main.go:12:17:12:17 | y | main.go:10:7:10:7 | 0 |
9-
| main.go:14:2:14:2 | definition of z | main.go:14:7:14:7 | 1 |
9+
| main.go:14:2:14:2 | SSA def(z) | main.go:14:7:14:7 | 1 |
1010
| main.go:14:7:14:7 | 1 | main.go:14:7:14:7 | 1 |
1111
| main.go:15:2:15:9 | call to bump | main.go:15:2:15:9 | call to bump |
1212
| main.go:16:2:16:21 | call to Println | main.go:16:2:16:21 | call to Println |
1313
| main.go:16:14:16:14 | x | main.go:10:7:10:7 | 0 |
1414
| main.go:16:17:16:17 | y | main.go:10:7:10:7 | 0 |
15-
| main.go:18:2:18:3 | definition of ss | main.go:18:8:18:24 | call to make |
15+
| main.go:18:2:18:3 | SSA def(ss) | main.go:18:8:18:24 | call to make |
1616
| main.go:18:8:18:24 | call to make | main.go:18:8:18:24 | call to make |
1717
| main.go:18:23:18:23 | 3 | main.go:18:23:18:23 | 3 |
1818
| main.go:19:5:19:5 | 2 | main.go:19:5:19:5 | 2 |
1919
| main.go:19:10:19:24 | "Hello, world!" | main.go:19:10:19:24 | "Hello, world!" |
2020
| main.go:20:2:20:16 | call to Println | main.go:20:2:20:16 | call to Println |
2121
| main.go:23:14:23:16 | implicit read of res | main.go:24:8:24:8 | 4 |
2222
| main.go:23:14:23:16 | zero value for res | main.go:10:7:10:7 | 0 |
23-
| main.go:24:2:24:4 | definition of res | main.go:24:8:24:8 | 4 |
23+
| main.go:24:2:24:4 | SSA def(res) | main.go:24:8:24:8 | 4 |
2424
| main.go:24:8:24:8 | 4 | main.go:24:8:24:8 | 4 |
2525
| main.go:28:15:28:17 | implicit read of res | main.go:30:9:30:9 | 6 |
2626
| main.go:28:15:28:17 | zero value for res | main.go:10:7:10:7 | 0 |
2727
| main.go:29:8:29:8 | 5 | main.go:29:8:29:8 | 5 |
2828
| main.go:30:9:30:9 | 6 | main.go:30:9:30:9 | 6 |
29-
| main.go:30:9:30:9 | definition of res | main.go:30:9:30:9 | 6 |
30-
| main.go:33:15:33:17 | definition of res | main.go:10:7:10:7 | 0 |
29+
| main.go:30:9:30:9 | SSA def(res) | main.go:30:9:30:9 | 6 |
3130
| main.go:33:15:33:17 | zero value for res | main.go:10:7:10:7 | 0 |
32-
| main.go:34:2:34:4 | definition of res | main.go:34:8:34:8 | 7 |
3331
| main.go:34:8:34:8 | 7 | main.go:34:8:34:8 | 7 |
3432
| main.go:35:8:37:4 | function call | main.go:35:8:37:4 | function call |
35-
| main.go:36:3:36:5 | definition of res | main.go:36:9:36:9 | 8 |
3633
| main.go:36:9:36:9 | 8 | main.go:36:9:36:9 | 8 |
3734
| main.go:38:9:38:9 | 9 | main.go:38:9:38:9 | 9 |
38-
| main.go:38:9:38:9 | definition of res | main.go:38:9:38:9 | 9 |
35+
| main.go:38:9:38:9 | SSA def(res) | main.go:38:9:38:9 | 9 |
3936
| regressions.go:5:11:5:31 | call to Sizeof | regressions.go:5:11:5:31 | call to Sizeof |
4037
| regressions.go:7:11:7:15 | false | regressions.go:7:11:7:15 | false |
4138
| regressions.go:9:11:9:12 | !... | regressions.go:11:11:11:14 | true |
Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,40 @@
1-
| main.go:13:6:13:6 | definition of x |
2-
| main.go:14:2:14:2 | definition of y |
3-
| main.go:17:3:17:3 | definition of y |
4-
| main.go:19:2:19:10 | y = phi(def@14:2, def@17:3) |
5-
| main.go:21:3:21:3 | definition of x |
6-
| main.go:23:2:23:10 | x = phi(def@13:6, def@21:3) |
7-
| main.go:26:10:26:10 | definition of x |
8-
| main.go:27:2:27:2 | definition of a |
9-
| main.go:27:5:27:5 | definition of b |
10-
| main.go:29:3:29:3 | definition of a |
11-
| main.go:29:6:29:6 | definition of b |
12-
| main.go:31:9:31:9 | a = phi(def@27:2, def@29:3) |
13-
| main.go:31:9:31:9 | b = phi(def@27:5, def@29:6) |
14-
| main.go:34:11:34:11 | definition of x |
15-
| main.go:39:2:39:2 | definition of x |
16-
| main.go:40:2:40:4 | definition of ptr |
17-
| main.go:48:2:48:7 | definition of result |
18-
| main.go:52:14:52:19 | definition of result |
19-
| main.go:57:6:57:6 | definition of x |
20-
| main.go:58:6:58:9 | x = phi(def@57:6, def@59:3) |
21-
| main.go:59:3:59:3 | definition of x |
22-
| main.go:63:2:63:2 | definition of y |
23-
| main.go:64:6:64:6 | definition of i |
24-
| main.go:64:16:64:18 | definition of i |
25-
| main.go:65:6:65:9 | i = phi(def@64:16, def@64:6) |
26-
| main.go:65:6:65:9 | y = phi(def@63:2, def@68:3) |
27-
| main.go:68:3:68:3 | definition of y |
28-
| main.go:73:6:73:6 | definition of i |
29-
| main.go:73:16:73:18 | definition of i |
30-
| main.go:74:3:74:3 | definition of z |
31-
| main.go:74:3:74:3 | i = phi(def@73:16, def@73:6) |
32-
| main.go:82:25:82:25 | definition of b |
33-
| main.go:83:2:83:2 | definition of x |
34-
| main.go:84:5:84:5 | definition of a |
35-
| main.go:95:22:95:28 | definition of wrapper |
36-
| main.go:96:2:96:2 | definition of x |
37-
| main.go:97:2:99:3 | capture variable x |
38-
| main.go:98:3:98:3 | definition of x |
39-
| main.go:112:3:112:3 | definition of p |
40-
| main.go:114:3:114:3 | definition of p |
41-
| main.go:117:2:117:2 | p = phi(def@112:3, def@114:3) |
1+
| main.go:13:6:13:6 | SSA def(x) |
2+
| main.go:14:2:14:2 | SSA def(y) |
3+
| main.go:17:3:17:3 | SSA def(y) |
4+
| main.go:19:2:19:10 | SSA phi(y) |
5+
| main.go:21:3:21:3 | SSA def(x) |
6+
| main.go:23:2:23:10 | SSA phi(x) |
7+
| main.go:26:10:26:10 | SSA def(x) |
8+
| main.go:27:2:27:2 | SSA def(a) |
9+
| main.go:27:5:27:5 | SSA def(b) |
10+
| main.go:29:3:29:3 | SSA def(a) |
11+
| main.go:29:6:29:6 | SSA def(b) |
12+
| main.go:31:9:31:9 | SSA phi(a) |
13+
| main.go:31:9:31:9 | SSA phi(b) |
14+
| main.go:34:11:34:11 | SSA def(x) |
15+
| main.go:39:2:39:2 | SSA def(x) |
16+
| main.go:40:2:40:4 | SSA def(ptr) |
17+
| main.go:48:2:48:7 | SSA def(result) |
18+
| main.go:52:14:52:19 | SSA def(result) |
19+
| main.go:57:6:57:6 | SSA def(x) |
20+
| main.go:58:6:58:9 | SSA phi(x) |
21+
| main.go:59:3:59:3 | SSA def(x) |
22+
| main.go:63:2:63:2 | SSA def(y) |
23+
| main.go:64:6:64:6 | SSA def(i) |
24+
| main.go:64:16:64:18 | SSA def(i) |
25+
| main.go:65:6:65:9 | SSA phi(i) |
26+
| main.go:65:6:65:9 | SSA phi(y) |
27+
| main.go:68:3:68:3 | SSA def(y) |
28+
| main.go:73:6:73:6 | SSA def(i) |
29+
| main.go:73:16:73:18 | SSA def(i) |
30+
| main.go:74:3:74:3 | SSA def(z) |
31+
| main.go:74:3:74:3 | SSA phi(i) |
32+
| main.go:82:25:82:25 | SSA def(b) |
33+
| main.go:83:2:83:2 | SSA def(x) |
34+
| main.go:84:5:84:5 | SSA def(a) |
35+
| main.go:95:22:95:28 | SSA def(wrapper) |
36+
| main.go:96:2:96:2 | SSA def(x) |
37+
| main.go:97:2:99:3 | SSA def(x) |
38+
| main.go:112:3:112:3 | SSA def(p) |
39+
| main.go:114:3:114:3 | SSA def(p) |
40+
| main.go:117:2:117:2 | SSA phi(p) |
Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,45 @@
1-
| main.go:13:6:13:6 | (def@13:6) | x |
2-
| main.go:14:2:14:2 | (def@14:2) | y |
3-
| main.go:17:3:17:3 | (def@17:3) | y |
4-
| main.go:19:2:19:10 | (phi@19:2) | y |
5-
| main.go:21:3:21:3 | (def@21:3) | x |
6-
| main.go:23:2:23:10 | (phi@23:2) | x |
7-
| main.go:26:10:26:10 | (def@26:10) | x |
8-
| main.go:27:2:27:2 | (def@27:2) | a |
9-
| main.go:27:5:27:5 | (def@27:5) | b |
10-
| main.go:29:3:29:3 | (def@29:3) | a |
11-
| main.go:29:6:29:6 | (def@29:6) | b |
12-
| main.go:31:9:31:9 | (phi@31:9) | a |
13-
| main.go:31:9:31:9 | (phi@31:9) | b |
14-
| main.go:34:11:34:11 | (def@34:11) | x |
15-
| main.go:39:2:39:2 | (def@39:2) | x |
16-
| main.go:40:2:40:4 | (def@40:2) | ptr |
17-
| main.go:48:2:48:7 | (def@48:2) | result |
18-
| main.go:52:14:52:19 | (def@52:14) | result |
19-
| main.go:57:6:57:6 | (def@57:6) | x |
20-
| main.go:58:6:58:9 | (phi@58:6) | x |
21-
| main.go:59:3:59:3 | (def@59:3) | x |
22-
| main.go:63:2:63:2 | (def@63:2) | y |
23-
| main.go:64:6:64:6 | (def@64:6) | i |
24-
| main.go:64:16:64:18 | (def@64:16) | i |
25-
| main.go:65:6:65:9 | (phi@65:6) | i |
26-
| main.go:65:6:65:9 | (phi@65:6) | y |
27-
| main.go:68:3:68:3 | (def@68:3) | y |
28-
| main.go:73:6:73:6 | (def@73:6) | i |
29-
| main.go:73:16:73:18 | (def@73:16) | i |
30-
| main.go:74:3:74:3 | (def@74:3) | z |
31-
| main.go:74:3:74:3 | (phi@74:3) | i |
32-
| main.go:82:25:82:25 | (def@82:25) | b |
33-
| main.go:83:2:83:2 | (def@83:2) | x |
34-
| main.go:84:5:84:5 | (def@84:5) | a |
35-
| main.go:95:22:95:28 | (def@95:22) | wrapper |
36-
| main.go:95:22:95:28 | (def@95:22).s | wrapper.s |
37-
| main.go:96:2:96:2 | (def@96:2) | x |
38-
| main.go:97:2:99:3 | (capture@97:2) | x |
39-
| main.go:98:3:98:3 | (def@98:3) | x |
40-
| main.go:112:3:112:3 | (def@112:3) | p |
41-
| main.go:114:3:114:3 | (def@114:3) | p |
42-
| main.go:117:2:117:2 | (phi@117:2) | p |
43-
| main.go:117:2:117:2 | (phi@117:2).a | p.a |
44-
| main.go:117:2:117:2 | (phi@117:2).b | p.b |
45-
| main.go:117:2:117:2 | (phi@117:2).b.a | p.b.a |
46-
| main.go:117:2:117:2 | (phi@117:2).c | p.c |
1+
| main.go:13:6:13:6 | (SSA def(x)) | x |
2+
| main.go:14:2:14:2 | (SSA def(y)) | y |
3+
| main.go:17:3:17:3 | (SSA def(y)) | y |
4+
| main.go:19:2:19:10 | (SSA phi(y)) | y |
5+
| main.go:21:3:21:3 | (SSA def(x)) | x |
6+
| main.go:23:2:23:10 | (SSA phi(x)) | x |
7+
| main.go:26:10:26:10 | (SSA def(x)) | x |
8+
| main.go:27:2:27:2 | (SSA def(a)) | a |
9+
| main.go:27:5:27:5 | (SSA def(b)) | b |
10+
| main.go:29:3:29:3 | (SSA def(a)) | a |
11+
| main.go:29:6:29:6 | (SSA def(b)) | b |
12+
| main.go:31:9:31:9 | (SSA phi(a)) | a |
13+
| main.go:31:9:31:9 | (SSA phi(b)) | b |
14+
| main.go:34:11:34:11 | (SSA def(x)) | x |
15+
| main.go:39:2:39:2 | (SSA def(x)) | x |
16+
| main.go:40:2:40:4 | (SSA def(ptr)) | ptr |
17+
| main.go:48:2:48:7 | (SSA def(result)) | result |
18+
| main.go:52:14:52:19 | (SSA def(result)) | result |
19+
| main.go:57:6:57:6 | (SSA def(x)) | x |
20+
| main.go:58:6:58:9 | (SSA phi(x)) | x |
21+
| main.go:59:3:59:3 | (SSA def(x)) | x |
22+
| main.go:63:2:63:2 | (SSA def(y)) | y |
23+
| main.go:64:6:64:6 | (SSA def(i)) | i |
24+
| main.go:64:16:64:18 | (SSA def(i)) | i |
25+
| main.go:65:6:65:9 | (SSA phi(i)) | i |
26+
| main.go:65:6:65:9 | (SSA phi(y)) | y |
27+
| main.go:68:3:68:3 | (SSA def(y)) | y |
28+
| main.go:73:6:73:6 | (SSA def(i)) | i |
29+
| main.go:73:16:73:18 | (SSA def(i)) | i |
30+
| main.go:74:3:74:3 | (SSA def(z)) | z |
31+
| main.go:74:3:74:3 | (SSA phi(i)) | i |
32+
| main.go:82:25:82:25 | (SSA def(b)) | b |
33+
| main.go:83:2:83:2 | (SSA def(x)) | x |
34+
| main.go:84:5:84:5 | (SSA def(a)) | a |
35+
| main.go:95:22:95:28 | (SSA def(wrapper)) | wrapper |
36+
| main.go:95:22:95:28 | (SSA def(wrapper)).s | wrapper.s |
37+
| main.go:96:2:96:2 | (SSA def(x)) | x |
38+
| main.go:97:2:99:3 | (SSA def(x)) | x |
39+
| main.go:112:3:112:3 | (SSA def(p)) | p |
40+
| main.go:114:3:114:3 | (SSA def(p)) | p |
41+
| main.go:117:2:117:2 | (SSA phi(p)) | p |
42+
| main.go:117:2:117:2 | (SSA phi(p)).a | p.a |
43+
| main.go:117:2:117:2 | (SSA phi(p)).b | p.b |
44+
| main.go:117:2:117:2 | (SSA phi(p)).b.a | p.b.a |
45+
| main.go:117:2:117:2 | (SSA phi(p)).c | p.c |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
invalidModelRow
22
testFailures
3+
| main.go:15:33:15:39 | SSA def(request) | Unexpected result: source="SSA def(request)" |
4+
| main.go:15:77:15:111 | comment | Missing result: source="definition of request" |
5+
| main.go:20:36:20:42 | SSA def(request) | Unexpected result: source="SSA def(request)" |
6+
| main.go:20:80:20:114 | comment | Missing result: source="definition of request" |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
invalidModelRow
22
testFailures
3+
| main.go:18:46:18:48 | SSA def(req) | Unexpected result: serverRequest="SSA def(req)" |
4+
| main.go:18:89:18:126 | comment | Missing result: serverRequest="definition of req" |
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#select
22
| server/main.go:30:38:30:48 | selection of Text | rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | server/main.go:30:38:30:48 | selection of Text | The $@ of this request depends on a $@. | server/main.go:30:38:30:48 | selection of Text | URL | rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | user-provided value |
3-
| server/main.go:30:38:30:48 | selection of Text | server/main.go:19:56:19:61 | definition of params | server/main.go:30:38:30:48 | selection of Text | The $@ of this request depends on a $@. | server/main.go:30:38:30:48 | selection of Text | URL | server/main.go:19:56:19:61 | definition of params | user-provided value |
3+
| server/main.go:30:38:30:48 | selection of Text | server/main.go:19:56:19:61 | SSA def(params) | server/main.go:30:38:30:48 | selection of Text | The $@ of this request depends on a $@. | server/main.go:30:38:30:48 | selection of Text | URL | server/main.go:19:56:19:61 | SSA def(params) | user-provided value |
44
edges
5-
| client/main.go:16:35:16:78 | &... | server/main.go:19:56:19:61 | definition of params | provenance | |
5+
| client/main.go:16:35:16:78 | &... | server/main.go:19:56:19:61 | SSA def(params) | provenance | |
66
| client/main.go:16:35:16:78 | &... [postupdate] | client/main.go:16:35:16:78 | &... | provenance | |
77
| rpc/notes/service.twirp.go:538:2:538:33 | ... := ...[0] | rpc/notes/service.twirp.go:544:27:544:29 | buf | provenance | |
88
| rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | rpc/notes/service.twirp.go:538:2:538:33 | ... := ...[0] | provenance | Src:MaD:1 MaD:3 |
99
| rpc/notes/service.twirp.go:544:27:544:29 | buf | rpc/notes/service.twirp.go:544:32:544:41 | reqContent [postupdate] | provenance | MaD:2 |
10-
| rpc/notes/service.twirp.go:544:32:544:41 | reqContent [postupdate] | rpc/notes/service.twirp.go:574:2:577:2 | capture variable reqContent | provenance | |
11-
| rpc/notes/service.twirp.go:574:2:577:2 | capture variable reqContent | rpc/notes/service.twirp.go:576:35:576:44 | reqContent | provenance | |
12-
| rpc/notes/service.twirp.go:576:35:576:44 | reqContent | server/main.go:19:56:19:61 | definition of params | provenance | |
13-
| server/main.go:19:56:19:61 | definition of params | server/main.go:19:56:19:61 | definition of params [Return] | provenance | |
14-
| server/main.go:19:56:19:61 | definition of params | server/main.go:30:38:30:48 | selection of Text | provenance | |
15-
| server/main.go:19:56:19:61 | definition of params | server/main.go:30:38:30:48 | selection of Text | provenance | |
16-
| server/main.go:19:56:19:61 | definition of params [Return] | client/main.go:16:35:16:78 | &... [postupdate] | provenance | |
10+
| rpc/notes/service.twirp.go:544:32:544:41 | reqContent [postupdate] | rpc/notes/service.twirp.go:574:2:577:2 | SSA def(reqContent) | provenance | |
11+
| rpc/notes/service.twirp.go:574:2:577:2 | SSA def(reqContent) | rpc/notes/service.twirp.go:576:35:576:44 | reqContent | provenance | |
12+
| rpc/notes/service.twirp.go:576:35:576:44 | reqContent | server/main.go:19:56:19:61 | SSA def(params) | provenance | |
13+
| server/main.go:19:56:19:61 | SSA def(params) | server/main.go:19:56:19:61 | SSA def(params) [Return] | provenance | |
14+
| server/main.go:19:56:19:61 | SSA def(params) | server/main.go:30:38:30:48 | selection of Text | provenance | |
15+
| server/main.go:19:56:19:61 | SSA def(params) | server/main.go:30:38:30:48 | selection of Text | provenance | |
16+
| server/main.go:19:56:19:61 | SSA def(params) [Return] | client/main.go:16:35:16:78 | &... [postupdate] | provenance | |
1717
models
1818
| 1 | Source: net/http; Request; true; Body; ; ; ; remote; manual |
1919
| 2 | Summary: google.golang.org/protobuf/proto; ; false; Unmarshal; ; ; Argument[0]; Argument[1]; taint; manual |
@@ -25,10 +25,10 @@ nodes
2525
| rpc/notes/service.twirp.go:538:25:538:32 | selection of Body | semmle.label | selection of Body |
2626
| rpc/notes/service.twirp.go:544:27:544:29 | buf | semmle.label | buf |
2727
| rpc/notes/service.twirp.go:544:32:544:41 | reqContent [postupdate] | semmle.label | reqContent [postupdate] |
28-
| rpc/notes/service.twirp.go:574:2:577:2 | capture variable reqContent | semmle.label | capture variable reqContent |
28+
| rpc/notes/service.twirp.go:574:2:577:2 | SSA def(reqContent) | semmle.label | SSA def(reqContent) |
2929
| rpc/notes/service.twirp.go:576:35:576:44 | reqContent | semmle.label | reqContent |
30-
| server/main.go:19:56:19:61 | definition of params | semmle.label | definition of params |
31-
| server/main.go:19:56:19:61 | definition of params | semmle.label | definition of params |
32-
| server/main.go:19:56:19:61 | definition of params [Return] | semmle.label | definition of params [Return] |
30+
| server/main.go:19:56:19:61 | SSA def(params) | semmle.label | SSA def(params) |
31+
| server/main.go:19:56:19:61 | SSA def(params) | semmle.label | SSA def(params) |
32+
| server/main.go:19:56:19:61 | SSA def(params) [Return] | semmle.label | SSA def(params) [Return] |
3333
| server/main.go:30:38:30:48 | selection of Text | semmle.label | selection of Text |
3434
subpaths
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
invalidModelRow
22
testFailures
3+
| yaml.go:27:7:27:25 | call to NewEncoder | Unexpected result: ttfnmodelstep="SSA def(e) -> w [postupdate]" |
4+
| yaml.go:27:27:27:80 | comment | Missing result: ttfnmodelstep="definition of e -> w [postupdate]" |
5+
| yaml.go:36:8:36:26 | call to NewEncoder | Unexpected result: ttfnmodelstep="SSA def(e1) -> w [postupdate]" |
6+
| yaml.go:36:28:36:82 | comment | Missing result: ttfnmodelstep="definition of e1 -> w [postupdate]" |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
invalidModelRow
22
testFailures
3+
| graph/schema.resolvers.go:14:60:14:64 | SSA def(input) | Unexpected result: resolverParameter="SSA def(input)" |
4+
| graph/schema.resolvers.go:14:104:14:147 | comment | Missing result: resolverParameter="definition of input" |

go/ql/test/query-tests/RedundantCode/DeadStoreOfLocal/DeadStoreOfLocal.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
| testdata.go:172:3:172:3 | assignment to x | This definition of x is never used. |
1717
| testdata.go:180:3:180:5 | increment statement | This definition of x is never used. |
1818
| testdata.go:201:2:201:2 | assignment to x | This definition of x is never used. |
19+
| testdata.go:227:3:227:5 | increment statement | This definition of x is never used. |
20+
| testdata.go:235:3:235:3 | assignment to x | This definition of x is never used. |
1921
| testdata.go:262:2:262:2 | assignment to x | This definition of x is never used. |
2022
| testdata.go:268:2:268:2 | assignment to x | This definition of x is never used. |
2123
| testdata.go:309:2:309:2 | assignment to a | This definition of a is never used. |

0 commit comments

Comments
 (0)