Skip to content

Commit 452424a

Browse files
committed
Fix tests for Path and TypeRef
1 parent 085aad3 commit 452424a

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

rust/ql/test/extractor-tests/generated/.generated_tests.list

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| gen_path.rs:5:5:5:12 | Path |

rust/ql/test/extractor-tests/generated/Path/gen_path.rs

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| file://:0:0:0:0 | TypeRef |
2+
| file://:0:0:0:0 | TypeRef |
3+
| file://:0:0:0:0 | TypeRef |

rust/ql/test/extractor-tests/generated/TypeRef/gen_type_ref.rs

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/schema.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class Stmt(AstNode):
126126
pass
127127

128128

129+
@rust.doc_test_signature("() -> ()")
129130
class TypeRef(AstNode, Unimplemented):
130131
"""
131132
The base class for type references.
@@ -138,6 +139,7 @@ class TypeRef(AstNode, Unimplemented):
138139
pass
139140

140141

142+
@rust.doc_test_signature("() -> ()")
141143
class Path(AstNode, Unimplemented):
142144
"""
143145
A path. For example:

0 commit comments

Comments
 (0)