From a8de859dfbe8010def4bc263d0bd351a9f015c33 Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Wed, 16 Oct 2024 16:41:06 +0100 Subject: [PATCH] PS: Add a failing test. --- .../ql/test/library-tests/dataflow/pipeline/test.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/powershell/ql/test/library-tests/dataflow/pipeline/test.ps1 b/powershell/ql/test/library-tests/dataflow/pipeline/test.ps1 index f5f9788cd02..597c75b7141 100644 --- a/powershell/ql/test/library-tests/dataflow/pipeline/test.ps1 +++ b/powershell/ql/test/library-tests/dataflow/pipeline/test.ps1 @@ -37,4 +37,14 @@ function consumeValueFromPipelineByPropertyNameWithoutProcess { } $x = Source "8" -[pscustomobject]@{x = $x} | consumeValueFromPipelineByPropertyNameWithoutProcess \ No newline at end of file +[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 \ No newline at end of file