Skip to content

Commit 9e8e2e2

Browse files
committed
Ruby: Update CFG test output (some nodes have been reordered)
1 parent e7b0910 commit 9e8e2e2

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

ruby/ql/test/library-tests/controlflow/graph/Cfg.expected

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ break_ensure.rb:
4141
#-----| -> do ...
4242

4343
# 3| ... > ...
44-
#-----| raise -> for ... in ...
4544
#-----| true -> break
45+
#-----| raise -> for ... in ...
4646
#-----| false -> if ...
4747

4848
# 3| element
@@ -580,12 +580,12 @@ cfg.html.erb:
580580
# 12| self
581581
#-----| -> call to a
582582

583-
# 12| Pair
584-
#-----| -> call to link_to
585-
586583
# 12| :id
587584
#-----| -> "a"
588585

586+
# 12| Pair
587+
#-----| -> call to link_to
588+
589589
# 12| "a"
590590
#-----| -> Pair
591591

@@ -813,12 +813,12 @@ cfg.rb:
813813
# 23| 1
814814
#-----| -> ... + ...
815815

816-
# 25| 2
817-
#-----| -> { ... }
818-
819816
# 25| call to times
820817
#-----| -> self
821818

819+
# 25| 2
820+
#-----| -> { ... }
821+
822822
# 25| enter { ... }
823823
#-----| -> x
824824

@@ -1493,12 +1493,12 @@ cfg.rb:
14931493
# 97| "d"
14941494
#-----| -> Pair
14951495

1496-
# 97| Pair
1497-
#-----| -> {...}
1498-
14991496
# 97| :e
15001497
#-----| -> "f"
15011498

1499+
# 97| Pair
1500+
#-----| -> {...}
1501+
15021502
# 97| "f"
15031503
#-----| -> Pair
15041504

@@ -1619,12 +1619,12 @@ cfg.rb:
16191619
# 110| type
16201620
#-----| -> #{...}
16211621

1622-
# 113| ... if ...
1623-
#-----| -> C
1624-
16251622
# 113| call to puts
16261623
#-----| -> ... if ...
16271624

1625+
# 113| ... if ...
1626+
#-----| -> C
1627+
16281628
# 113| self
16291629
#-----| -> "hi"
16301630

@@ -1826,16 +1826,16 @@ cfg.rb:
18261826
# 134| EmptyModule
18271827
#-----| -> ... rescue ...
18281828

1829-
# 136| ... rescue ...
1830-
#-----| -> 1
1831-
18321829
# 136| ... / ...
18331830
#-----| raise -> self
18341831
#-----| -> __synth__0
18351832

18361833
# 136| 1
18371834
#-----| -> 0
18381835

1836+
# 136| ... rescue ...
1837+
#-----| -> 1
1838+
18391839
# 136| 0
18401840
#-----| -> ... / ...
18411841

@@ -2708,12 +2708,12 @@ desugar.rb:
27082708
# 18| __synth__2
27092709
#-----| -> __synth__3
27102710

2711-
# 18| ... + ...
2712-
#-----| -> ... = ...
2713-
27142711
# 18| call to baz
27152712
#-----| -> 3
27162713

2714+
# 18| ... + ...
2715+
#-----| -> ... = ...
2716+
27172717
# 18| x
27182718
#-----| -> call to baz
27192719

@@ -5076,12 +5076,12 @@ raise.rb:
50765076
# 155| elem
50775077
#-----| -> element
50785078

5079-
# 155| ... if ...
5080-
#-----| -> exit { ... } (normal)
5081-
50825079
# 155| call to raise
50835080
#-----| raise -> exit { ... } (abnormal)
50845081

5082+
# 155| ... if ...
5083+
#-----| -> exit { ... } (normal)
5084+
50855085
# 155| self
50865086
#-----| -> ""
50875087

0 commit comments

Comments
 (0)