mirror of
https://github.com/github/codeql.git
synced 2026-05-25 00:27:09 +02:00
PS: Add a failing test.
This commit is contained in:
@@ -37,4 +37,14 @@ function consumeValueFromPipelineByPropertyNameWithoutProcess {
|
||||
}
|
||||
|
||||
$x = Source "8"
|
||||
[pscustomobject]@{x = $x} | consumeValueFromPipelineByPropertyNameWithoutProcess
|
||||
[pscustomobject]@{x = $x} | consumeValueFromPipelineByPropertyNameWithoutProcess
|
||||
|
||||
function consumeValueFromPipelineByPropertyNameWithProcess {
|
||||
Param([Parameter(ValueFromPipelineByPropertyName)] $x)
|
||||
|
||||
process {
|
||||
Sink $x # $ MISSING: hasValueFlow=9 hasValueFlow=10 hasValueFlow=11
|
||||
}
|
||||
}
|
||||
|
||||
[pscustomobject]@{x = Source "9"}, [pscustomobject]@{x = Source "10"}, [pscustomobject]@{x = Source "11"} | consumeValueFromPipelineByPropertyNameWithProcess
|
||||
Reference in New Issue
Block a user