зеркало из https://github.com/github/codeql.git
Accept test changes
Some diagnostics have been reworded for Go 1.20, and a standard library type parameter is visible to the TypeParamType test.
This commit is contained in:
Родитель
d075e016b2
Коммит
194316d1c0
|
@ -1,7 +1,7 @@
|
|||
| -: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/test1.go:4:2:4:2 | undefined: fmt |
|
||||
| broken2/test1.go:5:2:5:2 | undefined: fmt |
|
||||
| broken2/test1.go:5:14:5:14 | undefined: 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 |
|
||||
|
|
|
@ -5,8 +5,8 @@ qcompilations
|
|||
| compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | go.mod:0:0:0:0 | go.mod |
|
||||
| compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | notbroken/test.go:0:0:0:0 | notbroken/test.go |
|
||||
qdiagnostics
|
||||
| broken2/test1.go:4:2:4:2 | error: undeclared name: fmt | compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | broken2/test1.go:0:0:0:0 | broken2/test1.go |
|
||||
| broken2/test1.go:5:2:5:2 | error: undeclared name: fmt | compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | broken2/test1.go:0:0:0:0 | broken2/test1.go |
|
||||
| broken2/test1.go:5:14:5:14 | error: undeclared name: a | compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | broken2/test1.go:0:0:0:0 | broken2/test1.go |
|
||||
| broken2/test1.go:4:2:4:2 | error: undefined: fmt | compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | broken2/test1.go:0:0:0:0 | broken2/test1.go |
|
||||
| broken2/test1.go:5:2:5:2 | error: undefined: fmt | compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | broken2/test1.go:0:0:0:0 | broken2/test1.go |
|
||||
| broken2/test1.go:5:14:5:14 | error: undefined: a | compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | broken2/test1.go:0:0:0:0 | broken2/test1.go |
|
||||
| broken/test.go:7:1:7:1 | error: expected declaration, found This | compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | broken/test.go:0:0:0:0 | broken/test.go |
|
||||
duplicateerrs
|
||||
|
|
|
@ -13,3 +13,4 @@
|
|||
| TG2 | interface { } |
|
||||
| U | interface { } |
|
||||
| V | interface { int64 \| float64 } |
|
||||
| bytes | interface { []uint8 \| string } |
|
||||
|
|
|
@ -1 +1 @@
|
|||
| unknownFunction.go:9:7:9:7 | undeclared name: unknownFunction |
|
||||
| unknownFunction.go:9:7:9:7 | undefined: unknownFunction |
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
| 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{}" |
|
||||
| badimport.go:6:2:6:2 | malformed import path "github.com/pkg{}": invalid char '{' |
|
||||
| type.go:11:9:11:9 | cannot use v (variable of type V) as T value in argument to takesT |
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
| 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/badimport.go with error malformed import path "github.com/pkg{}": invalid char '{' | 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 |
|
||||
|
|
|
@ -1 +1 @@
|
|||
| main.go:36:9:36:9 | undeclared name: unknownFunction |
|
||||
| main.go:36:9:36:9 | undefined: unknownFunction |
|
||||
|
|
|
@ -1 +1 @@
|
|||
| err.go:6:7:6:7 | undeclared name: unknownFunction |
|
||||
| err.go:6:7:6:7 | undefined: unknownFunction |
|
||||
|
|
Загрузка…
Ссылка в новой задаче