File tree Expand file tree Collapse file tree 9 files changed +28
-28
lines changed
go/ql/test/library-tests/semmle/go/Types Expand file tree Collapse file tree 9 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 46
46
| pkg1/tst.go:30:2:30:5 | flag | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
47
47
| pkg2/tst.go:4:2:4:2 | g | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 |
48
48
| pkg2/tst.go:8:2:8:2 | g | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 |
49
- | struct_tags.go:4:3 :4:8 | field1 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
50
- | struct_tags.go:5:3 :5:8 | field2 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
51
- | struct_tags.go:9:3 :9:8 | field1 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
52
- | struct_tags.go:10:3 :10:8 | field2 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
49
+ | struct_tags.go:4:2 :4:7 | field1 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
50
+ | struct_tags.go:5:2 :5:7 | field2 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
51
+ | struct_tags.go:9:2 :9:7 | field1 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
52
+ | struct_tags.go:10:2 :10:7 | field2 | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types |
Original file line number Diff line number Diff line change 64
64
| pkg2/tst.go:4:2:4:2 | g | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.T | g |
65
65
| pkg2/tst.go:8:2:8:2 | g | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.G | g |
66
66
| pkg2/tst.go:8:2:8:2 | g | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.T | g |
67
- | struct_tags.go:4:3 :4:8 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S1 | field1 |
68
- | struct_tags.go:5:3 :5:8 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S1 | field2 |
69
- | struct_tags.go:9:3 :9:8 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S2 | field1 |
70
- | struct_tags.go:10:3 :10:8 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S2 | field2 |
67
+ | struct_tags.go:4:2 :4:7 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S1 | field1 |
68
+ | struct_tags.go:5:2 :5:7 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S1 | field2 |
69
+ | struct_tags.go:9:2 :9:7 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S2 | field1 |
70
+ | struct_tags.go:10:2 :10:7 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types.S2 | field2 |
Original file line number Diff line number Diff line change 64
64
| pkg2/tst.go:4:2:4:2 | g | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | T | g |
65
65
| pkg2/tst.go:8:2:8:2 | g | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | G | g |
66
66
| pkg2/tst.go:8:2:8:2 | g | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | T | g |
67
- | struct_tags.go:4:3 :4:8 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S1 | field1 |
68
- | struct_tags.go:5:3 :5:8 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S1 | field2 |
69
- | struct_tags.go:9:3 :9:8 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S2 | field1 |
70
- | struct_tags.go:10:3 :10:8 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S2 | field2 |
67
+ | struct_tags.go:4:2 :4:7 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S1 | field1 |
68
+ | struct_tags.go:5:2 :5:7 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S1 | field2 |
69
+ | struct_tags.go:9:2 :9:7 | field1 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S2 | field1 |
70
+ | struct_tags.go:10:2 :10:7 | field2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types | S2 | field2 |
Original file line number Diff line number Diff line change 59
59
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T | half |
60
60
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T3 | half |
61
61
| 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 |
62
+ | pkg2/tst.go:12:2 :12:9 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2.MixedExportedAndNot | Exported |
63
+ | pkg2/tst.go:13:2 :13:12 | 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 59
59
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T | half |
60
60
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T3 | half |
61
61
| 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 |
62
+ | pkg2/tst.go:12:2 :12:9 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg2 | MixedExportedAndNot | Exported |
63
+ | pkg2/tst.go:13:2 :13:12 | 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 25
25
| Foo | half | pkg1/tst.go:33:16:33:19 | half |
26
26
| GenericInterface | GetT | generic.go:33:2:33:5 | GetT |
27
27
| MixedExportedAndNot | Exported | pkg1/interfaces.go:36:2:36:9 | Exported |
28
- | MixedExportedAndNot | Exported | pkg2/tst.go:12:9 :12:16 | Exported |
28
+ | MixedExportedAndNot | Exported | pkg2/tst.go:12:2 :12:9 | Exported |
29
29
| MixedExportedAndNot | notExported | pkg1/interfaces.go:37:2:37:12 | notExported |
30
- | MixedExportedAndNot | notExported | pkg2/tst.go:13:9 :13:19 | notExported |
30
+ | MixedExportedAndNot | notExported | pkg2/tst.go:13:2 :13:12 | notExported |
31
31
| MyInterface | clone | generic.go:48:2:48:6 | clone |
32
32
| MyInterface | dummy1 | generic.go:49:2:49:7 | dummy1 |
33
33
| MyInterface | dummy2 | generic.go:50:2:50:7 | dummy2 |
Original file line number Diff line number Diff line change @@ -9,6 +9,6 @@ type G struct {
9
9
}
10
10
11
11
type MixedExportedAndNot interface {
12
- Exported ()
13
- notExported ()
12
+ Exported ()
13
+ notExported ()
14
14
}
Original file line number Diff line number Diff line change 1
- | struct { field1 int `tag1a`; field2 int `tag2a` } | struct_tags.go:4:3 :4:8 | field1 | tag1a |
2
- | struct { field1 int `tag1a`; field2 int `tag2a` } | struct_tags.go:5:3 :5:8 | field2 | tag2a |
3
- | struct { field1 int `tag1b`; field2 int `tag2b` } | struct_tags.go:9:3 :9:8 | field1 | tag1b |
4
- | struct { field1 int `tag1b`; field2 int `tag2b` } | struct_tags.go:10:3 :10:8 | field2 | tag2b |
1
+ | struct { field1 int `tag1a`; field2 int `tag2a` } | struct_tags.go:4:2 :4:7 | field1 | tag1a |
2
+ | struct { field1 int `tag1a`; field2 int `tag2a` } | struct_tags.go:5:2 :5:7 | field2 | tag2a |
3
+ | struct { field1 int `tag1b`; field2 int `tag2b` } | struct_tags.go:9:2 :9:7 | field1 | tag1b |
4
+ | struct { field1 int `tag1b`; field2 int `tag2b` } | struct_tags.go:10:2 :10:7 | field2 | tag2b |
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
type S1 struct {
4
- field1 int `tag1a`
5
- field2 int `tag2a`
4
+ field1 int `tag1a`
5
+ field2 int `tag2a`
6
6
}
7
7
8
8
type S2 struct {
9
- field1 int `tag1b`
10
- field2 int `tag2b`
9
+ field1 int `tag1b`
10
+ field2 int `tag2b`
11
11
}
You can’t perform that action at this time.
0 commit comments