Skip to content

Commit 194316d

Browse files
committed
Accept test changes
Some diagnostics have been reworded for Go 1.20, and a standard library type parameter is visible to the TypeParamType test.
1 parent d075e01 commit 194316d

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

go/ql/test/extractor-tests/diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
| -:0:0:0:0 | package ; expected main |
2-
| broken2/test1.go:4:2:4:2 | undeclared name: fmt |
3-
| broken2/test1.go:5:2:5:2 | undeclared name: fmt |
4-
| broken2/test1.go:5:14:5:14 | undeclared name: a |
2+
| broken2/test1.go:4:2:4:2 | undefined: fmt |
3+
| broken2/test1.go:5:2:5:2 | undefined: fmt |
4+
| broken2/test1.go:5:14:5:14 | undefined: a |
55
| broken2/test.go:3:1:3:1 | expected 'package', found pac |
66
| broken2/test.go:3:1:3:1 | expected 'package', found pac |
77
| broken2/test.go:3:4:3:4 | expected 'IDENT', found newline |

go/ql/test/extractor-tests/diagnostics/Diagnostics.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ qcompilations
55
| compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | go.mod:0:0:0:0 | go.mod |
66
| compilation in 'diagnostics': go-extractor -mod=vendor -- ./... | notbroken/test.go:0:0:0:0 | notbroken/test.go |
77
qdiagnostics
8-
| 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 |
9-
| 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 |
10-
| 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 |
8+
| 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 |
9+
| 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 |
10+
| 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 |
1111
| 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 |
1212
duplicateerrs

go/ql/test/library-tests/semmle/go/Function/TypeParamType.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
| TG2 | interface { } |
1414
| U | interface { } |
1515
| V | interface { int64 \| float64 } |
16+
| bytes | interface { []uint8 \| string } |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| unknownFunction.go:9:7:9:7 | undeclared name: unknownFunction |
1+
| unknownFunction.go:9:7:9:7 | undefined: unknownFunction |

go/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
| bad.go:3:5:3:5 | expected 'IDENT', found newline |
66
| bad.go:5:1:5:1 | expected ';', found wnvwun |
77
| badimport.go:6:2:6:2 | invalid import path (invalid character U+007B '{') |
8-
| badimport.go:6:2:6:2 | invalid import path: "github.com/pkg{}" |
8+
| badimport.go:6:2:6:2 | malformed import path "github.com/pkg{}": invalid char '{' |
99
| type.go:11:9:11:9 | cannot use v (variable of type V) as T value in argument to takesT |

go/ql/test/query-tests/Diagnostics/ExtractionErrors.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
| Extraction failed in query-tests/Diagnostics/badimport.go with error invalid import path (invalid character U+007B '{') | 2 |
2-
| Extraction failed in query-tests/Diagnostics/badimport.go with error invalid import path: "github.com/pkg{}" | 2 |
2+
| Extraction failed in query-tests/Diagnostics/badimport.go with error malformed import path "github.com/pkg{}": invalid char '{' | 2 |
33
| 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 |
44
| Extraction failed with error expected ';', found wnvwun | 2 |
55
| Extraction failed with error expected 'IDENT', found newline | 2 |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| main.go:36:9:36:9 | undeclared name: unknownFunction |
1+
| main.go:36:9:36:9 | undefined: unknownFunction |
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
| err.go:6:7:6:7 | undeclared name: unknownFunction |
1+
| err.go:6:7:6:7 | undefined: unknownFunction |

0 commit comments

Comments
 (0)