Skip to content

Commit 959cbd7

Browse files
committed
PS: Add another failing test with parentheses.
1 parent 72e18ac commit 959cbd7

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

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

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
| test.ps1:1:7:1:13 | Source | test.ps1:1:1:1:13 | ...=... |
44
| test.ps1:2:1:2:9 | Sink | test.ps1:2:1:2:9 | pre-return value for Sink |
55
| test.ps1:2:1:2:9 | Sink | test.ps1:2:1:2:9 | pre-return value for Sink |
6-
| test.ps1:2:1:2:9 | implicit unwrapping of Sink | test.ps1:1:1:11:8 | return value for test.ps1 |
6+
| test.ps1:2:1:2:9 | implicit unwrapping of Sink | test.ps1:1:1:14:8 | return value for test.ps1 |
77
| test.ps1:2:1:2:9 | pre-return value for Sink | test.ps1:2:1:2:9 | implicit unwrapping of Sink |
88
| test.ps1:4:1:4:3 | b | test.ps1:5:4:5:6 | b |
99
| test.ps1:4:6:4:13 | GetBool | test.ps1:4:1:4:3 | b |
@@ -14,7 +14,7 @@
1414
| test.ps1:6:11:6:17 | Source | test.ps1:6:5:6:17 | ...=... |
1515
| test.ps1:8:1:8:9 | Sink | test.ps1:8:1:8:9 | pre-return value for Sink |
1616
| test.ps1:8:1:8:9 | Sink | test.ps1:8:1:8:9 | pre-return value for Sink |
17-
| test.ps1:8:1:8:9 | implicit unwrapping of Sink | test.ps1:1:1:11:8 | return value for test.ps1 |
17+
| test.ps1:8:1:8:9 | implicit unwrapping of Sink | test.ps1:1:1:14:8 | return value for test.ps1 |
1818
| test.ps1:8:1:8:9 | pre-return value for Sink | test.ps1:8:1:8:9 | implicit unwrapping of Sink |
1919
| test.ps1:10:1:10:3 | c | test.ps1:11:6:11:8 | c |
2020
| test.ps1:10:6:10:16 | [...]... | test.ps1:10:1:10:3 | c |
@@ -23,5 +23,16 @@
2323
| test.ps1:10:14:10:16 | b | test.ps1:10:6:10:16 | [...]... |
2424
| test.ps1:11:1:11:8 | Sink | test.ps1:11:1:11:8 | pre-return value for Sink |
2525
| test.ps1:11:1:11:8 | Sink | test.ps1:11:1:11:8 | pre-return value for Sink |
26-
| test.ps1:11:1:11:8 | implicit unwrapping of Sink | test.ps1:1:1:11:8 | return value for test.ps1 |
26+
| test.ps1:11:1:11:8 | implicit unwrapping of Sink | test.ps1:1:1:14:8 | return value for test.ps1 |
2727
| test.ps1:11:1:11:8 | pre-return value for Sink | test.ps1:11:1:11:8 | implicit unwrapping of Sink |
28+
| test.ps1:11:6:11:8 | [post] c | test.ps1:13:7:13:9 | c |
29+
| test.ps1:11:6:11:8 | c | test.ps1:13:7:13:9 | c |
30+
| test.ps1:13:1:13:3 | d | test.ps1:14:6:14:8 | d |
31+
| test.ps1:13:6:13:10 | (...) | test.ps1:13:1:13:3 | d |
32+
| test.ps1:13:6:13:10 | (...) | test.ps1:13:1:13:10 | ...=... |
33+
| test.ps1:13:6:13:10 | (...) | test.ps1:13:6:13:10 | (...) |
34+
| test.ps1:13:7:13:9 | c | test.ps1:13:7:13:9 | c |
35+
| test.ps1:14:1:14:8 | Sink | test.ps1:14:1:14:8 | pre-return value for Sink |
36+
| test.ps1:14:1:14:8 | Sink | test.ps1:14:1:14:8 | pre-return value for Sink |
37+
| test.ps1:14:1:14:8 | implicit unwrapping of Sink | test.ps1:1:1:14:8 | return value for test.ps1 |
38+
| test.ps1:14:1:14:8 | pre-return value for Sink | test.ps1:14:1:14:8 | implicit unwrapping of Sink |

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ if($b) {
88
Sink $a2
99

1010
$c = [string]$b
11-
Sink $c
11+
Sink $c
12+
13+
$d = ($c)
14+
Sink $d

0 commit comments

Comments
 (0)