Skip to content

Commit bda9826

Browse files
committed
Ruby: Add more call graph tests
1 parent c6b62c9 commit bda9826

File tree

6 files changed

+1389
-1166
lines changed

6 files changed

+1389
-1166
lines changed

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

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,36 +89,45 @@ calls.rb:
8989
# 377| SingletonOverride1
9090
#-----| super -> Object
9191

92-
# 404| SingletonOverride2
92+
# 412| SingletonOverride2
9393
#-----| super -> SingletonOverride1
9494

95-
# 421| ConditionalInstanceMethods
95+
# 433| ConditionalInstanceMethods
9696
#-----| super -> Object
9797

98-
# 484| ExtendSingletonMethod
98+
# 496| ExtendSingletonMethod
9999

100-
# 494| ExtendSingletonMethod2
100+
# 506| ExtendSingletonMethod2
101101

102-
# 500| ExtendSingletonMethod3
102+
# 512| ExtendSingletonMethod3
103103

104-
# 513| ProtectedMethodInModule
104+
# 525| ProtectedMethodInModule
105105

106-
# 519| ProtectedMethods
106+
# 531| ProtectedMethods
107107
#-----| super -> Object
108108
#-----| include -> ProtectedMethodInModule
109109

110-
# 538| ProtectedMethodsSub
110+
# 550| ProtectedMethodsSub
111111
#-----| super -> ProtectedMethods
112112

113-
# 552| SingletonUpCall_Base
113+
# 564| SingletonUpCall_Base
114114
#-----| super -> Object
115115

116-
# 556| SingletonUpCall_Sub
116+
# 568| SingletonUpCall_Sub
117117
#-----| super -> SingletonUpCall_Base
118118

119-
# 564| SingletonUpCall_SubSub
119+
# 576| SingletonUpCall_SubSub
120120
#-----| super -> SingletonUpCall_Sub
121121

122+
# 583| SingletonA
123+
#-----| super -> Object
124+
125+
# 596| SingletonB
126+
#-----| super -> SingletonA
127+
128+
# 605| SingletonC
129+
#-----| super -> SingletonA
130+
122131
hello.rb:
123132
# 1| EnglishWords
124133

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

