Skip to content

Commit 945bb74

Browse files
committed
Ruby: Update expected test output
1 parent a62ad50 commit 945bb74

File tree

8 files changed

+167
-138
lines changed

8 files changed

+167
-138
lines changed

ruby/ql/test/library-tests/ast/Ast.expected

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
#-----| [LocalVariableAccess] __synth__0__1
2-
#-----| [LocalVariableAccess] __synth__0__1
3-
#-----| [LocalVariableAccess] __synth__0__1
4-
#-----| [LocalVariableAccess] __synth__0__1
5-
#-----| [LocalVariableAccess] __synth__0__1
6-
#-----| [LocalVariableAccess] __synth__0__1
7-
#-----| [LocalVariableAccess] __synth__0__1
8-
#-----| [LocalVariableAccess] __synth__0__1
91
gems/Gemfile:
102
# 1| [Toplevel] Gemfile
113
# 1| getStmt: [MethodCall] call to source

ruby/ql/test/library-tests/ast/AstDesugar.expected

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ calls/calls.rb:
2525
# 67| getReceiver: [ConstantReadAccess] X
2626
# 226| [ForExpr] for ... in ...
2727
# 226| getDesugared: [MethodCall] call to each
28-
# 226| getBlock: [SynthBlock] { ... }
28+
# 226| getBlock: [BraceBlock] { ... }
2929
# 226| getParameter: [SimpleParameter] __synth__0__1
30+
# 226| getDefiningAccess: [LocalVariableAccess] __synth__0__1
3031
# 226| getStmt: [AssignExpr] ... = ...
3132
# 226| getAnOperand/getRightOperand: [LocalVariableAccess] __synth__0__1
3233
# 226| getAnOperand/getLeftOperand: [LocalVariableAccess] x
@@ -37,8 +38,9 @@ calls/calls.rb:
3738
# 226| getReceiver: [Self, SelfVariableAccess] self
3839
# 229| [ForExpr] for ... in ...
3940
# 229| getDesugared: [MethodCall] call to each
40-
# 229| getBlock: [SynthBlock] { ... }
41+
# 229| getBlock: [BraceBlock] { ... }
4142
# 229| getParameter: [SimpleParameter] __synth__0__1
43+
# 229| getDefiningAccess: [LocalVariableAccess] __synth__0__1
4244
# 229| getStmt: [AssignExpr] ... = ...
4345
# 229| getAnOperand/getRightOperand: [LocalVariableAccess] __synth__0__1
4446
# 229| getAnOperand/getLeftOperand: [LocalVariableAccess] x
@@ -221,8 +223,9 @@ calls/calls.rb:
221223
# 320| getStmt: [LocalVariableAccess] __synth__4
222224
# 340| [ForExpr] for ... in ...
223225
# 340| getDesugared: [MethodCall] call to each
224-
# 340| getBlock: [SynthBlock] { ... }
226+
# 340| getBlock: [BraceBlock] { ... }
225227
# 340| getParameter: [SimpleParameter] __synth__0__1
228+
# 340| getDefiningAccess: [LocalVariableAccess] __synth__0__1
226229
# 340| getStmt: [AssignExpr] ... = ...
227230
# 340| getDesugared: [StmtSequence] ...
228231
# 340| getStmt: [AssignExpr] ... = ...
@@ -400,8 +403,9 @@ literals/literals.rb:
400403
control/loops.rb:
401404
# 9| [ForExpr] for ... in ...
402405
# 9| getDesugared: [MethodCall] call to each
403-
# 9| getBlock: [SynthBlock] { ... }
406+
# 9| getBlock: [BraceBlock] { ... }
404407
# 9| getParameter: [SimpleParameter] __synth__0__1
408+
# 9| getDefiningAccess: [LocalVariableAccess] __synth__0__1
405409
# 9| getStmt: [AssignExpr] ... = ...
406410
# 9| getAnOperand/getRightOperand: [LocalVariableAccess] __synth__0__1
407411
# 9| getAnOperand/getLeftOperand: [LocalVariableAccess] n
@@ -420,8 +424,9 @@ control/loops.rb:
420424
# 9| getEnd: [IntegerLiteral] 10
421425
# 16| [ForExpr] for ... in ...
422426
# 16| getDesugared: [MethodCall] call to each
423-
# 16| getBlock: [SynthBlock] { ... }
427+
# 16| getBlock: [BraceBlock] { ... }
424428
# 16| getParameter: [SimpleParameter] __synth__0__1
429+
# 16| getDefiningAccess: [LocalVariableAccess] __synth__0__1
425430
# 16| getStmt: [AssignExpr] ... = ...
426431
# 16| getAnOperand/getRightOperand: [LocalVariableAccess] __synth__0__1
427432
# 16| getAnOperand/getLeftOperand: [LocalVariableAccess] n
@@ -443,8 +448,9 @@ control/loops.rb:
443448
# 16| getEnd: [IntegerLiteral] 10
444449
# 22| [ForExpr] for ... in ...
445450
# 22| getDesugared: [MethodCall] call to each
446-
# 22| getBlock: [SynthBlock] { ... }
451+
# 22| getBlock: [BraceBlock] { ... }
447452
# 22| getParameter: [SimpleParameter] __synth__0__1
453+
# 22| getDefiningAccess: [LocalVariableAccess] __synth__0__1
448454
# 22| getStmt: [AssignExpr] ... = ...
449455
# 22| getDesugared: [StmtSequence] ...
450456
# 22| getStmt: [AssignExpr] ... = ...
@@ -484,8 +490,9 @@ control/loops.rb:
484490
# 22| getValue: [IntegerLiteral] 1
485491
# 28| [ForExpr] for ... in ...
486492
# 28| getDesugared: [MethodCall] call to each
487-
# 28| getBlock: [SynthBlock] { ... }
493+
# 28| getBlock: [BraceBlock] { ... }
488494
# 28| getParameter: [SimpleParameter] __synth__0__1
495+
# 28| getDefiningAccess: [LocalVariableAccess] __synth__0__1
489496
# 28| getStmt: [AssignExpr] ... = ...
490497
# 28| getDesugared: [StmtSequence] ...
491498
# 28| getStmt: [AssignExpr] ... = ...
@@ -692,8 +699,9 @@ params/params.rb:
692699
erb/template.html.erb:
693700
# 27| [ForExpr] for ... in ...
694701
# 27| getDesugared: [MethodCall] call to each
695-
# 27| getBlock: [SynthBlock] { ... }
702+
# 27| getBlock: [BraceBlock] { ... }
696703
# 27| getParameter: [SimpleParameter] __synth__0__1
704+
# 27| getDefiningAccess: [LocalVariableAccess] __synth__0__1
697705
# 27| getStmt: [AssignExpr] ... = ...
698706
# 27| getAnOperand/getRightOperand: [LocalVariableAccess] __synth__0__1
699707
# 27| getAnOperand/getLeftOperand: [LocalVariableAccess] x

