Skip to content

Commit fe2ef27

Browse files
committed
Fix test file
1 parent 91f8a15 commit fe2ef27

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
| interface { Exported func() ; notExported func() } | func() | Exported |
22
| interface { Exported func() ; notExported func() } | func() | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.notExported |
3+
| interface { Exported func() ; notExported func() } | func() | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.notExported |

go/ql/test/library-tests/semmle/go/Types/MethodTypes.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@
5353
| pkg1/tst.go:3:6:3:6 | T | half | func() Foo |
5454
| pkg1/tst.go:14:6:14:7 | T3 | half | func() Foo |
5555
| pkg1/tst.go:19:6:19:7 | T4 | half | func() Foo |
56+
| pkg2/tst.go:11:6:11:24 | MixedExportedAndNot | Exported | func() |
57+
| pkg2/tst.go:11:6:11:24 | MixedExportedAndNot | notExported | func() |

go/ql/test/library-tests/semmle/go/Types/Method_hasQualifiedName2.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@
5959
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T | half |
6060
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T3 | half |
6161
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T4 | half |
62+
| pkg2/tst.go:12:9:12:16 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.MixedExportedAndNot | Exported |
63+
| pkg2/tst.go:13:9:13:19 | notExported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.MixedExportedAndNot | notExported |

go/ql/test/library-tests/semmle/go/Types/Method_hasQualifiedName3.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@
5959
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T | half |
6060
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T3 | half |
6161
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T4 | half |
62+
| pkg2/tst.go:12:9:12:16 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | MixedExportedAndNot | Exported |
63+
| pkg2/tst.go:13:9:13:19 | notExported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | MixedExportedAndNot | notExported |

go/ql/test/library-tests/semmle/go/Types/Methods.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
| Foo | half | pkg1/tst.go:33:16:33:19 | half |
2626
| GenericInterface | GetT | generic.go:33:2:33:5 | GetT |
2727
| MixedExportedAndNot | Exported | pkg1/interfaces.go:36:2:36:9 | Exported |
28+
| MixedExportedAndNot | Exported | pkg2/tst.go:12:9:12:16 | Exported |
2829
| MixedExportedAndNot | notExported | pkg1/interfaces.go:37:2:37:12 | notExported |
30+
| MixedExportedAndNot | notExported | pkg2/tst.go:13:9:13:19 | notExported |
2931
| MyInterface | clone | generic.go:48:2:48:6 | clone |
3032
| MyInterface | dummy1 | generic.go:49:2:49:7 | dummy1 |
3133
| MyInterface | dummy2 | generic.go:50:2:50:7 | dummy2 |

go/ql/test/library-tests/semmle/go/Types/pkg2/tst.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type G struct {
88
g int
99
}
1010

11-
type MixedExportedAndNot {
11+
type MixedExportedAndNot interface {
1212
Exported()
1313
notExported()
1414
}

0 commit comments

Comments
 (0)