Skip to content

Commit ece196c

Browse files
committed
Ruby: Update model editor tests
1 parent ec24b25 commit ece196c

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

ruby/ql/src/utils/modeleditor/ModelEditor.qll

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ private import codeql.ruby.frameworks.core.Gem
99
private import codeql.ruby.frameworks.data.ModelsAsData
1010
private import codeql.ruby.frameworks.data.internal.ApiGraphModelsExtensions
1111
private import queries.modeling.internal.Util as Util
12-
private import codeql.util.Unit
13-
private import codeql.ruby.AST
14-
private import codeql.ruby.ast.Module
1512

1613
/** Holds if the given callable is not worth supporting. */
1714
private predicate isUninteresting(DataFlow::MethodNode c) {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
| lib/module.rb:1:1:7:3 | M1 | mylib | M1 | | | false | module.rb | |
12
| lib/module.rb:2:3:3:5 | foo | mylib | M1 | foo | (x,y) | false | module.rb | |
23
| lib/module.rb:5:3:6:5 | self_foo | mylib | M1! | self_foo | (x,y) | false | module.rb | |
4+
| lib/mylib.rb:3:1:27:3 | A | mylib | A | | | false | mylib.rb | |
35
| lib/mylib.rb:4:3:5:5 | foo | mylib | A | foo | (x,y,key1:) | false | mylib.rb | |
46
| lib/mylib.rb:7:3:8:5 | bar | mylib | A | bar | (x) | false | mylib.rb | |
57
| lib/mylib.rb:10:3:11:5 | self_foo | mylib | A! | self_foo | (x,y) | false | mylib.rb | |
8+
| lib/mylib.rb:18:3:26:5 | ANested | mylib | A::ANested | | | false | mylib.rb | |
69
| lib/mylib.rb:19:5:20:7 | foo | mylib | A::ANested | foo | (x,y) | false | mylib.rb | |
10+
| lib/other.rb:3:1:8:3 | B | mylib | B | | | false | other.rb | |
711
| lib/other.rb:6:3:7:5 | foo | mylib | B | foo | (x,y) | false | other.rb | |
12+
| lib/other.rb:10:1:12:3 | C | mylib | C | | | false | other.rb | |
13+
| other_lib/lib/other_gem.rb:1:1:6:3 | OtherLib | other-lib | OtherLib | | | false | other_gem.rb | |
14+
| other_lib/lib/other_gem.rb:2:5:5:7 | A | other-lib | OtherLib::A | | | false | other_gem.rb | |
815
| other_lib/lib/other_gem.rb:3:9:4:11 | foo | other-lib | OtherLib::A | foo | (x,y) | false | other_gem.rb | |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sourceModel
2+
sinkModel
3+
typeVariableModel
4+
typeModel
5+
| M1 | B | |
6+
summaryModel
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/modeling/GenerateModel.ql

0 commit comments

Comments
 (0)