PS: Add a failing test.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-10-16 16:41:06 +01:00
parent 7836a09e8a
commit a8de859dfb

View File

@@ -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