Skip to content

Commit 770774e

Browse files
authored
Merge pull request #17671 from hvitved/go/fix-tests
Go: Update expected test output
2 parents c15749f + 16feaf1 commit 770774e

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

go/ql/test/library-tests/semmle/go/PrintAst/PrintAst.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
go.mod:
2-
# 0| [GoModFile] library-tests/semmle/go/PrintAst/go.mod
2+
# 0| [GoModFile] go.mod
33
# 1| 0: [GoModModuleLine] go.mod module line
44
# 3| 1: [GoModGoLine] go.mod go line
55
input.go:
6-
# 0| [GoFile] library-tests/semmle/go/PrintAst/input.go
6+
# 0| [GoFile] input.go
77
# 1| package: [Ident] main
88
# 5| 1: [CommentGroup] comment group
99
# 5| 0: [SlashSlashComment] comment
@@ -597,7 +597,7 @@ input.go:
597597
# 145| Type = []int
598598
# 145| 1: [BlockStmt] block statement
599599
other.go:
600-
# 0| [GoFile] library-tests/semmle/go/PrintAst/other.go
600+
# 0| [GoFile] other.go
601601
# 1| package: [Ident] main
602602
# 3| 1: [FuncDecl] function declaration
603603
# 3| 0: [FunctionName, Ident] main

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstExcludeComments.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
go.mod:
2-
# 0| [GoModFile] library-tests/semmle/go/PrintAst/go.mod
2+
# 0| [GoModFile] go.mod
33
# 1| 0: [GoModModuleLine] go.mod module line
44
# 3| 1: [GoModGoLine] go.mod go line
55
input.go:
6-
# 0| [GoFile] library-tests/semmle/go/PrintAst/input.go
6+
# 0| [GoFile] input.go
77
# 1| package: [Ident] main
88
# 3| 1: [ImportDecl] import declaration
99
# 3| 0: [ImportSpec] import specifier
@@ -577,7 +577,7 @@ input.go:
577577
# 145| Type = []int
578578
# 145| 1: [BlockStmt] block statement
579579
other.go:
580-
# 0| [GoFile] library-tests/semmle/go/PrintAst/other.go
580+
# 0| [GoFile] other.go
581581
# 1| package: [Ident] main
582582
# 3| 1: [FuncDecl] function declaration
583583
# 3| 0: [FunctionName, Ident] main

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstNestedFunction.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
go.mod:
2-
# 0| [GoModFile] library-tests/semmle/go/PrintAst/go.mod
2+
# 0| [GoModFile] go.mod
33
# 1| 0: [GoModModuleLine] go.mod module line
44
# 3| 1: [GoModGoLine] go.mod go line
55
input.go:
6-
# 0| [GoFile] library-tests/semmle/go/PrintAst/input.go
6+
# 0| [GoFile] input.go
77
# 1| package: [Ident] main
88
# 5| 1: [CommentGroup] comment group
99
# 5| 0: [SlashSlashComment] comment
@@ -29,7 +29,7 @@ input.go:
2929
# 3| 0: [ImportSpec] import specifier
3030
# 3| 0: [StringLit] "fmt"
3131
other.go:
32-
# 0| [GoFile] library-tests/semmle/go/PrintAst/other.go
32+
# 0| [GoFile] other.go
3333
# 1| package: [Ident] main
3434
# 8| 1: [FuncDecl] function declaration
3535
# 8| 0: [FunctionName, Ident] hasNested

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstRestrictFile.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
other.go:
2-
# 0| [GoFile] library-tests/semmle/go/PrintAst/other.go
2+
# 0| [GoFile] other.go
33
# 1| package: [Ident] main
44
# 3| 1: [FuncDecl] function declaration
55
# 3| 0: [FunctionName, Ident] main

go/ql/test/library-tests/semmle/go/PrintAst/PrintAstRestrictFunction.expected

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
go.mod:
2-
# 0| [GoModFile] library-tests/semmle/go/PrintAst/go.mod
2+
# 0| [GoModFile] go.mod
33
# 1| 0: [GoModModuleLine] go.mod module line
44
# 3| 1: [GoModGoLine] go.mod go line
55
input.go:
6-
# 0| [GoFile] library-tests/semmle/go/PrintAst/input.go
6+
# 0| [GoFile] input.go
77
# 1| package: [Ident] main
88
# 5| 1: [CommentGroup] comment group
99
# 5| 0: [SlashSlashComment] comment
@@ -29,7 +29,7 @@ input.go:
2929
# 3| 0: [ImportSpec] import specifier
3030
# 3| 0: [StringLit] "fmt"
3131
other.go:
32-
# 0| [GoFile] library-tests/semmle/go/PrintAst/other.go
32+
# 0| [GoFile] other.go
3333
# 1| package: [Ident] main
3434
# 6| 1: [FuncDecl] function declaration
3535
# 6| 0: [FunctionName, Ident] g

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| 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/type.go with error cannot use v (variable of type V) as T value in argument to takesT | 2 |
1+
| Extraction failed in badimport.go with error invalid import path (invalid character U+007B '{') | 2 |
2+
| Extraction failed in type.go with error cannot use v (variable of type V) as T value in argument to takesT | 2 |
33
| Extraction failed with error expected ';', found wnvwun | 2 |
44
| Extraction failed with error expected 'IDENT', found newline | 2 |
55
| Extraction failed with error expected 'package', found avvu | 2 |
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
| ../../go.mod:0:0:0:0 | ../../go.mod | |
21
| badimport.go:0:0:0:0 | badimport.go | |
32
| type.go:0:0:0:0 | type.go | |
43
| util.go:0:0:0:0 | util.go | |

0 commit comments

Comments
 (0)