mirror of
https://github.com/github/codeql.git
synced 2026-04-21 23:14:03 +02:00
Add test for the case of a module definition in a file not named module-info.java in a buildless extraction
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Test2.java:
|
||||
# 0| [CompilationUnit] Test2
|
||||
# 1| 1: [Class] Test2
|
||||
@@ -0,0 +1 @@
|
||||
semmle/code/java/PrintAst.ql
|
||||
@@ -0,0 +1 @@
|
||||
module mymodule { }
|
||||
@@ -0,0 +1 @@
|
||||
public class Test2 { }
|
||||
@@ -0,0 +1,2 @@
|
||||
| Test2.java:0:0:0:0 | Test2 |
|
||||
| Test.java:0:0:0:0 | Test.java |
|
||||
@@ -0,0 +1,5 @@
|
||||
import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
run_codeql_database_create([], lang="java", extra_args=["--extractor-option=buildless=true"])
|
||||
Reference in New Issue
Block a user