ruby/ql/test/library-tests/ast/ValueText.expected

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@
157157
| control/loops.rb:6:5:6:5 | 0 | 0 |
158158
| control/loops.rb:9:10:9:10 | 1 | 1 |
159159
| control/loops.rb:9:13:9:14 | 10 | 10 |
160-
| control/loops.rb:10:5:10:7 | sum | 0 |
161160
| control/loops.rb:16:10:16:10 | 1 | 1 |
162161
| control/loops.rb:16:13:16:14 | 10 | 10 |
163162
| control/loops.rb:22:5:22:7 | 0 | 0 |
@@ -172,23 +171,28 @@
172171
| control/loops.rb:28:27:28:27 | 0 | 0 |
173172
| control/loops.rb:28:30:28:32 | :bar | bar |
174173
| control/loops.rb:28:35:28:35 | 1 | 1 |
174+
| control/loops.rb:35:11:35:11 | y | 0 |
175175
| control/loops.rb:36:8:36:8 | 1 | 1 |
176176
| control/loops.rb:37:8:37:8 | 1 | 1 |
177+
| control/loops.rb:42:11:42:11 | y | 0 |
177178
| control/loops.rb:43:8:43:8 | 1 | 1 |
178179
| control/loops.rb:44:8:44:8 | 2 | 2 |
179180
| control/loops.rb:48:6:48:6 | 1 | 1 |
181+
| control/loops.rb:48:14:48:14 | y | 0 |
182+
| control/loops.rb:51:12:51:12 | y | 0 |
180183
| control/loops.rb:52:8:52:8 | 1 | 1 |
181184
| control/loops.rb:53:8:53:8 | 1 | 1 |
185+
| control/loops.rb:57:11:57:11 | y | 0 |
182186
| control/loops.rb:58:8:58:8 | 1 | 1 |
183187
| control/loops.rb:59:8:59:8 | 4 | 4 |
184188
| control/loops.rb:63:6:63:6 | 1 | 1 |
185189
| control/loops.rb:63:19:63:19 | 0 | 0 |
190+
| control/loops.rb:66:11:66:11 | y | 0 |
186191
| erb/template.html.erb:19:5:19:17 | "hello world" | hello world |
187192
| erb/template.html.erb:25:9:25:10 | "" | |
188193
| erb/template.html.erb:27:16:27:20 | "foo" | foo |
189194
| erb/template.html.erb:27:23:27:27 | "bar" | bar |
190195
| erb/template.html.erb:27:30:27:34 | "baz" | baz |
191-
| erb/template.html.erb:28:11:28:12 | xs | |
192196
| gems/Gemfile:1:8:1:29 | "https://rubygems.org" | https://rubygems.org |
193197
| gems/Gemfile:3:5:3:13 | "foo_gem" | foo_gem |
194198
| gems/Gemfile:3:16:3:23 | "~> 2.0" | ~> 2.0 |

0 commit comments

Comments
 (0)