mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: test for split lambda
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
uniqueEnclosingCallable
|
||||
| test.py:256:18:256:18 | ControlFlowNode for x | Node should have one enclosing callable but has 2. |
|
||||
| test.py:256:18:256:18 | SSA variable x | Node should have one enclosing callable but has 2. |
|
||||
| test.py:256:21:256:25 | ControlFlowNode for False | Node should have one enclosing callable but has 2. |
|
||||
uniqueType
|
||||
uniqueNodeLocation
|
||||
missingLocation
|
||||
uniqueNodeToString
|
||||
missingToString
|
||||
parameterCallable
|
||||
| test.py:256:18:256:18 | ControlFlowNode for x | Callable mismatch for parameter. |
|
||||
localFlowIsLocal
|
||||
| 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. |
|
||||
compatibleTypesReflexive
|
||||
unreachableNodeCCtx
|
||||
localCallNodes
|
||||
|
||||
@@ -249,3 +249,10 @@ def synth_arg_kwOverflow():
|
||||
|
||||
def synth_arg_kwUnpacked():
|
||||
overflowCallee(**{"p": "42"})
|
||||
|
||||
def split_lambda(cond):
|
||||
if cond:
|
||||
pass
|
||||
foo = lambda x: False
|
||||
if cond:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user