Fix test file

This commit is contained in:
Chris Smowton
2024-09-03 12:44:33 +01:00
parent 22ed2f9ae3
commit 5d14070cd4
6 changed files with 10 additions and 1 deletions

View File

@@ -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 |

View File

@@ -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() |

View File

@@ -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 |

View File

@@ -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 |

View File

@@ -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 |

View File

@@ -8,7 +8,7 @@ type G struct {
g int
}
type MixedExportedAndNot {
type MixedExportedAndNot interface {
Exported()
notExported()
}