Skip to content

Commit 08dc818

Browse files
committed
PS: Add Chanel's missing flow example.
1 parent 0b9720c commit 08dc818

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
| test.ps1:1:1:1:3 | a1 | test.ps1:2:6:2:8 | a1 |
2-
| test.ps1:1:1:21:27 | implicit unwrapping of {...} | test.ps1:1:1:21:27 | return value for {...} |
3-
| test.ps1:1:1:21:27 | pre-return value for {...} | test.ps1:1:1:21:27 | implicit unwrapping of {...} |
2+
| test.ps1:1:1:24:22 | implicit unwrapping of {...} | test.ps1:1:1:24:22 | return value for {...} |
3+
| test.ps1:1:1:24:22 | pre-return value for {...} | test.ps1:1:1:24:22 | implicit unwrapping of {...} |
44
| test.ps1:1:7:1:12 | Call to Source | test.ps1:1:1:1:3 | a1 |
5-
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
6-
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
5+
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
6+
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
77
| test.ps1:4:1:4:2 | b | test.ps1:5:4:5:5 | b |
88
| test.ps1:4:6:4:12 | Call to GetBool | test.ps1:4:1:4:2 | b |
99
| test.ps1:5:1:7:1 | phi | test.ps1:8:6:8:8 | a2 |
1010
| test.ps1:5:4:5:5 | b | test.ps1:10:14:10:15 | b |
1111
| test.ps1:6:5:6:7 | a2 | test.ps1:6:11:6:16 | [input] phi |
1212
| test.ps1:6:11:6:16 | Call to Source | test.ps1:6:5:6:7 | a2 |
1313
| test.ps1:6:11:6:16 | [input] phi | test.ps1:5:1:7:1 | phi |
14-
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
15-
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
14+
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
15+
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
1616
| test.ps1:10:1:10:2 | c | test.ps1:11:6:11:7 | c |
1717
| test.ps1:10:6:10:15 | [...]... | test.ps1:10:1:10:2 | c |
1818
| test.ps1:10:14:10:15 | b | test.ps1:10:6:10:15 | [...]... |
19-
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
20-
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
19+
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
20+
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
2121
| test.ps1:11:6:11:7 | [post] c | test.ps1:13:7:13:8 | c |
2222
| test.ps1:11:6:11:7 | c | test.ps1:13:7:13:8 | c |
2323
| test.ps1:13:1:13:2 | d | test.ps1:14:6:14:7 | d |
2424
| test.ps1:13:6:13:9 | (...) | test.ps1:13:1:13:2 | d |
2525
| test.ps1:13:7:13:8 | c | test.ps1:13:6:13:9 | (...) |
26-
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
27-
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
26+
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
27+
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
2828
| test.ps1:14:6:14:7 | [post] d | test.ps1:16:6:16:7 | d |
2929
| test.ps1:14:6:14:7 | d | test.ps1:16:6:16:7 | d |
3030
| test.ps1:16:1:16:2 | e | test.ps1:17:6:17:7 | e |
3131
| test.ps1:16:6:16:11 | ...+... | test.ps1:16:1:16:2 | e |
32-
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
33-
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
32+
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
33+
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
3434
| test.ps1:19:1:19:2 | f | test.ps1:21:25:21:26 | f |
3535
| test.ps1:19:6:19:11 | Call to Source | test.ps1:19:1:19:2 | f |
36-
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
37-
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
36+
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
37+
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
38+
| test.ps1:24:1:24:22 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
39+
| test.ps1:24:1:24:22 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,43 @@
11
| test.ps1:1:1:1:3 | a1 | test.ps1:2:6:2:8 | a1 |
2-
| test.ps1:1:1:21:27 | implicit unwrapping of {...} | test.ps1:1:1:21:27 | return value for {...} |
3-
| test.ps1:1:1:21:27 | pre-return value for {...} | test.ps1:1:1:21:27 | implicit unwrapping of {...} |
4-
| test.ps1:1:1:21:27 | pre-return value for {...} | test.ps1:1:1:21:27 | implicit unwrapping of {...} |
2+
| test.ps1:1:1:24:22 | implicit unwrapping of {...} | test.ps1:1:1:24:22 | return value for {...} |
3+
| test.ps1:1:1:24:22 | pre-return value for {...} | test.ps1:1:1:24:22 | implicit unwrapping of {...} |
4+
| test.ps1:1:1:24:22 | pre-return value for {...} | test.ps1:1:1:24:22 | implicit unwrapping of {...} |
55
| test.ps1:1:7:1:12 | Call to Source | test.ps1:1:1:1:3 | a1 |
6-
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
7-
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
6+
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
7+
| test.ps1:2:1:2:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
88
| test.ps1:4:1:4:2 | b | test.ps1:5:4:5:5 | b |
99
| test.ps1:4:6:4:12 | Call to GetBool | test.ps1:4:1:4:2 | b |
1010
| test.ps1:5:1:7:1 | phi | test.ps1:8:6:8:8 | a2 |
1111
| test.ps1:5:4:5:5 | b | test.ps1:10:14:10:15 | b |
1212
| test.ps1:6:5:6:7 | a2 | test.ps1:6:11:6:16 | [input] phi |
1313
| test.ps1:6:11:6:16 | Call to Source | test.ps1:6:5:6:7 | a2 |
1414
| test.ps1:6:11:6:16 | [input] phi | test.ps1:5:1:7:1 | phi |
15-
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
16-
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
15+
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
16+
| test.ps1:8:1:8:8 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
1717
| test.ps1:10:1:10:2 | c | test.ps1:11:6:11:7 | c |
1818
| test.ps1:10:6:10:15 | [...]... | test.ps1:10:1:10:2 | c |
1919
| test.ps1:10:14:10:15 | b | test.ps1:10:6:10:15 | [...]... |
20-
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
21-
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
20+
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
21+
| test.ps1:11:1:11:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
2222
| test.ps1:11:6:11:7 | [post] c | test.ps1:13:7:13:8 | c |
2323
| test.ps1:11:6:11:7 | c | test.ps1:13:7:13:8 | c |
2424
| test.ps1:13:1:13:2 | d | test.ps1:14:6:14:7 | d |
2525
| test.ps1:13:6:13:9 | (...) | test.ps1:13:1:13:2 | d |
2626
| test.ps1:13:7:13:8 | c | test.ps1:13:6:13:9 | (...) |
27-
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
28-
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
27+
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
28+
| test.ps1:14:1:14:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
2929
| test.ps1:14:6:14:7 | [post] d | test.ps1:16:6:16:7 | d |
3030
| test.ps1:14:6:14:7 | d | test.ps1:16:6:16:7 | d |
3131
| test.ps1:16:1:16:2 | e | test.ps1:17:6:17:7 | e |
3232
| test.ps1:16:6:16:7 | d | test.ps1:16:6:16:11 | ...+... |
3333
| test.ps1:16:6:16:11 | ...+... | test.ps1:16:1:16:2 | e |
3434
| test.ps1:16:11:16:11 | 1 | test.ps1:16:6:16:11 | ...+... |
35-
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
36-
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
35+
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
36+
| test.ps1:17:1:17:7 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
3737
| test.ps1:19:1:19:2 | f | test.ps1:21:25:21:26 | f |
3838
| test.ps1:19:6:19:11 | Call to Source | test.ps1:19:1:19:2 | f |
39-
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
40-
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:21:27 | pre-return value for {...} |
39+
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
40+
| test.ps1:21:1:21:27 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
4141
| test.ps1:21:25:21:26 | f | test.ps1:21:6:21:27 | here is a string: $f |
42+
| test.ps1:24:1:24:22 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |
43+
| test.ps1:24:1:24:22 | Call to Sink | test.ps1:1:1:24:22 | pre-return value for {...} |

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ Sink $e
1818

1919
$f = Source
2020

21-
Sink "here is a string: $f"
21+
Sink "here is a string: $f"
22+
23+
$input = Read-Host "enter input"
24+
Sink -UserInput $input

0 commit comments

Comments
 (0)