File tree 2 files changed +16
-0
lines changed
ruby/ql/test/library-tests/modules
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,8 @@ unresolvedCall
356
356
| toplevel_self_singleton.rb:13:9:13:27 | call to ab_singleton_method |
357
357
| toplevel_self_singleton.rb:17:12:21:1 | call to new |
358
358
| toplevel_self_singleton.rb:19:9:19:27 | call to ab_singleton_method |
359
+ | toplevel_self_singleton.rb:29:13:29:19 | call to call_me |
360
+ | toplevel_self_singleton.rb:30:13:30:20 | call to call_you |
359
361
privateMethod
360
362
| calls.rb:1:1:3:3 | foo |
361
363
| calls.rb:39:1:41:3 | call_instance_m |
@@ -472,6 +474,8 @@ publicMethod
472
474
| toplevel_self_singleton.rb:3:9:4:11 | ab_singleton_method |
473
475
| toplevel_self_singleton.rb:12:5:14:7 | method_in_block |
474
476
| toplevel_self_singleton.rb:18:5:20:7 | method_in_struct |
477
+ | toplevel_self_singleton.rb:25:9:26:11 | call_me |
478
+ | toplevel_self_singleton.rb:28:9:31:11 | call_you |
475
479
protectedMethod
476
480
| calls.rb:514:15:516:7 | foo |
477
481
| calls.rb:522:15:524:7 | bar |
Original file line number Diff line number Diff line change @@ -19,3 +19,15 @@ def self.method_in_struct
19
19
ab_singleton_method # should not resolve to anything
20
20
end
21
21
}
22
+
23
+ module Good
24
+ class << self
25
+ def call_me
26
+ end
27
+
28
+ def call_you
29
+ call_me
30
+ call_you
31
+ end
32
+ end
33
+ end
You can’t perform that action at this time.
0 commit comments