Skip to content

Commit 9a61d4e

Browse files
committed
Go: Update frontend error messages for Go 1.23
1 parent 5351fd5 commit 9a61d4e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| -:0:0:0:0 | package ; expected main |
1+
| -:0:0:0:0 | package ; expected package main |
22
| broken2/test1.go:4:2:4:2 | undefined: fmt |
33
| broken2/test1.go:5:2:5:2 | undefined: fmt |
44
| broken2/test1.go:5:14:5:14 | undefined: a |

go/ql/test/library-tests/semmle/go/Files/CONSISTENCY/UnexpectedFrontendErrors.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| -:0:0:0:0 | package ; expected nonexistent |
1+
| -:0:0:0:0 | package ; expected package nonexistent |
22
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected ';', found 'EOF' |
33
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'IDENT', found 'EOF' |
44
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'package', found 'EOF' |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
| -:0:0:0:0 | malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' |
2-
| -:0:0:0:0 | package ; expected main |
2+
| -:0:0:0:0 | package ; expected package main |
33
| bad.go:3:1:3:1 | expected 'package', found avvu |
44
| bad.go:3:1:3:1 | expected 'package', found avvu |
55
| bad.go:3:5:3:5 | expected 'IDENT', found newline |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
| Extraction failed with error expected 'IDENT', found newline | 2 |
55
| Extraction failed with error expected 'package', found avvu | 2 |
66
| Extraction failed with error malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' | 2 |
7-
| Extraction failed with error package ; expected main | 2 |
7+
| Extraction failed with error package ; expected package main | 2 |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| -:0:0:0:0 | package ; expected main |
1+
| -:0:0:0:0 | package ; expected package main |
22
| empty-file.go:1:1:1:1 | expected ';', found 'EOF' |
33
| empty-file.go:1:1:1:1 | expected 'IDENT', found 'EOF' |
44
| empty-file.go:1:1:1:1 | expected 'package', found 'EOF' |

0 commit comments

Comments
 (0)