diff --git a/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected b/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected index b78781de117..fc69f87cc3f 100644 --- a/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1,5 +1,9 @@ +| -:0:0:0:0 | package ; expected main | | broken2/test1.go:4:2:4:2 | undeclared name: fmt | | broken2/test1.go:5:2:5:2 | undeclared name: fmt | | broken2/test1.go:5:14:5:14 | undeclared name: a | | broken2/test.go:3:1:3:1 | expected 'package', found pac | +| broken2/test.go:3:1:3:1 | expected 'package', found pac | +| broken2/test.go:3:4:3:4 | expected 'IDENT', found newline | +| broken2/test.go:3:5:3:5 | expected ';', found 'EOF' | | broken/test.go:7:1:7:1 | expected declaration, found This | diff --git a/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected b/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected index 8f5c8cc5d4b..6a47139fb8d 100644 --- a/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1 +1,5 @@ +| -:0:0:0:0 | package ; expected nonexistent | +| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected ';', found 'EOF' | +| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'IDENT', found 'EOF' | +| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'package', found 'EOF' | | vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'package', found 'EOF' | diff --git a/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected b/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected index dfd4a4ff15d..7c7600b70da 100644 --- a/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1,3 +1,9 @@ | -:0:0:0:0 | malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' | +| -:0:0:0:0 | package ; expected main | | bad.go:3:1:3:1 | expected 'package', found avvu | +| bad.go:3:1:3:1 | expected 'package', found avvu | +| bad.go:3:5:3:5 | expected 'IDENT', found newline | +| bad.go:5:1:5:1 | expected ';', found wnvwun | +| badimport.go:6:2:6:2 | invalid import path (invalid character U+007B '{') | +| badimport.go:6:2:6:2 | invalid import path: "github.com/pkg{}" | | type.go:11:9:11:9 | cannot use v (variable of type V) as T value in argument to takesT | diff --git a/ql/test/query-tests/Diagnostics/ExtractionErrors.expected b/ql/test/query-tests/Diagnostics/ExtractionErrors.expected index 4154baaaccd..50b08606056 100644 --- a/ql/test/query-tests/Diagnostics/ExtractionErrors.expected +++ b/ql/test/query-tests/Diagnostics/ExtractionErrors.expected @@ -1,3 +1,8 @@ +| Extraction failed in query-tests/Diagnostics/badimport.go with error invalid import path (invalid character U+007B '{') | 2 | +| Extraction failed in query-tests/Diagnostics/badimport.go with error invalid import path: "github.com/pkg{}" | 2 | | Extraction failed in query-tests/Diagnostics/type.go with error cannot use v (variable of type V) as T value in argument to takesT | 2 | +| Extraction failed with error expected ';', found wnvwun | 2 | +| Extraction failed with error expected 'IDENT', found newline | 2 | | Extraction failed with error expected 'package', found avvu | 2 | | Extraction failed with error malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' | 2 | +| Extraction failed with error package ; expected main | 2 | diff --git a/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected b/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected index a17dae68734..d4dff7b992f 100644 --- a/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected +++ b/ql/test/query-tests/Summary/CONSISTENCY/UnexpectedFrontendErrors.expected @@ -1 +1,5 @@ +| -:0:0:0:0 | package ; expected main | +| empty-file.go:1:1:1:1 | expected ';', found 'EOF' | +| empty-file.go:1:1:1:1 | expected 'IDENT', found 'EOF' | +| empty-file.go:1:1:1:1 | expected 'package', found 'EOF' | | empty-file.go:1:1:1:1 | expected 'package', found 'EOF' |