Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit eb0bfb9

Browse files
rnkaufmanrobrix
andcommitted
Split up tests for imports and imported methods
Co-authored-by: Rob Rix <[email protected]>
1 parent 5601ed8 commit eb0bfb9

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

languages/tree-sitter-stack-graphs-java/test/imports_and_exports/import_method.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
public class Importer {
55
public static void main(String[] args) {
66
Foo.bar();
7-
// ^ defined: 2,15
8-
// ^ defined: 16
7+
// ^ defined: 15
98

109
}
1110
}
Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
1-
/*--- path: a.java ---*/
2-
import foo.bar.Baz;
1+
/*--- path: Importer.java ---*/
2+
import foo.Foo;
33

44
public class Importer {
5-
public static void main(String[] args) {
6-
Baz.some_method();
7-
// ^ defined: 2
5+
public static Foo main(String[] args) {
6+
// ^ defined: 2, 12
87
}
98
}
109

10+
/* --- path: foo/Foo.java ---*/
1111

12-
/* --- path: b.java ---*/
13-
14-
import foo.bar.Baz;
15-
16-
public class AnotherImporter {
17-
public static void main(String[] args) {
18-
Baz.some_method();
19-
}
12+
public class Foo {
2013
}

0 commit comments

Comments
 (0)