Lines changed: 156 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -146,77 +146,95 @@ getTarget
146146
| calls.rb:375:1:375:11 | call to instance | calls.rb:368:5:370:7 | instance |
147147
| calls.rb:380:13:380:48 | call to puts | calls.rb:102:5:102:30 | puts |
148148
| calls.rb:384:13:384:22 | call to singleton1 | calls.rb:379:9:381:11 | singleton1 |
149-
| calls.rb:384:13:384:22 | call to singleton1 | calls.rb:406:9:408:11 | singleton1 |
150-
| calls.rb:389:9:389:44 | call to puts | calls.rb:102:5:102:30 | puts |
151-
| calls.rb:393:9:393:18 | call to singleton2 | calls.rb:388:5:390:7 | singleton2 |
152-
| calls.rb:393:9:393:18 | call to singleton2 | calls.rb:411:5:413:7 | singleton2 |
153-
| calls.rb:396:5:396:14 | call to singleton2 | calls.rb:388:5:390:7 | singleton2 |
154-
| calls.rb:399:1:399:29 | call to singleton1 | calls.rb:379:9:381:11 | singleton1 |
155-
| calls.rb:400:1:400:29 | call to singleton2 | calls.rb:388:5:390:7 | singleton2 |
156-
| calls.rb:401:1:401:34 | call to call_singleton1 | calls.rb:383:9:385:11 | call_singleton1 |
157-
| calls.rb:402:1:402:34 | call to call_singleton2 | calls.rb:392:5:394:7 | call_singleton2 |
158-
| calls.rb:407:13:407:48 | call to puts | calls.rb:102:5:102:30 | puts |
159-
| calls.rb:412:9:412:44 | call to puts | calls.rb:102:5:102:30 | puts |
160-
| calls.rb:416:1:416:29 | call to singleton1 | calls.rb:406:9:408:11 | singleton1 |
161-
| calls.rb:417:1:417:29 | call to singleton2 | calls.rb:411:5:413:7 | singleton2 |
162-
| calls.rb:418:1:418:34 | call to call_singleton1 | calls.rb:383:9:385:11 | call_singleton1 |
163-
| calls.rb:419:1:419:34 | call to call_singleton2 | calls.rb:392:5:394:7 | call_singleton2 |
164-
| calls.rb:424:13:424:48 | call to puts | calls.rb:102:5:102:30 | puts |
165-
| calls.rb:429:9:429:44 | call to puts | calls.rb:102:5:102:30 | puts |
166-
| calls.rb:432:13:432:48 | call to puts | calls.rb:102:5:102:30 | puts |
167-
| calls.rb:435:17:435:52 | call to puts | calls.rb:102:5:102:30 | puts |
168-
| calls.rb:443:9:447:11 | call to new | calls.rb:117:5:117:16 | new |
169-
| calls.rb:443:9:447:15 | call to new | calls.rb:117:5:117:16 | new |
170-
| calls.rb:445:17:445:40 | call to puts | calls.rb:102:5:102:30 | puts |
171-
| calls.rb:451:1:451:30 | call to new | calls.rb:117:5:117:16 | new |
172-
| calls.rb:451:1:451:33 | call to m1 | calls.rb:423:9:425:11 | m1 |
173-
| calls.rb:452:1:452:30 | call to new | calls.rb:117:5:117:16 | new |
174-
| calls.rb:453:1:453:30 | call to new | calls.rb:117:5:117:16 | new |
175-
| calls.rb:453:1:453:33 | call to m2 | calls.rb:428:5:440:7 | m2 |
176-
| calls.rb:454:1:454:30 | call to new | calls.rb:117:5:117:16 | new |
177-
| calls.rb:455:1:455:30 | call to new | calls.rb:117:5:117:16 | new |
178-
| calls.rb:456:1:456:30 | call to new | calls.rb:117:5:117:16 | new |
179-
| calls.rb:458:27:476:3 | call to new | calls.rb:117:5:117:16 | new |
180-
| calls.rb:461:13:461:22 | call to puts | calls.rb:102:5:102:30 | puts |
181-
| calls.rb:465:5:469:7 | call to new | calls.rb:117:5:117:16 | new |
182-
| calls.rb:465:5:469:11 | call to new | calls.rb:117:5:117:16 | new |
183-
| calls.rb:467:13:467:22 | call to puts | calls.rb:102:5:102:30 | puts |
184-
| calls.rb:473:13:473:27 | call to puts | calls.rb:102:5:102:30 | puts |
185-
| calls.rb:478:1:478:27 | call to new | calls.rb:117:5:117:16 | new |
186-
| calls.rb:479:1:479:27 | call to new | calls.rb:117:5:117:16 | new |
187-
| calls.rb:480:1:480:27 | call to new | calls.rb:117:5:117:16 | new |
188-
| calls.rb:481:1:481:27 | call to new | calls.rb:117:5:117:16 | new |
189-
| calls.rb:482:1:482:27 | call to new | calls.rb:117:5:117:16 | new |
190-
| calls.rb:492:1:492:31 | call to singleton | calls.rb:485:5:487:7 | singleton |
191-
| calls.rb:498:1:498:32 | call to singleton | calls.rb:485:5:487:7 | singleton |
192-
| calls.rb:505:1:505:32 | call to singleton | calls.rb:485:5:487:7 | singleton |
193-
| calls.rb:511:1:511:13 | call to singleton | calls.rb:485:5:487:7 | singleton |
194-
| calls.rb:520:5:520:35 | call to include | calls.rb:108:5:110:7 | include |
195-
| calls.rb:523:9:523:35 | call to puts | calls.rb:102:5:102:30 | puts |
196-
| calls.rb:527:9:527:11 | call to foo | calls.rb:514:15:516:7 | foo |
197-
| calls.rb:528:9:528:11 | call to bar | calls.rb:522:15:524:7 | bar |
198-
| calls.rb:529:9:529:28 | call to new | calls.rb:117:5:117:16 | new |
199-
| calls.rb:529:9:529:32 | call to foo | calls.rb:514:15:516:7 | foo |
200-
| calls.rb:530:9:530:28 | call to new | calls.rb:117:5:117:16 | new |
201-
| calls.rb:530:9:530:32 | call to bar | calls.rb:522:15:524:7 | bar |
202-
| calls.rb:534:1:534:20 | call to new | calls.rb:117:5:117:16 | new |
203-
| calls.rb:535:1:535:20 | call to new | calls.rb:117:5:117:16 | new |
204-
| calls.rb:536:1:536:20 | call to new | calls.rb:117:5:117:16 | new |
205-
| calls.rb:536:1:536:24 | call to baz | calls.rb:526:5:531:7 | baz |
206-
| calls.rb:540:9:540:11 | call to foo | calls.rb:514:15:516:7 | foo |
207-
| calls.rb:541:9:541:31 | call to new | calls.rb:117:5:117:16 | new |
208-
| calls.rb:541:9:541:35 | call to foo | calls.rb:514:15:516:7 | foo |
209-
| calls.rb:545:1:545:23 | call to new | calls.rb:117:5:117:16 | new |
210-
| calls.rb:546:1:546:23 | call to new | calls.rb:117:5:117:16 | new |
211-
| calls.rb:547:1:547:23 | call to new | calls.rb:117:5:117:16 | new |
212-
| calls.rb:547:1:547:27 | call to baz | calls.rb:539:5:542:7 | baz |
213-
| calls.rb:549:2:549:6 | call to new | calls.rb:117:5:117:16 | new |
214-
| calls.rb:549:20:549:24 | call to baz | calls.rb:51:5:57:7 | baz |
215-
| calls.rb:550:26:550:37 | call to capitalize | calls.rb:97:5:97:23 | capitalize |
216-
| calls.rb:557:5:557:13 | call to singleton | calls.rb:553:5:554:7 | singleton |
217-
| calls.rb:560:9:560:17 | call to singleton | calls.rb:553:5:554:7 | singleton |
218-
| calls.rb:561:9:561:18 | call to singleton2 | calls.rb:565:5:566:7 | singleton2 |
219-
| calls.rb:568:5:568:14 | call to mid_method | calls.rb:559:5:562:7 | mid_method |
149+
| calls.rb:384:13:384:22 | call to singleton1 | calls.rb:414:9:416:11 | singleton1 |
150+
| calls.rb:388:13:388:20 | call to new | calls.rb:117:5:117:16 | new |
151+
| calls.rb:393:9:393:44 | call to puts | calls.rb:102:5:102:30 | puts |
152+
| calls.rb:397:9:397:18 | call to singleton2 | calls.rb:392:5:394:7 | singleton2 |
153+
| calls.rb:397:9:397:18 | call to singleton2 | calls.rb:419:5:421:7 | singleton2 |
154+
| calls.rb:400:5:400:14 | call to singleton2 | calls.rb:392:5:394:7 | singleton2 |
155+
| calls.rb:403:9:403:43 | call to puts | calls.rb:102:5:102:30 | puts |
156+
| calls.rb:407:1:407:29 | call to singleton1 | calls.rb:379:9:381:11 | singleton1 |
157+
| calls.rb:408:1:408:29 | call to singleton2 | calls.rb:392:5:394:7 | singleton2 |
158+
| calls.rb:409:1:409:34 | call to call_singleton1 | calls.rb:383:9:385:11 | call_singleton1 |
159+
| calls.rb:410:1:410:34 | call to call_singleton2 | calls.rb:396:5:398:7 | call_singleton2 |
160+
| calls.rb:415:13:415:48 | call to puts | calls.rb:102:5:102:30 | puts |
161+
| calls.rb:420:9:420:44 | call to puts | calls.rb:102:5:102:30 | puts |
162+
| calls.rb:424:9:424:43 | call to puts | calls.rb:102:5:102:30 | puts |
163+
| calls.rb:428:1:428:29 | call to singleton1 | calls.rb:414:9:416:11 | singleton1 |
164+
| calls.rb:429:1:429:29 | call to singleton2 | calls.rb:419:5:421:7 | singleton2 |
165+
| calls.rb:430:1:430:34 | call to call_singleton1 | calls.rb:383:9:385:11 | call_singleton1 |
166+
| calls.rb:431:1:431:34 | call to call_singleton2 | calls.rb:396:5:398:7 | call_singleton2 |
167+
| calls.rb:436:13:436:48 | call to puts | calls.rb:102:5:102:30 | puts |
168+
| calls.rb:441:9:441:44 | call to puts | calls.rb:102:5:102:30 | puts |
169+
| calls.rb:444:13:444:48 | call to puts | calls.rb:102:5:102:30 | puts |
170+
| calls.rb:447:17:447:52 | call to puts | calls.rb:102:5:102:30 | puts |
171+
| calls.rb:455:9:459:11 | call to new | calls.rb:117:5:117:16 | new |
172+
| calls.rb:455:9:459:15 | call to new | calls.rb:117:5:117:16 | new |
173+
| calls.rb:457:17:457:40 | call to puts | calls.rb:102:5:102:30 | puts |
174+
| calls.rb:463:1:463:30 | call to new | calls.rb:117:5:117:16 | new |
175+
| calls.rb:463:1:463:33 | call to m1 | calls.rb:435:9:437:11 | m1 |
176+
| calls.rb:464:1:464:30 | call to new | calls.rb:117:5:117:16 | new |
177+
| calls.rb:465:1:465:30 | call to new | calls.rb:117:5:117:16 | new |
178+
| calls.rb:465:1:465:33 | call to m2 | calls.rb:440:5:452:7 | m2 |
179+
| calls.rb:466:1:466:30 | call to new | calls.rb:117:5:117:16 | new |
180+
| calls.rb:467:1:467:30 | call to new | calls.rb:117:5:117:16 | new |
181+
| calls.rb:468:1:468:30 | call to new | calls.rb:117:5:117:16 | new |
182+
| calls.rb:470:27:488:3 | call to new | calls.rb:117:5:117:16 | new |
183+
| calls.rb:473:13:473:22 | call to puts | calls.rb:102:5:102:30 | puts |
184+
| calls.rb:477:5:481:7 | call to new | calls.rb:117:5:117:16 | new |
185+
| calls.rb:477:5:481:11 | call to new | calls.rb:117:5:117:16 | new |
186+
| calls.rb:479:13:479:22 | call to puts | calls.rb:102:5:102:30 | puts |
187+
| calls.rb:485:13:485:27 | call to puts | calls.rb:102:5:102:30 | puts |
188+
| calls.rb:490:1:490:27 | call to new | calls.rb:117:5:117:16 | new |
189+
| calls.rb:491:1:491:27 | call to new | calls.rb:117:5:117:16 | new |
190+
| calls.rb:492:1:492:27 | call to new | calls.rb:117:5:117:16 | new |
191+
| calls.rb:493:1:493:27 | call to new | calls.rb:117:5:117:16 | new |
192+
| calls.rb:494:1:494:27 | call to new | calls.rb:117:5:117:16 | new |
193+
| calls.rb:504:1:504:31 | call to singleton | calls.rb:497:5:499:7 | singleton |
194+
| calls.rb:510:1:510:32 | call to singleton | calls.rb:497:5:499:7 | singleton |
195+
| calls.rb:517:1:517:32 | call to singleton | calls.rb:497:5:499:7 | singleton |
196+
| calls.rb:523:1:523:13 | call to singleton | calls.rb:497:5:499:7 | singleton |
197+
| calls.rb:532:5:532:35 | call to include | calls.rb:108:5:110:7 | include |
198+
| calls.rb:535:9:535:35 | call to puts | calls.rb:102:5:102:30 | puts |
199+
| calls.rb:539:9:539:11 | call to foo | calls.rb:526:15:528:7 | foo |
200+
| calls.rb:540:9:540:11 | call to bar | calls.rb:534:15:536:7 | bar |
201+
| calls.rb:541:9:541:28 | call to new | calls.rb:117:5:117:16 | new |
202+
| calls.rb:541:9:541:32 | call to foo | calls.rb:526:15:528:7 | foo |
203+
| calls.rb:542:9:542:28 | call to new | calls.rb:117:5:117:16 | new |
204+
| calls.rb:542:9:542:32 | call to bar | calls.rb:534:15:536:7 | bar |
205+
| calls.rb:546:1:546:20 | call to new | calls.rb:117:5:117:16 | new |
206+
| calls.rb:547:1:547:20 | call to new | calls.rb:117:5:117:16 | new |
207+
| calls.rb:548:1:548:20 | call to new | calls.rb:117:5:117:16 | new |
208+
| calls.rb:548:1:548:24 | call to baz | calls.rb:538:5:543:7 | baz |
209+
| calls.rb:552:9:552:11 | call to foo | calls.rb:526:15:528:7 | foo |
210+
| calls.rb:553:9:553:31 | call to new | calls.rb:117:5:117:16 | new |
211+
| calls.rb:553:9:553:35 | call to foo | calls.rb:526:15:528:7 | foo |
212+
| calls.rb:557:1:557:23 | call to new | calls.rb:117:5:117:16 | new |
213+
| calls.rb:558:1:558:23 | call to new | calls.rb:117:5:117:16 | new |
214+
| calls.rb:559:1:559:23 | call to new | calls.rb:117:5:117:16 | new |
215+
| calls.rb:559:1:559:27 | call to baz | calls.rb:551:5:554:7 | baz |
216+
| calls.rb:561:2:561:6 | call to new | calls.rb:117:5:117:16 | new |
217+
| calls.rb:561:20:561:24 | call to baz | calls.rb:51:5:57:7 | baz |
218+
| calls.rb:562:26:562:37 | call to capitalize | calls.rb:97:5:97:23 | capitalize |
219+
| calls.rb:569:5:569:13 | call to singleton | calls.rb:565:5:566:7 | singleton |
220+
| calls.rb:572:9:572:17 | call to singleton | calls.rb:565:5:566:7 | singleton |
221+
| calls.rb:573:9:573:18 | call to singleton2 | calls.rb:577:5:578:7 | singleton2 |
222+
| calls.rb:580:5:580:14 | call to mid_method | calls.rb:571:5:574:7 | mid_method |
223+
| calls.rb:588:9:588:18 | call to singleton1 | calls.rb:584:5:585:7 | singleton1 |
224+
| calls.rb:588:9:588:18 | call to singleton1 | calls.rb:597:5:598:7 | singleton1 |
225+
| calls.rb:588:9:588:18 | call to singleton1 | calls.rb:606:5:607:7 | singleton1 |
226+
| calls.rb:592:9:592:23 | call to call_singleton1 | calls.rb:587:5:589:7 | call_singleton1 |
227+
| calls.rb:592:9:592:23 | call to call_singleton1 | calls.rb:600:5:602:7 | call_singleton1 |
228+
| calls.rb:592:9:592:23 | call to call_singleton1 | calls.rb:609:5:611:7 | call_singleton1 |
229+
| calls.rb:601:9:601:18 | call to singleton1 | calls.rb:584:5:585:7 | singleton1 |
230+
| calls.rb:601:9:601:18 | call to singleton1 | calls.rb:597:5:598:7 | singleton1 |
231+
| calls.rb:601:9:601:18 | call to singleton1 | calls.rb:606:5:607:7 | singleton1 |
232+
| calls.rb:610:9:610:18 | call to singleton1 | calls.rb:584:5:585:7 | singleton1 |
233+
| calls.rb:610:9:610:18 | call to singleton1 | calls.rb:597:5:598:7 | singleton1 |
234+
| calls.rb:610:9:610:18 | call to singleton1 | calls.rb:606:5:607:7 | singleton1 |
235+
| calls.rb:614:1:614:31 | call to call_call_singleton1 | calls.rb:591:5:593:7 | call_call_singleton1 |
236+
| calls.rb:615:1:615:31 | call to call_call_singleton1 | calls.rb:591:5:593:7 | call_call_singleton1 |
237+
| calls.rb:616:1:616:31 | call to call_call_singleton1 | calls.rb:591:5:593:7 | call_call_singleton1 |
220238
| hello.rb:12:5:12:24 | call to include | calls.rb:108:5:110:7 | include |
221239
| hello.rb:14:16:14:20 | call to hello | hello.rb:2:5:4:7 | hello |
222240
| hello.rb:20:16:20:20 | call to super | hello.rb:13:5:15:7 | message |
@@ -301,45 +319,46 @@ unresolvedCall
301319
| calls.rb:274:1:274:14 | call to singleton_g |
302320
| calls.rb:276:1:276:14 | call to singleton_g |
303321
| calls.rb:313:9:313:20 | call to instance |
304-
| calls.rb:422:8:422:13 | call to rand |
305-
| calls.rb:422:8:422:17 | ... > ... |
306-
| calls.rb:439:9:439:10 | call to m3 |
307-
| calls.rb:442:8:442:13 | call to rand |
308-
| calls.rb:442:8:442:17 | ... > ... |
309-
| calls.rb:443:9:447:18 | call to m5 |
310-
| calls.rb:452:1:452:33 | call to m3 |
311-
| calls.rb:454:1:454:33 | call to m3 |
312-
| calls.rb:455:1:455:33 | call to m4 |
313-
| calls.rb:456:1:456:33 | call to m5 |
314-
| calls.rb:459:5:459:11 | call to [] |
315-
| calls.rb:459:5:463:7 | call to each |
316-
| calls.rb:465:5:469:15 | call to bar |
322+
| calls.rb:388:13:388:30 | call to instance1 |
323+
| calls.rb:434:8:434:13 | call to rand |
324+
| calls.rb:434:8:434:17 | ... > ... |
325+
| calls.rb:451:9:451:10 | call to m3 |
326+
| calls.rb:454:8:454:13 | call to rand |
327+
| calls.rb:454:8:454:17 | ... > ... |
328+
| calls.rb:455:9:459:18 | call to m5 |
329+
| calls.rb:464:1:464:33 | call to m3 |
330+
| calls.rb:466:1:466:33 | call to m3 |
331+
| calls.rb:467:1:467:33 | call to m4 |
332+
| calls.rb:468:1:468:33 | call to m5 |
317333
| calls.rb:471:5:471:11 | call to [] |
318334
| calls.rb:471:5:475:7 | call to each |
319-
| calls.rb:472:9:474:11 | call to define_method |
320-
| calls.rb:478:1:478:31 | call to foo |
321-
| calls.rb:479:1:479:31 | call to bar |
322-
| calls.rb:480:1:480:33 | call to baz_0 |
323-
| calls.rb:481:1:481:33 | call to baz_1 |
324-
| calls.rb:482:1:482:33 | call to baz_2 |
325-
| calls.rb:486:9:486:46 | call to puts |
326-
| calls.rb:489:5:489:15 | call to extend |
327-
| calls.rb:495:5:495:32 | call to extend |
328-
| calls.rb:503:1:503:51 | call to extend |
329-
| calls.rb:508:1:508:13 | call to singleton |
330-
| calls.rb:509:1:509:32 | call to extend |
331-
| calls.rb:514:5:516:7 | call to protected |
332-
| calls.rb:515:9:515:42 | call to puts |
333-
| calls.rb:522:5:524:7 | call to protected |
334-
| calls.rb:534:1:534:24 | call to foo |
335-
| calls.rb:535:1:535:24 | call to bar |
336-
| calls.rb:545:1:545:27 | call to foo |
337-
| calls.rb:546:1:546:27 | call to bar |
338-
| calls.rb:549:1:549:7 | call to [] |
339-
| calls.rb:549:1:549:26 | call to each |
340-
| calls.rb:550:1:550:13 | call to [] |
341-
| calls.rb:550:1:550:39 | call to each |
342-
| calls.rb:558:5:558:14 | call to singleton2 |
335+
| calls.rb:477:5:481:15 | call to bar |
336+
| calls.rb:483:5:483:11 | call to [] |
337+
| calls.rb:483:5:487:7 | call to each |
338+
| calls.rb:484:9:486:11 | call to define_method |
339+
| calls.rb:490:1:490:31 | call to foo |
340+
| calls.rb:491:1:491:31 | call to bar |
341+
| calls.rb:492:1:492:33 | call to baz_0 |
342+
| calls.rb:493:1:493:33 | call to baz_1 |
343+
| calls.rb:494:1:494:33 | call to baz_2 |
344+
| calls.rb:498:9:498:46 | call to puts |
345+
| calls.rb:501:5:501:15 | call to extend |
346+
| calls.rb:507:5:507:32 | call to extend |
347+
| calls.rb:515:1:515:51 | call to extend |
348+
| calls.rb:520:1:520:13 | call to singleton |
349+
| calls.rb:521:1:521:32 | call to extend |
350+
| calls.rb:526:5:528:7 | call to protected |
351+
| calls.rb:527:9:527:42 | call to puts |
352+
| calls.rb:534:5:536:7 | call to protected |
353+
| calls.rb:546:1:546:24 | call to foo |
354+
| calls.rb:547:1:547:24 | call to bar |
355+
| calls.rb:557:1:557:27 | call to foo |
356+
| calls.rb:558:1:558:27 | call to bar |
357+
| calls.rb:561:1:561:7 | call to [] |
358+
| calls.rb:561:1:561:26 | call to each |
359+
| calls.rb:562:1:562:13 | call to [] |
360+
| calls.rb:562:1:562:39 | call to each |
361+
| calls.rb:570:5:570:14 | call to singleton2 |
343362
| hello.rb:20:16:20:26 | ... + ... |
344363
| hello.rb:20:16:20:34 | ... + ... |
345364
| hello.rb:20:16:20:40 | ... + ... |
@@ -370,8 +389,8 @@ privateMethod
370389
| calls.rb:278:1:286:3 | create |
371390
| calls.rb:343:1:359:3 | pattern_dispatch |
372391
| calls.rb:367:1:371:3 | add_singleton |
373-
| calls.rb:460:9:462:11 | foo |
374-
| calls.rb:466:9:468:11 | bar |
392+
| calls.rb:472:9:474:11 | foo |
393+
| calls.rb:478:9:480:11 | bar |
375394
| private.rb:2:11:3:5 | private1 |
376395
| private.rb:8:3:9:5 | private2 |
377396
| private.rb:14:3:15:5 | private3 |
@@ -435,21 +454,31 @@ publicMethod
435454
| calls.rb:368:5:370:7 | instance |
436455
| calls.rb:379:9:381:11 | singleton1 |
437456
| calls.rb:383:9:385:11 | call_singleton1 |
438-
| calls.rb:388:5:390:7 | singleton2 |
439-
| calls.rb:392:5:394:7 | call_singleton2 |
440-
| calls.rb:406:9:408:11 | singleton1 |
441-
| calls.rb:411:5:413:7 | singleton2 |
442-
| calls.rb:423:9:425:11 | m1 |
443-
| calls.rb:428:5:440:7 | m2 |
444-
| calls.rb:431:9:437:11 | m3 |
445-
| calls.rb:434:13:436:15 | m4 |
446-
| calls.rb:444:13:446:15 | m5 |
447-
| calls.rb:485:5:487:7 | singleton |
448-
| calls.rb:526:5:531:7 | baz |
449-
| calls.rb:539:5:542:7 | baz |
450-
| calls.rb:553:5:554:7 | singleton |
451-
| calls.rb:559:5:562:7 | mid_method |
452-
| calls.rb:565:5:566:7 | singleton2 |
457+
| calls.rb:387:9:389:11 | factory |
458+
| calls.rb:392:5:394:7 | singleton2 |
459+
| calls.rb:396:5:398:7 | call_singleton2 |
460+
| calls.rb:402:5:404:7 | instance1 |
461+
| calls.rb:414:9:416:11 | singleton1 |
462+
| calls.rb:419:5:421:7 | singleton2 |
463+
| calls.rb:423:5:425:7 | instance1 |
464+
| calls.rb:435:9:437:11 | m1 |
465+
| calls.rb:440:5:452:7 | m2 |
466+
| calls.rb:443:9:449:11 | m3 |
467+
| calls.rb:446:13:448:15 | m4 |
468+
| calls.rb:456:13:458:15 | m5 |
469+
| calls.rb:497:5:499:7 | singleton |
470+
| calls.rb:538:5:543:7 | baz |
471+
| calls.rb:551:5:554:7 | baz |
472+
| calls.rb:565:5:566:7 | singleton |
473+
| calls.rb:571:5:574:7 | mid_method |
474+
| calls.rb:577:5:578:7 | singleton2 |
475+
| calls.rb:584:5:585:7 | singleton1 |
476+
| calls.rb:587:5:589:7 | call_singleton1 |
477+
| calls.rb:591:5:593:7 | call_call_singleton1 |
478+
| calls.rb:597:5:598:7 | singleton1 |
479+
| calls.rb:600:5:602:7 | call_singleton1 |
480+
| calls.rb:606:5:607:7 | singleton1 |
481+
| calls.rb:609:5:611:7 | call_singleton1 |
453482
| hello.rb:2:5:4:7 | hello |
454483
| hello.rb:5:5:7:7 | world |
455484
| hello.rb:13:5:15:7 | message |
@@ -477,7 +506,7 @@ publicMethod
477506
| toplevel_self_singleton.rb:26:9:27:11 | call_me |
478507
| toplevel_self_singleton.rb:29:9:32:11 | call_you |
479508
protectedMethod
480-
| calls.rb:514:15:516:7 | foo |
481-
| calls.rb:522:15:524:7 | bar |
509+
| calls.rb:526:15:528:7 | foo |
510+
| calls.rb:534:15:536:7 | bar |
482511
| private.rb:32:3:33:5 | protected1 |
483512
| private.rb:35:3:36:5 | protected2 |

0 commit comments

Comments
 (0)