Skip to content

Commit 2aacb58

Browse files
committed
PS: Accept test changes.
1 parent 96de811 commit 2aacb58

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

powershell/ql/test/library-tests/dataflow/fields/test.expected

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,40 @@ edges
44
| test.ps1:1:8:1:18 | Source | test.ps1:1:1:1:3 | [post] a [f] | provenance | |
55
| test.ps1:2:6:2:8 | a [f] | test.ps1:2:6:2:10 | f | provenance | |
66
| test.ps1:8:1:8:6 | [post] arr1 [element 3] | test.ps1:9:6:9:11 | arr1 [element 3] | provenance | |
7+
| test.ps1:8:1:8:6 | [post] arr1 [element 3] | test.ps1:9:6:9:11 | arr1 [element 3] | provenance | |
8+
| test.ps1:8:12:8:22 | Source | test.ps1:8:1:8:6 | [post] arr1 [element 3] | provenance | |
79
| test.ps1:8:12:8:22 | Source | test.ps1:8:1:8:6 | [post] arr1 [element 3] | provenance | |
810
| test.ps1:9:6:9:11 | arr1 [element 3] | test.ps1:9:6:9:14 | ...[...] | provenance | |
11+
| test.ps1:9:6:9:11 | arr1 [element 3] | test.ps1:9:6:9:14 | ...[...] | provenance | |
912
| test.ps1:12:1:12:6 | [post] arr2 [element] | test.ps1:13:6:13:11 | arr2 [element] | provenance | |
1013
| test.ps1:12:19:12:29 | Source | test.ps1:12:1:12:6 | [post] arr2 [element] | provenance | |
1114
| test.ps1:13:6:13:11 | arr2 [element] | test.ps1:13:6:13:14 | ...[...] | provenance | |
1215
| test.ps1:15:1:15:6 | [post] arr3 [element 3] | test.ps1:16:6:16:11 | arr3 [element 3] | provenance | |
16+
| test.ps1:15:1:15:6 | [post] arr3 [element 3] | test.ps1:16:6:16:11 | arr3 [element 3] | provenance | |
17+
| test.ps1:15:12:15:22 | Source | test.ps1:15:1:15:6 | [post] arr3 [element 3] | provenance | |
1318
| test.ps1:15:12:15:22 | Source | test.ps1:15:1:15:6 | [post] arr3 [element 3] | provenance | |
1419
| test.ps1:16:6:16:11 | arr3 [element 3] | test.ps1:16:6:16:21 | ...[...] | provenance | |
20+
| test.ps1:16:6:16:11 | arr3 [element 3] | test.ps1:16:6:16:21 | ...[...] | provenance | |
1521
| test.ps1:18:1:18:6 | [post] arr4 [element] | test.ps1:19:6:19:11 | arr4 [element] | provenance | |
1622
| test.ps1:18:20:18:30 | Source | test.ps1:18:1:18:6 | [post] arr4 [element] | provenance | |
1723
| test.ps1:19:6:19:11 | arr4 [element] | test.ps1:19:6:19:22 | ...[...] | provenance | |
1824
| test.ps1:21:1:21:6 | [post] arr5 [element, element 1] | test.ps1:22:6:22:11 | arr5 [element, element 1] | provenance | |
25+
| test.ps1:21:1:21:6 | [post] arr5 [element, element 1] | test.ps1:22:6:22:11 | arr5 [element, element 1] | provenance | |
26+
| test.ps1:21:1:21:17 | [post] ...[...] [element 1] | test.ps1:21:1:21:6 | [post] arr5 [element, element 1] | provenance | |
1927
| test.ps1:21:1:21:17 | [post] ...[...] [element 1] | test.ps1:21:1:21:6 | [post] arr5 [element, element 1] | provenance | |
2028
| test.ps1:21:23:21:33 | Source | test.ps1:21:1:21:17 | [post] ...[...] [element 1] | provenance | |
29+
| test.ps1:21:23:21:33 | Source | test.ps1:21:1:21:17 | [post] ...[...] [element 1] | provenance | |
2130
| test.ps1:22:6:22:11 | arr5 [element, element 1] | test.ps1:22:6:22:22 | ...[...] [element 1] | provenance | |
31+
| test.ps1:22:6:22:11 | arr5 [element, element 1] | test.ps1:22:6:22:22 | ...[...] [element 1] | provenance | |
32+
| test.ps1:22:6:22:22 | ...[...] [element 1] | test.ps1:22:6:22:25 | ...[...] | provenance | |
2233
| test.ps1:22:6:22:22 | ...[...] [element 1] | test.ps1:22:6:22:25 | ...[...] | provenance | |
2334
| test.ps1:25:1:25:6 | [post] arr6 [element 1, element] | test.ps1:26:6:26:11 | arr6 [element 1, element] | provenance | |
35+
| test.ps1:25:1:25:6 | [post] arr6 [element 1, element] | test.ps1:26:6:26:11 | arr6 [element 1, element] | provenance | |
36+
| test.ps1:25:1:25:9 | [post] ...[...] [element] | test.ps1:25:1:25:6 | [post] arr6 [element 1, element] | provenance | |
2437
| test.ps1:25:1:25:9 | [post] ...[...] [element] | test.ps1:25:1:25:6 | [post] arr6 [element 1, element] | provenance | |
2538
| test.ps1:25:23:25:33 | Source | test.ps1:25:1:25:9 | [post] ...[...] [element] | provenance | |
2639
| test.ps1:26:6:26:11 | arr6 [element 1, element] | test.ps1:26:6:26:14 | ...[...] [element] | provenance | |
40+
| test.ps1:26:6:26:11 | arr6 [element 1, element] | test.ps1:26:6:26:14 | ...[...] [element] | provenance | |
2741
| test.ps1:26:6:26:14 | ...[...] [element] | test.ps1:26:6:26:25 | ...[...] | provenance | |
2842
| test.ps1:29:1:29:6 | [post] arr7 [element, element] | test.ps1:30:6:30:11 | arr7 [element, element] | provenance | |
2943
| test.ps1:29:1:29:6 | [post] arr7 [element, element] | test.ps1:31:6:31:11 | arr7 [element, element] | provenance | |
@@ -64,6 +78,11 @@ edges
6478
| test.ps1:72:6:72:8 | x [element] | test.ps1:72:6:72:11 | ...[...] | provenance | |
6579
| test.ps1:73:6:73:8 | x [element] | test.ps1:73:6:73:11 | ...[...] | provenance | |
6680
| test.ps1:74:6:74:8 | x [element] | test.ps1:74:6:74:11 | ...[...] | provenance | |
81+
| test.ps1:76:9:79:2 | ${...} [element a] | test.ps1:81:6:81:11 | hash [element a] | provenance | |
82+
| test.ps1:76:9:79:2 | ${...} [element a] | test.ps1:85:6:85:11 | hash [element a] | provenance | |
83+
| test.ps1:77:7:77:18 | Source | test.ps1:76:9:79:2 | ${...} [element a] | provenance | |
84+
| test.ps1:81:6:81:11 | hash [element a] | test.ps1:81:6:81:16 | ...[...] | provenance | |
85+
| test.ps1:85:6:85:11 | hash [element a] | test.ps1:85:6:85:16 | ...[...] | provenance | |
6786
| test.ps1:86:1:86:6 | [post] hash [b] | test.ps1:87:6:87:11 | hash [b] | provenance | |
6887
| test.ps1:86:11:86:22 | Source | test.ps1:86:1:86:6 | [post] hash [b] | provenance | |
6988
| test.ps1:87:6:87:11 | hash [b] | test.ps1:87:6:87:13 | b | provenance | |
@@ -73,31 +92,41 @@ nodes
7392
| test.ps1:2:6:2:8 | a [f] | semmle.label | a [f] |
7493
| test.ps1:2:6:2:10 | f | semmle.label | f |
7594
| test.ps1:8:1:8:6 | [post] arr1 [element 3] | semmle.label | [post] arr1 [element 3] |
95+
| test.ps1:8:1:8:6 | [post] arr1 [element 3] | semmle.label | [post] arr1 [element 3] |
7696
| test.ps1:8:12:8:22 | Source | semmle.label | Source |
7797
| test.ps1:9:6:9:11 | arr1 [element 3] | semmle.label | arr1 [element 3] |
98+
| test.ps1:9:6:9:11 | arr1 [element 3] | semmle.label | arr1 [element 3] |
7899
| test.ps1:9:6:9:14 | ...[...] | semmle.label | ...[...] |
79100
| test.ps1:12:1:12:6 | [post] arr2 [element] | semmle.label | [post] arr2 [element] |
80101
| test.ps1:12:19:12:29 | Source | semmle.label | Source |
81102
| test.ps1:13:6:13:11 | arr2 [element] | semmle.label | arr2 [element] |
82103
| test.ps1:13:6:13:14 | ...[...] | semmle.label | ...[...] |
83104
| test.ps1:15:1:15:6 | [post] arr3 [element 3] | semmle.label | [post] arr3 [element 3] |
105+
| test.ps1:15:1:15:6 | [post] arr3 [element 3] | semmle.label | [post] arr3 [element 3] |
84106
| test.ps1:15:12:15:22 | Source | semmle.label | Source |
85107
| test.ps1:16:6:16:11 | arr3 [element 3] | semmle.label | arr3 [element 3] |
108+
| test.ps1:16:6:16:11 | arr3 [element 3] | semmle.label | arr3 [element 3] |
86109
| test.ps1:16:6:16:21 | ...[...] | semmle.label | ...[...] |
87110
| test.ps1:18:1:18:6 | [post] arr4 [element] | semmle.label | [post] arr4 [element] |
88111
| test.ps1:18:20:18:30 | Source | semmle.label | Source |
89112
| test.ps1:19:6:19:11 | arr4 [element] | semmle.label | arr4 [element] |
90113
| test.ps1:19:6:19:22 | ...[...] | semmle.label | ...[...] |
91114
| test.ps1:21:1:21:6 | [post] arr5 [element, element 1] | semmle.label | [post] arr5 [element, element 1] |
115+
| test.ps1:21:1:21:6 | [post] arr5 [element, element 1] | semmle.label | [post] arr5 [element, element 1] |
116+
| test.ps1:21:1:21:17 | [post] ...[...] [element 1] | semmle.label | [post] ...[...] [element 1] |
92117
| test.ps1:21:1:21:17 | [post] ...[...] [element 1] | semmle.label | [post] ...[...] [element 1] |
93118
| test.ps1:21:23:21:33 | Source | semmle.label | Source |
94119
| test.ps1:22:6:22:11 | arr5 [element, element 1] | semmle.label | arr5 [element, element 1] |
120+
| test.ps1:22:6:22:11 | arr5 [element, element 1] | semmle.label | arr5 [element, element 1] |
121+
| test.ps1:22:6:22:22 | ...[...] [element 1] | semmle.label | ...[...] [element 1] |
95122
| test.ps1:22:6:22:22 | ...[...] [element 1] | semmle.label | ...[...] [element 1] |
96123
| test.ps1:22:6:22:25 | ...[...] | semmle.label | ...[...] |
97124
| test.ps1:25:1:25:6 | [post] arr6 [element 1, element] | semmle.label | [post] arr6 [element 1, element] |
125+
| test.ps1:25:1:25:6 | [post] arr6 [element 1, element] | semmle.label | [post] arr6 [element 1, element] |
98126
| test.ps1:25:1:25:9 | [post] ...[...] [element] | semmle.label | [post] ...[...] [element] |
99127
| test.ps1:25:23:25:33 | Source | semmle.label | Source |
100128
| test.ps1:26:6:26:11 | arr6 [element 1, element] | semmle.label | arr6 [element 1, element] |
129+
| test.ps1:26:6:26:11 | arr6 [element 1, element] | semmle.label | arr6 [element 1, element] |
101130
| test.ps1:26:6:26:14 | ...[...] [element] | semmle.label | ...[...] [element] |
102131
| test.ps1:26:6:26:25 | ...[...] | semmle.label | ...[...] |
103132
| test.ps1:29:1:29:6 | [post] arr7 [element, element] | semmle.label | [post] arr7 [element, element] |
@@ -144,6 +173,12 @@ nodes
144173
| test.ps1:73:6:73:11 | ...[...] | semmle.label | ...[...] |
145174
| test.ps1:74:6:74:8 | x [element] | semmle.label | x [element] |
146175
| test.ps1:74:6:74:11 | ...[...] | semmle.label | ...[...] |
176+
| test.ps1:76:9:79:2 | ${...} [element a] | semmle.label | ${...} [element a] |
177+
| test.ps1:77:7:77:18 | Source | semmle.label | Source |
178+
| test.ps1:81:6:81:11 | hash [element a] | semmle.label | hash [element a] |
179+
| test.ps1:81:6:81:16 | ...[...] | semmle.label | ...[...] |
180+
| test.ps1:85:6:85:11 | hash [element a] | semmle.label | hash [element a] |
181+
| test.ps1:85:6:85:16 | ...[...] | semmle.label | ...[...] |
147182
| test.ps1:86:1:86:6 | [post] hash [b] | semmle.label | [post] hash [b] |
148183
| test.ps1:86:11:86:22 | Source | semmle.label | Source |
149184
| test.ps1:87:6:87:11 | hash [b] | semmle.label | hash [b] |
@@ -174,4 +209,6 @@ testFailures
174209
| test.ps1:74:6:74:11 | ...[...] | test.ps1:64:10:64:21 | Source | test.ps1:74:6:74:11 | ...[...] | $@ | test.ps1:64:10:64:21 | Source | Source |
175210
| test.ps1:74:6:74:11 | ...[...] | test.ps1:65:10:65:21 | Source | test.ps1:74:6:74:11 | ...[...] | $@ | test.ps1:65:10:65:21 | Source | Source |
176211
| test.ps1:74:6:74:11 | ...[...] | test.ps1:66:10:66:21 | Source | test.ps1:74:6:74:11 | ...[...] | $@ | test.ps1:66:10:66:21 | Source | Source |
212+
| test.ps1:81:6:81:16 | ...[...] | test.ps1:77:7:77:18 | Source | test.ps1:81:6:81:16 | ...[...] | $@ | test.ps1:77:7:77:18 | Source | Source |
213+
| test.ps1:85:6:85:16 | ...[...] | test.ps1:77:7:77:18 | Source | test.ps1:85:6:85:16 | ...[...] | $@ | test.ps1:77:7:77:18 | Source | Source |
177214
| test.ps1:87:6:87:13 | b | test.ps1:86:11:86:22 | Source | test.ps1:87:6:87:13 | b | $@ | test.ps1:86:11:86:22 | Source | Source |

powershell/ql/test/library-tests/dataflow/fields/test.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ $hash = @{
7878
b = 2
7979
}
8080

81-
Sink $hash["a"] # $ MISSING: hasValueFlow=16
81+
Sink $hash["a"] # $ hasValueFlow=16
8282
Sink $hash["b"] # clean
8383

8484
$hash["a"] = 0
85-
Sink $hash["a"] # clean
85+
Sink $hash["a"] # $ SPURIOUS: hasValueFlow=16
8686
$hash.b = Source "17"
8787
Sink $hash.b # $ hasValueFlow=17

0 commit comments

Comments
 (0)