Skip to content

Commit 1499860

Browse files
committed
Add test for the case of a module definition in a file not named module-info.java in a buildless extraction
1 parent e9e58d9 commit 1499860

File tree

6 files changed

+13
-0
lines changed

6 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Test2.java:
2+
# 0| [CompilationUnit] Test2
3+
# 1| 1: [Class] Test2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
semmle/code/java/PrintAst.ql
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module mymodule { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public class Test2 { }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| Test2.java:0:0:0:0 | Test2 |
2+
| Test.java:0:0:0:0 | Test.java |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import sys
2+
3+
from create_database_utils import *
4+
5+
run_codeql_database_create([], lang="java", extra_args=["--extractor-option=buildless=true"])

0 commit comments

Comments
 (0)