Skip to content

Commit c9aaba6

Browse files
committed
Ruby: Update expected test output
1 parent 0fcfb47 commit c9aaba6

File tree

19 files changed

+181
-128
lines changed

19 files changed

+181
-128
lines changed

ruby/ql/test/library-tests/dataflow/array-flow/array-flow.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| array_flow.rb:2:5:2:5 | a [element 0] | array_flow.rb:3:10:3:10 | a [element 0] | provenance | |
44
| array_flow.rb:2:5:2:5 | a [element 0] | array_flow.rb:5:10:5:10 | a [element 0] | provenance | |
@@ -4854,6 +4854,7 @@ subpaths
48544854
| array_flow.rb:507:9:507:9 | a [element 3] | array_flow.rb:507:26:507:26 | x | array_flow.rb:509:9:509:9 | x | array_flow.rb:507:9:510:7 | call to filter_map [element] |
48554855
| array_flow.rb:571:9:571:9 | a [element 2] | array_flow.rb:571:24:571:24 | x | array_flow.rb:573:9:573:25 | call to [] [element 0] | array_flow.rb:571:9:574:7 | call to flat_map [element] |
48564856
| array_flow.rb:1678:9:1678:9 | a [element 2] | array_flow.rb:1678:19:1678:19 | x | array_flow.rb:1679:9:1679:9 | x | array_flow.rb:1678:9:1680:7 | call to map [element] |
4857+
testFailures
48574858
arrayLiteral
48584859
| array_flow.rb:9:9:9:25 | call to [] |
48594860
| array_flow.rb:33:9:33:22 | call to [] |

ruby/ql/test/library-tests/dataflow/barrier-guards/barrier-flow.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| barrier_flow.rb:2:5:2:5 | x | barrier_flow.rb:4:10:4:10 | x | provenance | |
44
| barrier_flow.rb:2:9:2:17 | call to source | barrier_flow.rb:2:5:2:5 | x | provenance | |
@@ -17,6 +17,7 @@ nodes
1717
| barrier_flow.rb:24:9:24:17 | call to source | semmle.label | call to source |
1818
| barrier_flow.rb:26:10:26:10 | x | semmle.label | x |
1919
subpaths
20+
testFailures
2021
#select
2122
| barrier_flow.rb:4:10:4:10 | x | barrier_flow.rb:2:9:2:17 | call to source | barrier_flow.rb:4:10:4:10 | x | $@ | barrier_flow.rb:2:9:2:17 | call to source | call to source |
2223
| barrier_flow.rb:11:14:11:14 | x | barrier_flow.rb:8:9:8:17 | call to source | barrier_flow.rb:11:14:11:14 | x | $@ | barrier_flow.rb:8:9:8:17 | call to source | call to source |

ruby/ql/test/library-tests/dataflow/call-sensitivity/call-sensitivity.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| call_sensitivity.rb:9:7:9:13 | call to taint | call_sensitivity.rb:9:6:9:14 | ( ... ) | provenance | |
44
| call_sensitivity.rb:11:13:11:13 | x | call_sensitivity.rb:12:11:12:11 | x | provenance | |
@@ -178,6 +178,7 @@ nodes
178178
| call_sensitivity.rb:222:15:222:24 | ( ... ) | semmle.label | ( ... ) |
179179
| call_sensitivity.rb:222:16:222:23 | call to taint | semmle.label | call to taint |
180180
subpaths
181+
testFailures
181182
#select
182183
| call_sensitivity.rb:9:6:9:14 | ( ... ) | call_sensitivity.rb:9:7:9:13 | call to taint | call_sensitivity.rb:9:6:9:14 | ( ... ) | $@ | call_sensitivity.rb:9:7:9:13 | call to taint | call to taint |
183184
| call_sensitivity.rb:19:30:19:30 | x | call_sensitivity.rb:19:10:19:16 | call to taint | call_sensitivity.rb:19:30:19:30 | x | $@ | call_sensitivity.rb:19:10:19:16 | call to taint | call to taint |

ruby/ql/test/library-tests/dataflow/erb/erb.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| main.rb:3:9:3:9 | x | main.rb:4:26:4:26 | x | provenance | |
44
| main.rb:3:13:3:21 | call to source | main.rb:3:9:3:9 | x | provenance | |
@@ -103,6 +103,7 @@ subpaths
103103
| view1.html.erb:6:5:6:13 | call to source | view1.rb:13:13:13:13 | x | view1.rb:13:5:15:7 | self in set [Return] [@x] | view1.html.erb:6:1:6:14 | [post] self [@x] |
104104
| view2.html.erb:3:5:3:13 | call to source | view2.rb:6:13:6:13 | x | view2.rb:6:5:8:7 | self in set [Return] [@x] | view2.html.erb:3:1:3:14 | [post] self [@x] |
105105
| view3.html.erb:3:6:3:8 | self [@x] | view3.rb:6:5:8:7 | self in get [@x] | view3.rb:7:9:7:10 | @x | view3.html.erb:3:6:3:8 | call to get |
106+
testFailures
106107
#select
107108
| view1.rb:10:14:10:15 | @x | main.rb:3:13:3:21 | call to source | view1.rb:10:14:10:15 | @x | $@ | main.rb:3:13:3:21 | call to source | call to source |
108109
| view1.rb:10:14:10:15 | @x | view1.html.erb:6:5:6:13 | call to source | view1.rb:10:14:10:15 | @x | $@ | view1.html.erb:6:5:6:13 | call to source | call to source |

