Skip to content

Commit 085aad3

Browse files
committed
Update test data
1 parent c634b0a commit 085aad3

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

rust/ql/test/TestUtils.qll

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
private import codeql.rust.elements
22

33
cached
4-
predicate toBeTested(Element e) {
5-
exists(File f |
6-
f.getName().matches("%rust/ql/test%") and
7-
(
8-
e = f
9-
or
10-
e.(Locatable).getLocation().getFile() = f
11-
)
12-
)
13-
}
4+
predicate toBeTested(Element e) { any() }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
| file://:0:0:0:0 | | UnknownFile | getName: | |
12
| lib.rs:0:0:0:0 | lib.rs | DbFile | getName: | lib.rs |
23
| test.rs:0:0:0:0 | test.rs | DbFile | getName: | test.rs |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| file://:0:0:0:0 | GenericArgs |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| file://:0:0:0:0 | Module | getNumberOfDeclarations: | 0 |
2+
| file://:0:0:0:0 | Module | getNumberOfDeclarations: | 0 |
3+
| file://:0:0:0:0 | Module | getNumberOfDeclarations: | 0 |
4+
| file://:0:0:0:0 | Module | getNumberOfDeclarations: | 0 |
5+
| file://:0:0:0:0 | Module | getNumberOfDeclarations: | 0 |
6+
| file://:0:0:0:0 | Module | getNumberOfDeclarations: | 0 |
7+
| file://:0:0:0:0 | Module | getNumberOfDeclarations: | 1 |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| file://:0:0:0:0 | Module | 0 | gen_module.rs:6:5:6:19 | baz |

rust/ql/test/extractor-tests/generated/Path/Path.expected

Whitespace-only changes.

rust/ql/test/extractor-tests/generated/TypeRef/TypeRef.expected

Whitespace-only changes.

0 commit comments

Comments
 (0)