From 1dcd3180b1654eda1fb0167ff24a906c3d08b3bc Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Tue, 15 Oct 2024 15:43:39 +0100 Subject: [PATCH] PS: Add test with missing flow. --- .../ql/test/library-tests/dataflow/pipeline/test.ps1 | 11 ++++++++++- 1 file changed, 10 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 05c0f3fc07b..7b5253be781 100644 --- a/powershell/ql/test/library-tests/dataflow/pipeline/test.ps1 +++ b/powershell/ql/test/library-tests/dataflow/pipeline/test.ps1 @@ -28,4 +28,13 @@ function consume2 { $x = Source "21" $y = Source "22" -$x, $y | consume2 \ No newline at end of file +$x, $y | consume2 + +function consumeValueFromPipelineByPropertyName { + Param([Parameter(ValueFromPipelineByPropertyName)] $x) + + Sink $x # $ MISSING: hasValueFlow=23 +} + +$x = Source "23" +[pscustomobject]@{x = $x} | consumeValueFromPipelineByPropertyName \ No newline at end of file