Skip to content

Commit

Permalink
Fix test file
Browse files Browse the repository at this point in the history
  • Loading branch information
smowton committed Sep 3, 2024
1 parent 91f8a15 commit fe2ef27
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
| interface { Exported func() ; notExported func() } | func() | Exported |
| interface { Exported func() ; notExported func() } | func() | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.notExported |
| interface { Exported func() ; notExported func() } | func() | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.notExported |
2 changes: 2 additions & 0 deletions go/ql/test/library-tests/semmle/go/Types/MethodTypes.expected
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@
| pkg1/tst.go:3:6:3:6 | T | half | func() Foo |
| pkg1/tst.go:14:6:14:7 | T3 | half | func() Foo |
| pkg1/tst.go:19:6:19:7 | T4 | half | func() Foo |
| pkg2/tst.go:11:6:11:24 | MixedExportedAndNot | Exported | func() |
| pkg2/tst.go:11:6:11:24 | MixedExportedAndNot | notExported | func() |
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T | half |
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T3 | half |
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T4 | half |
| pkg2/tst.go:12:9:12:16 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.MixedExportedAndNot | Exported |
| pkg2/tst.go:13:9:13:19 | notExported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.MixedExportedAndNot | notExported |
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T | half |
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T3 | half |
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T4 | half |
| pkg2/tst.go:12:9:12:16 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | MixedExportedAndNot | Exported |
| pkg2/tst.go:13:9:13:19 | notExported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | MixedExportedAndNot | notExported |
2 changes: 2 additions & 0 deletions go/ql/test/library-tests/semmle/go/Types/Methods.expected
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
| Foo | half | pkg1/tst.go:33:16:33:19 | half |
| GenericInterface | GetT | generic.go:33:2:33:5 | GetT |
| MixedExportedAndNot | Exported | pkg1/interfaces.go:36:2:36:9 | Exported |
| MixedExportedAndNot | Exported | pkg2/tst.go:12:9:12:16 | Exported |
| MixedExportedAndNot | notExported | pkg1/interfaces.go:37:2:37:12 | notExported |
| MixedExportedAndNot | notExported | pkg2/tst.go:13:9:13:19 | notExported |
| MyInterface | clone | generic.go:48:2:48:6 | clone |
| MyInterface | dummy1 | generic.go:49:2:49:7 | dummy1 |
| MyInterface | dummy2 | generic.go:50:2:50:7 | dummy2 |
Expand Down
2 changes: 1 addition & 1 deletion go/ql/test/library-tests/semmle/go/Types/pkg2/tst.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type G struct {
g int
}

type MixedExportedAndNot {
type MixedExportedAndNot interface {
Exported()
notExported()
}

0 comments on commit fe2ef27

Please sign in to comment.