Skip to content

Commit 9ec32ee

Browse files
committed
Python: Add test-cases using keyword arguments
1 parent fc0b022 commit 9ec32ee

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

python/ql/test/library-tests/PointsTo/calls/Argument.expected

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,8 @@
1616
| 37 | 0 | ControlFlowNode for l | builtin method append |
1717
| 37 | 1 | ControlFlowNode for IntegerLiteral | builtin method append |
1818
| 38 | 0 | ControlFlowNode for l | Builtin-function len |
19+
| 40 | 0 | ControlFlowNode for IntegerLiteral | Function f |
20+
| 40 | 1 | ControlFlowNode for IntegerLiteral | Function f |
21+
| 40 | 2 | ControlFlowNode for IntegerLiteral | Function f |
22+
| 42 | 0 | ControlFlowNode for IntegerLiteral | Function C.n |
23+
| 42 | 0 | ControlFlowNode for c | Function C.n |

python/ql/test/library-tests/PointsTo/calls/CallPointsTo.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
| 34 | ControlFlowNode for D() | class D |
1111
| 37 | ControlFlowNode for Attribute() | Method(builtin method append, List) |
1212
| 38 | ControlFlowNode for len() | Builtin-function len |
13+
| 40 | ControlFlowNode for f() | Function f |
14+
| 41 | ControlFlowNode for C() | class C |
15+
| 42 | ControlFlowNode for Attribute() | Method(Function C.n, C()) |

python/ql/test/library-tests/PointsTo/calls/GetACall.expected

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
| 37 | ControlFlowNode for Attribute() | Method(builtin method append, List) |
1414
| 37 | ControlFlowNode for Attribute() | builtin method append |
1515
| 38 | ControlFlowNode for len() | Builtin-function len |
16+
| 40 | ControlFlowNode for f() | Function f |
17+
| 41 | ControlFlowNode for C() | class C |
18+
| 42 | ControlFlowNode for Attribute() | Function C.n |
19+
| 42 | ControlFlowNode for Attribute() | Method(Function C.n, C()) |

python/ql/test/library-tests/PointsTo/calls/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ def foo(arg):
3636
l = [1,2,3]
3737
l.append(4)
3838
len(l)
39+
40+
f(arg0=0, arg1=1, arg2=2)
41+
c = C()
42+
c.n(arg1=1)

0 commit comments

Comments
 (0)