File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
ruby/ql/test/library-tests/modules Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,8 @@ unresolvedCall
356356| toplevel_self_singleton.rb:13:9:13:27 | call to ab_singleton_method |
357357| toplevel_self_singleton.rb:17:12:21:1 | call to new |
358358| 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 |
359361privateMethod
360362| calls.rb:1:1:3:3 | foo |
361363| calls.rb:39:1:41:3 | call_instance_m |
@@ -472,6 +474,8 @@ publicMethod
472474| toplevel_self_singleton.rb:3:9:4:11 | ab_singleton_method |
473475| toplevel_self_singleton.rb:12:5:14:7 | method_in_block |
474476| 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 |
475479protectedMethod
476480| calls.rb:514:15:516:7 | foo |
477481| 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
1919 ab_singleton_method # should not resolve to anything
2020 end
2121}
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