Skip to content

Commit 1135bf6

Browse files
committed
Rust: improve QL test script
1 parent 3e877ff commit 1135bf6

File tree

13 files changed

+33
-27
lines changed

13 files changed

+33
-27
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
| gen_module.rs:3:1:4:8 | Module | getNumberOfAttrs: | 0 | hasItemList: | no | hasName: | yes | hasVisibility: | no |
22
| gen_module.rs:5:1:7:1 | Module | getNumberOfAttrs: | 0 | hasItemList: | yes | hasName: | yes | hasVisibility: | no |
33
| lib.rs:2:1:2:15 | Module | getNumberOfAttrs: | 0 | hasItemList: | no | hasName: | yes | hasVisibility: | no |
4-
| lib.rs:3:1:3:8 | Module | getNumberOfAttrs: | 0 | hasItemList: | no | hasName: | yes | hasVisibility: | no |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
| gen_module.rs:3:1:4:8 | Module | gen_module.rs:4:5:4:7 | Name |
22
| gen_module.rs:5:1:7:1 | Module | gen_module.rs:5:5:5:7 | Name |
33
| lib.rs:2:1:2:15 | Module | lib.rs:2:5:2:14 | Name |
4-
| lib.rs:3:1:3:8 | Module | lib.rs:3:5:3:7 | Name |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
| gen_name.rs:3:4:3:12 | Name | hasText: | yes |
22
| lib.rs:2:5:2:12 | Name | hasText: | yes |
3-
| lib.rs:3:5:3:7 | Name | hasText: | yes |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
| gen_name.rs:3:4:3:12 | Name | test_name |
22
| lib.rs:2:5:2:12 | Name | gen_name |
3-
| lib.rs:3:5:3:7 | Name | lib |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
| gen_source_file.rs:1:1:6:2 | SourceFile | getNumberOfAttrs: | 0 | getNumberOfItems: | 1 |
2-
| lib.rs:1:1:3:9 | SourceFile | getNumberOfAttrs: | 0 | getNumberOfItems: | 2 |
2+
| lib.rs:1:1:2:21 | SourceFile | getNumberOfAttrs: | 0 | getNumberOfItems: | 1 |
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
| gen_source_file.rs:1:1:6:2 | SourceFile | 0 | gen_source_file.rs:3:1:6:1 | test_source_file |
2-
| lib.rs:1:1:3:9 | SourceFile | 0 | lib.rs:2:1:2:20 | Module |
3-
| lib.rs:1:1:3:9 | SourceFile | 1 | lib.rs:3:1:3:8 | Module |
2+
| lib.rs:1:1:2:21 | SourceFile | 0 | lib.rs:2:1:2:20 | Module |
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| lib.rs:3:9:3:8 | expected `;` or `{` |
2-
| lib.rs:3:9:3:8 | expected an item |
3-
| lib.rs:3:10:3:21 | macro expansion failed: could not resolve macro 'identifiers' |
4-
| lib.rs:3:21:3:20 | expected BANG |
5-
| lib.rs:3:21:3:20 | expected `{`, `[`, `(` |
1+
| lib.rs:2:9:2:8 | expected `;` or `{` |
2+
| lib.rs:2:9:2:8 | expected an item |
3+
| lib.rs:2:10:2:21 | macro expansion failed: could not resolve macro 'identifiers' |
4+
| lib.rs:2:21:2:20 | expected BANG |
5+
| lib.rs:2:21:2:20 | expected `{`, `[`, `(` |

rust/ql/test/extractor-tests/utf8/ast.expected

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
| lib.rs:1:1:3:22 | SourceFile |
1+
| lib.rs:1:1:2:22 | SourceFile |
22
| lib.rs:2:1:2:8 | Module |
3-
| lib.rs:2:5:2:7 | Name |
4-
| lib.rs:3:1:3:8 | Module |
5-
| lib.rs:3:5:3:8 | Name |
6-
| lib.rs:3:10:3:20 | NameRef |
7-
| lib.rs:3:10:3:20 | Path |
8-
| lib.rs:3:10:3:20 | PathSegment |
9-
| lib.rs:3:10:3:21 | MacroCall |
3+
| lib.rs:2:5:2:8 | Name |
4+
| lib.rs:2:10:2:20 | NameRef |
5+
| lib.rs:2:10:2:20 | Path |
6+
| lib.rs:2:10:2:20 | PathSegment |
7+
| lib.rs:2:10:2:21 | MacroCall |
108
| utf8-identifiers.rs:1:1:4:6 | foo |
119
| utf8-identifiers.rs:1:1:12:2 | SourceFile |
1210
| utf8-identifiers.rs:1:4:1:6 | Name |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| 61 |
1+
| 59 |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| 61 |
1+
| 59 |

0 commit comments

Comments
 (0)