ruby/ql/test/library-tests/dataflow/flow-summaries/semantics.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| semantics.rb:2:5:2:5 | a | semantics.rb:3:9:3:9 | a | provenance | |
44
| semantics.rb:2:5:2:5 | a | semantics.rb:3:9:3:9 | a | provenance | |
@@ -2285,3 +2285,4 @@ nodes
22852285
| semantics.rb:516:10:516:16 | ...[...] | semmle.label | ...[...] |
22862286
| semantics.rb:516:10:516:16 | ...[...] | semmle.label | ...[...] |
22872287
subpaths
2288+
testFailures

ruby/ql/test/library-tests/dataflow/global/Flow.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| blocks.rb:14:12:14:20 | call to source | blocks.rb:8:10:8:14 | yield ... | provenance | |
44
| blocks.rb:17:10:17:10 | x | blocks.rb:18:11:18:11 | x | provenance | |
@@ -561,6 +561,7 @@ subpaths
561561
| instance_variables.rb:119:28:119:36 | call to taint | instance_variables.rb:27:25:27:29 | field | instance_variables.rb:27:5:29:7 | self in call_initialize [Return] [@field] | instance_variables.rb:119:6:119:10 | [post] foo16 [@field] |
562562
| instance_variables.rb:120:6:120:10 | foo16 [@field] | captured_variables.rb:60:5:62:7 | self in get_field [@field] | captured_variables.rb:61:9:61:21 | return | instance_variables.rb:120:6:120:20 | call to get_field |
563563
| instance_variables.rb:120:6:120:10 | foo16 [@field] | instance_variables.rb:13:5:15:7 | self in get_field [@field] | instance_variables.rb:14:9:14:21 | return | instance_variables.rb:120:6:120:20 | call to get_field |
564+
testFailures
564565
#select
565566
| blocks.rb:8:10:8:14 | yield ... | blocks.rb:14:12:14:20 | call to source | blocks.rb:8:10:8:14 | yield ... | $@ | blocks.rb:14:12:14:20 | call to source | call to source |
566567
| blocks.rb:25:8:25:8 | x | blocks.rb:24:3:24:11 | call to source | blocks.rb:25:8:25:8 | x | $@ | blocks.rb:24:3:24:11 | call to source | call to source |

ruby/ql/test/library-tests/dataflow/hash-flow/hash-flow.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| hash_flow.rb:10:5:10:8 | hash [element 0] | hash_flow.rb:30:10:30:13 | hash [element 0] | provenance | |
44
| hash_flow.rb:10:5:10:8 | hash [element :a] | hash_flow.rb:22:10:22:13 | hash [element :a] | provenance | |
@@ -2267,6 +2267,7 @@ nodes
22672267
| hash_flow.rb:1013:14:1013:14 | v | semmle.label | v |
22682268
| hash_flow.rb:1014:14:1014:14 | k | semmle.label | k |
22692269
subpaths
2270+
testFailures
22702271
hashLiteral
22712272
| hash_flow.rb:10:12:21:5 | call to [] |
22722273
| hash_flow.rb:55:13:55:37 | ...[...] |

ruby/ql/test/library-tests/dataflow/local/InlineFlowTest.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| local_dataflow.rb:78:3:78:3 | z | local_dataflow.rb:89:8:89:8 | z | provenance | |
44
| local_dataflow.rb:78:12:78:20 | call to source | local_dataflow.rb:79:13:79:13 | b | provenance | |
@@ -105,6 +105,7 @@ nodes
105105
| local_dataflow.rb:123:8:123:45 | call to tap | semmle.label | call to tap |
106106
| local_dataflow.rb:123:8:123:49 | call to dup | semmle.label | call to dup |
107107
subpaths
108+
testFailures
108109
#select
109110
| local_dataflow.rb:79:25:79:25 | b | local_dataflow.rb:78:12:78:20 | call to source | local_dataflow.rb:79:25:79:25 | b | $@ | local_dataflow.rb:78:12:78:20 | call to source | call to source |
110111
| local_dataflow.rb:80:29:80:29 | a | local_dataflow.rb:78:12:78:20 | call to source | local_dataflow.rb:80:29:80:29 | a | $@ | local_dataflow.rb:78:12:78:20 | call to source | call to source |

ruby/ql/test/library-tests/dataflow/params/params-flow.expected

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
testFailures
1+
models
22
edges
33
| params_flow.rb:9:16:9:17 | p1 | params_flow.rb:10:10:10:11 | p1 | provenance | |
44
| params_flow.rb:9:20:9:21 | p2 | params_flow.rb:11:10:11:11 | p2 | provenance | |
@@ -408,6 +408,7 @@ nodes
408408
subpaths
409409
| params_flow.rb:164:31:164:39 | call to taint | params_flow.rb:153:28:153:29 | p2 | params_flow.rb:153:23:153:24 | p1 [Return] [element 0] | params_flow.rb:164:23:164:24 | [post] p1 [element 0] |
410410
| params_flow.rb:192:24:192:32 | call to taint | params_flow.rb:181:28:181:29 | p2 | params_flow.rb:181:24:181:25 | p1 [Return] [element 0] | params_flow.rb:192:20:192:21 | [post] p1 [element 0] |
411+
testFailures
411412
#select
412413
| params_flow.rb:10:10:10:11 | p1 | params_flow.rb:14:12:14:19 | call to taint | params_flow.rb:10:10:10:11 | p1 | $@ | params_flow.rb:14:12:14:19 | call to taint | call to taint |
413414
| params_flow.rb:10:10:10:11 | p1 | params_flow.rb:44:12:44:20 | call to taint | params_flow.rb:10:10:10:11 | p1 | $@ | params_flow.rb:44:12:44:20 | call to taint | call to taint |
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
testFailures
1+
models
22
edges
33
nodes
44
subpaths
5+
testFailures
56
#select

0 commit comments

Comments
 (0)