Skip to content

Commit 97672f9

Browse files
committed
PS: Add test.
1 parent 91d3f11 commit 97672f9

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,24 @@
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:8:9 | return value for test.ps1 |
6+
| test.ps1:2:1:2:9 | implicit unwrapping of Sink | test.ps1:1:1:11: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 |
1010
| test.ps1:4:6:4:13 | GetBool | test.ps1:4:1:4:13 | ...=... |
11+
| test.ps1:5:4:5:6 | b | test.ps1:10:14:10:16 | b |
1112
| test.ps1:6:5:6:8 | a2 | test.ps1:8:6:8:9 | a2 |
1213
| test.ps1:6:11:6:17 | Source | test.ps1:6:5:6:8 | a2 |
1314
| test.ps1:6:11:6:17 | Source | test.ps1:6:5:6:17 | ...=... |
1415
| test.ps1:8:1:8:9 | Sink | test.ps1:8:1:8:9 | pre-return value for Sink |
1516
| test.ps1:8:1:8:9 | Sink | test.ps1:8:1:8:9 | pre-return value for Sink |
16-
| test.ps1:8:1:8:9 | implicit unwrapping of Sink | test.ps1:1:1:8:9 | return value for test.ps1 |
17+
| test.ps1:8:1:8:9 | implicit unwrapping of Sink | test.ps1:1:1:11:8 | return value for test.ps1 |
1718
| test.ps1:8:1:8:9 | pre-return value for Sink | test.ps1:8:1:8:9 | implicit unwrapping of Sink |
19+
| test.ps1:10:1:10:3 | c | test.ps1:11:6:11:8 | c |
20+
| test.ps1:10:6:10:16 | [...]... | test.ps1:10:1:10:3 | c |
21+
| test.ps1:10:6:10:16 | [...]... | test.ps1:10:1:10:16 | ...=... |
22+
| test.ps1:10:6:10:16 | [...]... | test.ps1:10:6:10:16 | [...]... |
23+
| test.ps1:11:1:11:8 | Sink | test.ps1:11:1:11:8 | pre-return value for Sink |
24+
| test.ps1:11:1:11:8 | Sink | test.ps1:11:1:11:8 | pre-return value for Sink |
25+
| 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 | pre-return value for Sink | test.ps1:11:1:11: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
@@ -5,4 +5,7 @@ $b = GetBool
55
if($b) {
66
$a2 = Source
77
}
8-
Sink $a2
8+
Sink $a2
9+
10+
$c = [string]$b
11+
Sink $c

0 commit comments

Comments
 (0)