Files
codeql/python/ql/test/library-tests/PointsTo/calls/getParameter.expected
Rasmus Wriedt Larsen 96fdb7a5b6 Python: Add tests for getParameter[byName]
These already have results for BoundMethodValue, although

1) it's a bit strange that `getParameter(-1)` has results
2) why does `Method(Function C.n, class C)` exists? this would only be relevant
if `n` was a classmethod, but it isn't. It's not a problem that it exsits per
se, but curious.
2020-05-04 20:51:04 +02:00

14 lines
715 B
Plaintext

| Function C.n | 0 | ControlFlowNode for self |
| Function C.n | 1 | ControlFlowNode for arg1 |
| Function D.foo | 0 | ControlFlowNode for arg |
| Function f | 0 | ControlFlowNode for arg0 |
| Function f | 1 | ControlFlowNode for arg1 |
| Function f | 2 | ControlFlowNode for arg2 |
| Method(Function C.n, C()) | 0 | ControlFlowNode for arg1 |
| Method(Function C.n, C()) | -1 | ControlFlowNode for self |
| Method(Function C.n, class C) | 0 | ControlFlowNode for arg1 |
| Method(Function C.n, class C) | -1 | ControlFlowNode for self |
| Method(Function f, C()) | 0 | ControlFlowNode for arg1 |
| Method(Function f, C()) | 1 | ControlFlowNode for arg2 |
| Method(Function f, C()) | -1 | ControlFlowNode for arg0 |