Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4526a1d

Browse files
committed
Python: test for split lambda
1 parent 04a3c3d commit 4526a1d

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

python/ql/test/experimental/dataflow/consistency/dataflow-consistency.expected

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
uniqueEnclosingCallable
2+
| test.py:256:18:256:18 | ControlFlowNode for x | Node should have one enclosing callable but has 2. |
3+
| test.py:256:18:256:18 | SSA variable x | Node should have one enclosing callable but has 2. |
4+
| test.py:256:21:256:25 | ControlFlowNode for False | Node should have one enclosing callable but has 2. |
25
uniqueType
36
uniqueNodeLocation
47
missingLocation
58
uniqueNodeToString
69
missingToString
710
parameterCallable
11+
| test.py:256:18:256:18 | ControlFlowNode for x | Callable mismatch for parameter. |
812
localFlowIsLocal
13+
| test.py:256:18:256:18 | ControlFlowNode for x | test.py:256:18:256:18 | SSA variable x | Local flow step does not preserve enclosing callable. |
914
compatibleTypesReflexive
1015
unreachableNodeCCtx
1116
localCallNodes

python/ql/test/experimental/dataflow/consistency/test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,10 @@ def synth_arg_kwOverflow():
249249

250250
def synth_arg_kwUnpacked():
251251
overflowCallee(**{"p": "42"})
252+
253+
def split_lambda(cond):
254+
if cond:
255+
pass
256+
foo = lambda x: False
257+
if cond:
258+
pass

0 commit comments

Comments
 (0)