Skip to content

Commit a9d8643

Browse files
committed
Go: check for extracted files in go-files-found-not-processed test
1 parent a26d11b commit a9d8643

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extractedFiles
2+
| work/subdir/go.mod:0:0:0:0 | work/subdir/go.mod |
3+
| work/subdir/test.go:0:0:0:0 | work/subdir/test.go |
4+
#select

go/ql/integration-tests/all-platforms/go/diagnostics/go-files-found-not-processed/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
goPath = os.path.join(os.path.abspath(os.getcwd()), ".go")
1111
os.environ['GOPATH'] = goPath
1212
os.environ['LGTM_INDEX_IMPORT_PATH'] = "test"
13-
run_codeql_database_create([], lang="go", source="work", db=None)
13+
run_codeql_database_create([], lang="go", source="work")
1414

1515
check_diagnostics()
1616

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import go
2+
import semmle.go.DiagnosticsReporting
3+
4+
query predicate extractedFiles(File f) { any() }
5+
6+
from string msg, int sev
7+
where reportableDiagnostics(_, msg, sev)
8+
select msg, sev

0 commit comments

Comments
 (0)