mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
PS: Add test with missing flow.
This commit is contained in:
@@ -28,4 +28,13 @@ function consume2 {
|
||||
|
||||
$x = Source "21"
|
||||
$y = Source "22"
|
||||
$x, $y | consume2
|
||||
$x, $y | consume2
|
||||
|
||||
function consumeValueFromPipelineByPropertyName {
|
||||
Param([Parameter(ValueFromPipelineByPropertyName)] $x)
|
||||
|
||||
Sink $x # $ MISSING: hasValueFlow=23
|
||||
}
|
||||
|
||||
$x = Source "23"
|
||||
[pscustomobject]@{x = $x} | consumeValueFromPipelineByPropertyName
|
||||
Reference in New Issue
Block a user