Skip to content

Commit 88e32ba

Browse files
committed
PS: Add local-flow test.
1 parent 9bdfaa0 commit 88e32ba

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

powershell/ql/test/library-tests/dataflow/local/test.expected

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
$a1 = Source()
2+
Sink($a1)
3+
4+
$b = GetBool()
5+
if($b) {
6+
$a2 = Source()
7+
}
8+
Sink($a2)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import powershell
2+
import semmle.code.powershell.dataflow.DataFlow
3+
4+
from DataFlow::Node pred, DataFlow::Node succ
5+
where DataFlow::localFlowStep(pred, succ)
6+
select pred, succ

0 commit comments

Comments
 (0)