Skip to content

Commit 76f3d74

Browse files
committed
Python: Remove extra whitespace from argumentPassing.py
1 parent 5ee755d commit 76f3d74

File tree

7 files changed

+241
-263
lines changed

7 files changed

+241
-263
lines changed

python/ql/test/experimental/dataflow/coverage/argumentPassing.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,6 @@ def SINK_F(x, unexpected=arg):
3939
SINK7 = functools.partial(SINK, expected=arg7)
4040

4141

42-
43-
44-
45-
46-
47-
48-
49-
50-
51-
52-
53-
54-
55-
56-
57-
58-
59-
60-
61-
62-
63-
6442
def argument_passing(
6543
a,
6644
b,

python/ql/test/experimental/dataflow/coverage/argumentRouting1.expected

Lines changed: 105 additions & 105 deletions
Large diffs are not rendered by default.

python/ql/test/experimental/dataflow/coverage/argumentRouting2.expected

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
edges
2-
| argumentPassing.py:66:5:66:5 | ControlFlowNode for b | argumentPassing.py:76:11:76:11 | ControlFlowNode for b |
3-
| argumentPassing.py:94:28:94:31 | ControlFlowNode for arg2 | argumentPassing.py:66:5:66:5 | ControlFlowNode for b |
4-
| argumentPassing.py:97:25:97:25 | ControlFlowNode for b | argumentPassing.py:99:11:99:11 | ControlFlowNode for b |
5-
| argumentPassing.py:104:25:104:28 | ControlFlowNode for arg2 | argumentPassing.py:97:25:97:25 | ControlFlowNode for b |
6-
| argumentPassing.py:105:27:105:30 | ControlFlowNode for arg2 | argumentPassing.py:97:25:97:25 | ControlFlowNode for b |
7-
| argumentPassing.py:109:30:109:30 | ControlFlowNode for b | argumentPassing.py:111:11:111:11 | ControlFlowNode for b |
8-
| argumentPassing.py:117:29:117:32 | ControlFlowNode for arg2 | argumentPassing.py:109:30:109:30 | ControlFlowNode for b |
9-
| argumentPassing.py:120:5:120:70 | KwUnpacked b | argumentPassing.py:109:30:109:30 | ControlFlowNode for b |
10-
| argumentPassing.py:120:29:120:39 | ControlFlowNode for Dict [Dictionary element at key b] | argumentPassing.py:120:5:120:70 | KwUnpacked b |
11-
| argumentPassing.py:120:35:120:38 | ControlFlowNode for arg2 | argumentPassing.py:120:29:120:39 | ControlFlowNode for Dict [Dictionary element at key b] |
12-
| argumentPassing.py:123:36:123:36 | ControlFlowNode for b | argumentPassing.py:125:11:125:11 | ControlFlowNode for b |
13-
| argumentPassing.py:123:36:123:36 | ControlFlowNode for b | argumentPassing.py:125:11:125:11 | ControlFlowNode for b |
14-
| argumentPassing.py:123:38:123:41 | ControlFlowNode for arg2 | argumentPassing.py:123:36:123:36 | ControlFlowNode for b |
15-
| argumentPassing.py:133:30:133:33 | ControlFlowNode for arg2 | argumentPassing.py:123:36:123:36 | ControlFlowNode for b |
16-
| argumentPassing.py:138:29:138:34 | ControlFlowNode for kwargs [Dictionary element at key bar] | argumentPassing.py:140:20:140:25 | ControlFlowNode for kwargs [Dictionary element at key bar] |
17-
| argumentPassing.py:140:5:140:26 | KwUnpacked bar | argumentPassing.py:145:18:145:20 | ControlFlowNode for bar |
18-
| argumentPassing.py:140:20:140:25 | ControlFlowNode for kwargs [Dictionary element at key bar] | argumentPassing.py:140:5:140:26 | KwUnpacked bar |
19-
| argumentPassing.py:145:18:145:20 | ControlFlowNode for bar | argumentPassing.py:146:11:146:13 | ControlFlowNode for bar |
20-
| argumentPassing.py:160:5:160:50 | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] | argumentPassing.py:138:29:138:34 | ControlFlowNode for kwargs [Dictionary element at key bar] |
21-
| argumentPassing.py:160:36:160:39 | ControlFlowNode for arg2 | argumentPassing.py:160:5:160:50 | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] |
2+
| argumentPassing.py:44:5:44:5 | ControlFlowNode for b | argumentPassing.py:54:11:54:11 | ControlFlowNode for b |
3+
| argumentPassing.py:72:28:72:31 | ControlFlowNode for arg2 | argumentPassing.py:44:5:44:5 | ControlFlowNode for b |
4+
| argumentPassing.py:75:25:75:25 | ControlFlowNode for b | argumentPassing.py:77:11:77:11 | ControlFlowNode for b |
5+
| argumentPassing.py:82:25:82:28 | ControlFlowNode for arg2 | argumentPassing.py:75:25:75:25 | ControlFlowNode for b |
6+
| argumentPassing.py:83:27:83:30 | ControlFlowNode for arg2 | argumentPassing.py:75:25:75:25 | ControlFlowNode for b |
7+
| argumentPassing.py:87:30:87:30 | ControlFlowNode for b | argumentPassing.py:89:11:89:11 | ControlFlowNode for b |
8+
| argumentPassing.py:95:29:95:32 | ControlFlowNode for arg2 | argumentPassing.py:87:30:87:30 | ControlFlowNode for b |
9+
| argumentPassing.py:98:5:98:70 | KwUnpacked b | argumentPassing.py:87:30:87:30 | ControlFlowNode for b |
10+
| argumentPassing.py:98:29:98:39 | ControlFlowNode for Dict [Dictionary element at key b] | argumentPassing.py:98:5:98:70 | KwUnpacked b |
11+
| argumentPassing.py:98:35:98:38 | ControlFlowNode for arg2 | argumentPassing.py:98:29:98:39 | ControlFlowNode for Dict [Dictionary element at key b] |
12+
| argumentPassing.py:101:36:101:36 | ControlFlowNode for b | argumentPassing.py:103:11:103:11 | ControlFlowNode for b |
13+
| argumentPassing.py:101:36:101:36 | ControlFlowNode for b | argumentPassing.py:103:11:103:11 | ControlFlowNode for b |
14+
| argumentPassing.py:101:38:101:41 | ControlFlowNode for arg2 | argumentPassing.py:101:36:101:36 | ControlFlowNode for b |
15+
| argumentPassing.py:111:30:111:33 | ControlFlowNode for arg2 | argumentPassing.py:101:36:101:36 | ControlFlowNode for b |
16+
| argumentPassing.py:116:29:116:34 | ControlFlowNode for kwargs [Dictionary element at key bar] | argumentPassing.py:118:20:118:25 | ControlFlowNode for kwargs [Dictionary element at key bar] |
17+
| argumentPassing.py:118:5:118:26 | KwUnpacked bar | argumentPassing.py:123:18:123:20 | ControlFlowNode for bar |
18+
| argumentPassing.py:118:20:118:25 | ControlFlowNode for kwargs [Dictionary element at key bar] | argumentPassing.py:118:5:118:26 | KwUnpacked bar |
19+
| argumentPassing.py:123:18:123:20 | ControlFlowNode for bar | argumentPassing.py:124:11:124:13 | ControlFlowNode for bar |
20+
| argumentPassing.py:138:5:138:50 | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] | argumentPassing.py:116:29:116:34 | ControlFlowNode for kwargs [Dictionary element at key bar] |
21+
| argumentPassing.py:138:36:138:39 | ControlFlowNode for arg2 | argumentPassing.py:138:5:138:50 | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] |
2222
| classes.py:555:27:555:29 | ControlFlowNode for key | classes.py:556:15:556:17 | ControlFlowNode for key |
2323
| classes.py:565:18:565:21 | ControlFlowNode for arg2 | classes.py:555:27:555:29 | ControlFlowNode for key |
2424
| classes.py:570:27:570:29 | ControlFlowNode for key | classes.py:572:15:572:17 | ControlFlowNode for key |
@@ -52,31 +52,31 @@ edges
5252
| classes.py:858:22:858:26 | ControlFlowNode for other | classes.py:859:15:859:19 | ControlFlowNode for other |
5353
| classes.py:868:15:868:18 | ControlFlowNode for arg2 | classes.py:858:22:858:26 | ControlFlowNode for other |
5454
nodes
55-
| argumentPassing.py:66:5:66:5 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
56-
| argumentPassing.py:76:11:76:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
57-
| argumentPassing.py:94:28:94:31 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
58-
| argumentPassing.py:97:25:97:25 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
59-
| argumentPassing.py:99:11:99:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
60-
| argumentPassing.py:104:25:104:28 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
61-
| argumentPassing.py:105:27:105:30 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
62-
| argumentPassing.py:109:30:109:30 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
63-
| argumentPassing.py:111:11:111:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
64-
| argumentPassing.py:117:29:117:32 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
65-
| argumentPassing.py:120:5:120:70 | KwUnpacked b | semmle.label | KwUnpacked b |
66-
| argumentPassing.py:120:29:120:39 | ControlFlowNode for Dict [Dictionary element at key b] | semmle.label | ControlFlowNode for Dict [Dictionary element at key b] |
67-
| argumentPassing.py:120:35:120:38 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
68-
| argumentPassing.py:123:36:123:36 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
69-
| argumentPassing.py:123:36:123:36 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
70-
| argumentPassing.py:123:38:123:41 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
71-
| argumentPassing.py:125:11:125:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
72-
| argumentPassing.py:133:30:133:33 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
73-
| argumentPassing.py:138:29:138:34 | ControlFlowNode for kwargs [Dictionary element at key bar] | semmle.label | ControlFlowNode for kwargs [Dictionary element at key bar] |
74-
| argumentPassing.py:140:5:140:26 | KwUnpacked bar | semmle.label | KwUnpacked bar |
75-
| argumentPassing.py:140:20:140:25 | ControlFlowNode for kwargs [Dictionary element at key bar] | semmle.label | ControlFlowNode for kwargs [Dictionary element at key bar] |
76-
| argumentPassing.py:145:18:145:20 | ControlFlowNode for bar | semmle.label | ControlFlowNode for bar |
77-
| argumentPassing.py:146:11:146:13 | ControlFlowNode for bar | semmle.label | ControlFlowNode for bar |
78-
| argumentPassing.py:160:5:160:50 | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] | semmle.label | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] |
79-
| argumentPassing.py:160:36:160:39 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
55+
| argumentPassing.py:44:5:44:5 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
56+
| argumentPassing.py:54:11:54:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
57+
| argumentPassing.py:72:28:72:31 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
58+
| argumentPassing.py:75:25:75:25 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
59+
| argumentPassing.py:77:11:77:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
60+
| argumentPassing.py:82:25:82:28 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
61+
| argumentPassing.py:83:27:83:30 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
62+
| argumentPassing.py:87:30:87:30 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
63+
| argumentPassing.py:89:11:89:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
64+
| argumentPassing.py:95:29:95:32 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
65+
| argumentPassing.py:98:5:98:70 | KwUnpacked b | semmle.label | KwUnpacked b |
66+
| argumentPassing.py:98:29:98:39 | ControlFlowNode for Dict [Dictionary element at key b] | semmle.label | ControlFlowNode for Dict [Dictionary element at key b] |
67+
| argumentPassing.py:98:35:98:38 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
68+
| argumentPassing.py:101:36:101:36 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
69+
| argumentPassing.py:101:36:101:36 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
70+
| argumentPassing.py:101:38:101:41 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
71+
| argumentPassing.py:103:11:103:11 | ControlFlowNode for b | semmle.label | ControlFlowNode for b |
72+
| argumentPassing.py:111:30:111:33 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
73+
| argumentPassing.py:116:29:116:34 | ControlFlowNode for kwargs [Dictionary element at key bar] | semmle.label | ControlFlowNode for kwargs [Dictionary element at key bar] |
74+
| argumentPassing.py:118:5:118:26 | KwUnpacked bar | semmle.label | KwUnpacked bar |
75+
| argumentPassing.py:118:20:118:25 | ControlFlowNode for kwargs [Dictionary element at key bar] | semmle.label | ControlFlowNode for kwargs [Dictionary element at key bar] |
76+
| argumentPassing.py:123:18:123:20 | ControlFlowNode for bar | semmle.label | ControlFlowNode for bar |
77+
| argumentPassing.py:124:11:124:13 | ControlFlowNode for bar | semmle.label | ControlFlowNode for bar |
78+
| argumentPassing.py:138:5:138:50 | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] | semmle.label | KwOverflowNode for grab_foo_bar_baz() [Dictionary element at key bar] |
79+
| argumentPassing.py:138:36:138:39 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
8080
| classes.py:555:27:555:29 | ControlFlowNode for key | semmle.label | ControlFlowNode for key |
8181
| classes.py:556:15:556:17 | ControlFlowNode for key | semmle.label | ControlFlowNode for key |
8282
| classes.py:565:18:565:21 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
@@ -127,14 +127,14 @@ nodes
127127
| classes.py:868:15:868:18 | ControlFlowNode for arg2 | semmle.label | ControlFlowNode for arg2 |
128128
subpaths
129129
#select
130-
| argumentPassing.py:94:28:94:31 | ControlFlowNode for arg2 | argumentPassing.py:94:28:94:31 | ControlFlowNode for arg2 | argumentPassing.py:76:11:76:11 | ControlFlowNode for b | Flow found |
131-
| argumentPassing.py:104:25:104:28 | ControlFlowNode for arg2 | argumentPassing.py:104:25:104:28 | ControlFlowNode for arg2 | argumentPassing.py:99:11:99:11 | ControlFlowNode for b | Flow found |
132-
| argumentPassing.py:105:27:105:30 | ControlFlowNode for arg2 | argumentPassing.py:105:27:105:30 | ControlFlowNode for arg2 | argumentPassing.py:99:11:99:11 | ControlFlowNode for b | Flow found |
133-
| argumentPassing.py:117:29:117:32 | ControlFlowNode for arg2 | argumentPassing.py:117:29:117:32 | ControlFlowNode for arg2 | argumentPassing.py:111:11:111:11 | ControlFlowNode for b | Flow found |
134-
| argumentPassing.py:120:35:120:38 | ControlFlowNode for arg2 | argumentPassing.py:120:35:120:38 | ControlFlowNode for arg2 | argumentPassing.py:111:11:111:11 | ControlFlowNode for b | Flow found |
135-
| argumentPassing.py:123:38:123:41 | ControlFlowNode for arg2 | argumentPassing.py:123:38:123:41 | ControlFlowNode for arg2 | argumentPassing.py:125:11:125:11 | ControlFlowNode for b | Flow found |
136-
| argumentPassing.py:133:30:133:33 | ControlFlowNode for arg2 | argumentPassing.py:133:30:133:33 | ControlFlowNode for arg2 | argumentPassing.py:125:11:125:11 | ControlFlowNode for b | Flow found |
137-
| argumentPassing.py:160:36:160:39 | ControlFlowNode for arg2 | argumentPassing.py:160:36:160:39 | ControlFlowNode for arg2 | argumentPassing.py:146:11:146:13 | ControlFlowNode for bar | Flow found |
130+
| argumentPassing.py:72:28:72:31 | ControlFlowNode for arg2 | argumentPassing.py:72:28:72:31 | ControlFlowNode for arg2 | argumentPassing.py:54:11:54:11 | ControlFlowNode for b | Flow found |
131+
| argumentPassing.py:82:25:82:28 | ControlFlowNode for arg2 | argumentPassing.py:82:25:82:28 | ControlFlowNode for arg2 | argumentPassing.py:77:11:77:11 | ControlFlowNode for b | Flow found |
132+
| argumentPassing.py:83:27:83:30 | ControlFlowNode for arg2 | argumentPassing.py:83:27:83:30 | ControlFlowNode for arg2 | argumentPassing.py:77:11:77:11 | ControlFlowNode for b | Flow found |
133+
| argumentPassing.py:95:29:95:32 | ControlFlowNode for arg2 | argumentPassing.py:95:29:95:32 | ControlFlowNode for arg2 | argumentPassing.py:89:11:89:11 | ControlFlowNode for b | Flow found |
134+
| argumentPassing.py:98:35:98:38 | ControlFlowNode for arg2 | argumentPassing.py:98:35:98:38 | ControlFlowNode for arg2 | argumentPassing.py:89:11:89:11 | ControlFlowNode for b | Flow found |
135+
| argumentPassing.py:101:38:101:41 | ControlFlowNode for arg2 | argumentPassing.py:101:38:101:41 | ControlFlowNode for arg2 | argumentPassing.py:103:11:103:11 | ControlFlowNode for b | Flow found |
136+
| argumentPassing.py:111:30:111:33 | ControlFlowNode for arg2 | argumentPassing.py:111:30:111:33 | ControlFlowNode for arg2 | argumentPassing.py:103:11:103:11 | ControlFlowNode for b | Flow found |
137+
| argumentPassing.py:138:36:138:39 | ControlFlowNode for arg2 | argumentPassing.py:138:36:138:39 | ControlFlowNode for arg2 | argumentPassing.py:124:11:124:13 | ControlFlowNode for bar | Flow found |
138138
| classes.py:565:18:565:21 | ControlFlowNode for arg2 | classes.py:565:18:565:21 | ControlFlowNode for arg2 | classes.py:556:15:556:17 | ControlFlowNode for key | Flow found |
139139
| classes.py:581:18:581:21 | ControlFlowNode for arg2 | classes.py:581:18:581:21 | ControlFlowNode for arg2 | classes.py:572:15:572:17 | ControlFlowNode for key | Flow found |
140140
| classes.py:595:22:595:25 | ControlFlowNode for arg2 | classes.py:595:22:595:25 | ControlFlowNode for arg2 | classes.py:587:15:587:17 | ControlFlowNode for key | Flow found |

0 commit comments

Comments
 (0)