mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Ruby: Add another call graph test
This commit is contained in:
committed by
Arthur Baars
parent
44cc6f7350
commit
77c47bc856
@@ -186,6 +186,7 @@ getTarget
|
||||
| calls.rb:488:1:488:31 | call to singleton | calls.rb:481:5:483:7 | singleton |
|
||||
| calls.rb:494:1:494:32 | call to singleton | calls.rb:481:5:483:7 | singleton |
|
||||
| calls.rb:501:1:501:32 | call to singleton | calls.rb:481:5:483:7 | singleton |
|
||||
| calls.rb:504:1:504:13 | call to singleton | calls.rb:481:5:483:7 | singleton |
|
||||
| calls.rb:507:1:507:13 | call to singleton | calls.rb:481:5:483:7 | singleton |
|
||||
| calls.rb:516:5:516:35 | call to include | calls.rb:108:5:110:7 | include |
|
||||
| calls.rb:519:9:519:35 | call to puts | calls.rb:102:5:102:30 | puts |
|
||||
|
||||
@@ -501,7 +501,7 @@ ExtendSingletonMethod3.extend ExtendSingletonMethod
|
||||
ExtendSingletonMethod3.singleton
|
||||
|
||||
foo = "hello"
|
||||
|
||||
foo.singleton # NoMethodError
|
||||
foo.extend ExtendSingletonMethod
|
||||
|
||||
foo.singleton
|
||||
|
||||
@@ -1231,6 +1231,8 @@ enclosingModule
|
||||
| calls.rb:503:1:503:13 | ... = ... | calls.rb:1:1:543:28 | calls.rb |
|
||||
| calls.rb:503:7:503:13 | "hello" | calls.rb:1:1:543:28 | calls.rb |
|
||||
| calls.rb:503:8:503:12 | hello | calls.rb:1:1:543:28 | calls.rb |
|
||||
| calls.rb:504:1:504:3 | foo | calls.rb:1:1:543:28 | calls.rb |
|
||||
| calls.rb:504:1:504:13 | call to singleton | calls.rb:1:1:543:28 | calls.rb |
|
||||
| calls.rb:505:1:505:3 | foo | calls.rb:1:1:543:28 | calls.rb |
|
||||
| calls.rb:505:1:505:32 | call to extend | calls.rb:1:1:543:28 | calls.rb |
|
||||
| calls.rb:505:12:505:32 | ExtendSingletonMethod | calls.rb:1:1:543:28 | calls.rb |
|
||||
|
||||
Reference in New Issue
Block a user