Skip to content

Commit dec3e71

Browse files
committed
PS: Add test and accept test changes.
1 parent b426c1f commit dec3e71

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
param([string]$Source)
2+
3+
Sink $Source # $ hasValueFlow

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
models
22
edges
3+
| global.ps1:1:7:1:22 | Source | global.ps1:3:6:3:13 | Source | provenance | |
34
| test.ps1:1:14:1:16 | a | test.ps1:2:10:2:12 | a | provenance | |
45
| test.ps1:5:6:5:16 | Source | test.ps1:6:5:6:7 | x | provenance | |
56
| test.ps1:6:5:6:7 | x | test.ps1:1:14:1:16 | a | provenance | |
@@ -139,6 +140,8 @@ edges
139140
| test.ps1:39:24:39:31 | second | test.ps1:8:24:8:26 | y | provenance | |
140141
| test.ps1:39:32:39:38 | first | test.ps1:8:20:8:22 | x | provenance | |
141142
nodes
143+
| global.ps1:1:7:1:22 | Source | semmle.label | Source |
144+
| global.ps1:3:6:3:13 | Source | semmle.label | Source |
142145
| test.ps1:1:14:1:16 | a | semmle.label | a |
143146
| test.ps1:2:10:2:12 | a | semmle.label | a |
144147
| test.ps1:5:6:5:16 | Source | semmle.label | Source |
@@ -221,6 +224,7 @@ nodes
221224
subpaths
222225
testFailures
223226
#select
227+
| global.ps1:3:6:3:13 | Source | global.ps1:1:7:1:22 | Source | global.ps1:3:6:3:13 | Source | $@ | global.ps1:1:7:1:22 | Source | Source |
224228
| test.ps1:2:10:2:12 | a | test.ps1:5:6:5:16 | Source | test.ps1:2:10:2:12 | a | $@ | test.ps1:5:6:5:16 | Source | Source |
225229
| test.ps1:9:10:9:12 | x | test.ps1:14:10:14:20 | Source | test.ps1:9:10:9:12 | x | $@ | test.ps1:14:10:14:20 | Source | Source |
226230
| test.ps1:10:10:10:12 | y | test.ps1:15:11:15:21 | Source | test.ps1:10:10:10:12 | y | $@ | test.ps1:15:11:15:21 | Source | Source |

0 commit comments

Comments
 (0)