Skip to content

Commit 1dcd318

Browse files
committed
PS: Add test with missing flow.
1 parent a16b51a commit 1dcd318

File tree

1 file changed

+10
-1
lines changed
  • powershell/ql/test/library-tests/dataflow/pipeline

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,13 @@ function consume2 {
2828

2929
$x = Source "21"
3030
$y = Source "22"
31-
$x, $y | consume2
31+
$x, $y | consume2
32+
33+
function consumeValueFromPipelineByPropertyName {
34+
Param([Parameter(ValueFromPipelineByPropertyName)] $x)
35+
36+
Sink $x # $ MISSING: hasValueFlow=23
37+
}
38+
39+
$x = Source "23"
40+
[pscustomobject]@{x = $x} | consumeValueFromPipelineByPropertyName

0 commit comments

Comments
 (0)