Skip to content

Commit d5d568b

Browse files
committed
Ruby: Add more call graph tests, and make calls.rb interpretable by irb
1 parent 74eb6b2 commit d5d568b

File tree

6 files changed

+1699
-854
lines changed

6 files changed

+1699
-854
lines changed

ruby/ql/test/library-tests/modules/ancestors.expected

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,51 +29,63 @@
2929
#-----| super -> Object
3030

3131
calls.rb:
32-
# 15| M
32+
# 21| M
3333

34-
# 29| C
34+
# 35| C
3535
#-----| include -> M
3636
#-----| super -> Object
3737

38-
# 51| D
38+
# 57| D
3939
#-----| super -> C
4040

41-
# 77| Integer
41+
# 83| Integer
4242
#-----| super -> Numeric
4343

44-
# 82| String
44+
# 88| String
4545
#-----| super -> Object
4646

47-
# 86| Kernel
47+
# 92| Kernel
4848

49-
# 90| Module
49+
# 97| Module
5050
#-----| super -> Object
5151

52-
# 97| Object
52+
# 104| Object
5353
#-----| super -> BasicObject
5454
#-----| include -> Kernel
5555
#-----| prepend -> A
5656

57-
# 102| Hash
57+
# 109| Hash
5858
#-----| super -> Object
5959

60-
# 106| Array
60+
# 114| Array
6161
#-----| super -> Object
6262

63-
# 144| S
63+
# 154| S
6464
#-----| super -> Object
6565

66-
# 150| A
66+
# 160| A
6767
#-----| super -> S
6868
#-----| super -> B
6969
#-----| prepend -> A::B
7070

71-
# 155| B
71+
# 165| B
7272
#-----| super -> S
7373

74-
# 169| Singletons
74+
# 179| Singletons
7575
#-----| super -> Object
7676

77+
# 299| SelfNew
78+
#-----| super -> Object
79+
80+
# 313| C1
81+
#-----| super -> Object
82+
83+
# 319| C2
84+
#-----| super -> C1
85+
86+
# 325| C3
87+
#-----| super -> C2
88+
7789
hello.rb:
7890
# 1| EnglishWords
7991

0 commit comments

Comments
 (0)