File tree Expand file tree Collapse file tree 15 files changed +105
-0
lines changed
go/ql/test/library-tests/semmle/go/Types Expand file tree Collapse file tree 15 files changed +105
-0
lines changed Original file line number Diff line number Diff line change 32
32
| pkg1/embedding.go:28:24:28:31 | embedder | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
33
33
| pkg1/embedding.go:36:2:36:5 | base | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
34
34
| pkg1/embedding.go:37:2:37:2 | f | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
35
+ | pkg1/promotedStructs.go:5:2:5:7 | SField | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
36
+ | pkg1/promotedStructs.go:14:2:14:7 | PField | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
37
+ | pkg1/promotedStructs.go:22:22:22:22 | S | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
38
+ | pkg1/promotedStructs.go:25:22:25:22 | P | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
35
39
| pkg1/tst.go:4:2:4:2 | f | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
36
40
| pkg1/tst.go:5:2:5:4 | Foo | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
37
41
| pkg1/tst.go:6:2:6:4 | Bar | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 |
Original file line number Diff line number Diff line change 43
43
| pkg1/embedding.go:28:24:28:31 | embedder | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.embedder3 | embedder |
44
44
| pkg1/embedding.go:36:2:36:5 | base | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.embedder4 | base |
45
45
| pkg1/embedding.go:37:2:37:2 | f | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.embedder4 | f |
46
+ | pkg1/promotedStructs.go:5:2:5:7 | SField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.S | SField |
47
+ | pkg1/promotedStructs.go:5:2:5:7 | SField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.SEmbedS | SField |
48
+ | pkg1/promotedStructs.go:14:2:14:7 | PField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.P | PField |
49
+ | pkg1/promotedStructs.go:14:2:14:7 | PField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.SEmbedP | PField |
50
+ | pkg1/promotedStructs.go:22:22:22:22 | S | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.SEmbedS | S |
51
+ | pkg1/promotedStructs.go:25:22:25:22 | P | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.SEmbedP | P |
46
52
| pkg1/tst.go:4:2:4:2 | f | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T | f |
47
53
| pkg1/tst.go:5:2:5:4 | Foo | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T | Foo |
48
54
| pkg1/tst.go:6:2:6:4 | Bar | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T | Bar |
Original file line number Diff line number Diff line change 43
43
| pkg1/embedding.go:28:24:28:31 | embedder | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | embedder3 | embedder |
44
44
| pkg1/embedding.go:36:2:36:5 | base | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | embedder4 | base |
45
45
| pkg1/embedding.go:37:2:37:2 | f | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | embedder4 | f |
46
+ | pkg1/promotedStructs.go:5:2:5:7 | SField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | S | SField |
47
+ | pkg1/promotedStructs.go:5:2:5:7 | SField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | SEmbedS | SField |
48
+ | pkg1/promotedStructs.go:14:2:14:7 | PField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | P | PField |
49
+ | pkg1/promotedStructs.go:14:2:14:7 | PField | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | SEmbedP | PField |
50
+ | pkg1/promotedStructs.go:22:22:22:22 | S | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | SEmbedS | S |
51
+ | pkg1/promotedStructs.go:25:22:25:22 | P | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | SEmbedP | P |
46
52
| pkg1/tst.go:4:2:4:2 | f | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T | f |
47
53
| pkg1/tst.go:5:2:5:4 | Foo | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T | Foo |
48
54
| pkg1/tst.go:6:2:6:4 | Bar | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T | Bar |
Original file line number Diff line number Diff line change 1
1
| * Foo | 1 |
2
+ | * P | 1 |
2
3
| * base | 2 |
3
4
| * embedder | 2 |
4
5
| * embedder2 | 2 |
16
17
| GenericInterface | 1 |
17
18
| MixedExportedAndNot | 2 |
18
19
| MyInterface | 17 |
20
+ | S | 1 |
21
+ | SEmbedS | 1 |
19
22
| T | 1 |
20
23
| T3 | 1 |
21
24
| T4 | 1 |
Original file line number Diff line number Diff line change 50
50
| pkg1/interfaces.go:31:6:31:7 | A2 | m | func() |
51
51
| pkg1/interfaces.go:35:6:35:24 | MixedExportedAndNot | Exported | func() |
52
52
| pkg1/interfaces.go:35:6:35:24 | MixedExportedAndNot | notExported | func() |
53
+ | pkg1/promotedStructs.go:22:6:22:12 | SEmbedS | SMethod | func() interface { } |
53
54
| pkg1/tst.go:3:6:3:6 | T | half | func() Foo |
54
55
| pkg1/tst.go:14:6:14:7 | T3 | half | func() Foo |
55
56
| pkg1/tst.go:19:6:19:7 | T4 | half | func() Foo |
Original file line number Diff line number Diff line change 55
55
| pkg1/interfaces.go:32:2:32:2 | m | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.A2 | m |
56
56
| pkg1/interfaces.go:36:2:36:9 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.MixedExportedAndNot | Exported |
57
57
| pkg1/interfaces.go:37:2:37:12 | notExported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.MixedExportedAndNot | notExported |
58
+ | pkg1/promotedStructs.go:8:12:8:18 | SMethod | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.S | SMethod |
59
+ | pkg1/promotedStructs.go:8:12:8:18 | SMethod | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.SEmbedS | SMethod |
60
+ | pkg1/promotedStructs.go:17:13:17:19 | PMethod | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.P | PMethod |
58
61
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.Foo | half |
59
62
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T | half |
60
63
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T3 | half |
Original file line number Diff line number Diff line change 55
55
| pkg1/interfaces.go:32:2:32:2 | m | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | A2 | m |
56
56
| pkg1/interfaces.go:36:2:36:9 | Exported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | MixedExportedAndNot | Exported |
57
57
| pkg1/interfaces.go:37:2:37:12 | notExported | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | MixedExportedAndNot | notExported |
58
+ | pkg1/promotedStructs.go:8:12:8:18 | SMethod | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | S | SMethod |
59
+ | pkg1/promotedStructs.go:8:12:8:18 | SMethod | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | SEmbedS | SMethod |
60
+ | pkg1/promotedStructs.go:17:13:17:19 | PMethod | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | P | PMethod |
58
61
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | Foo | half |
59
62
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T | half |
60
63
| pkg1/tst.go:33:16:33:19 | half | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1 | T3 | half |
Original file line number Diff line number Diff line change 1
1
| * Foo | half | pkg1/tst.go:33:16:33:19 | half |
2
+ | * P | PMethod | pkg1/promotedStructs.go:17:13:17:19 | PMethod |
2
3
| * base | f | pkg1/embedding.go:10:13:10:13 | f |
3
4
| * base | g | pkg1/embedding.go:14:14:14:14 | g |
4
5
| * embedder | f | pkg1/embedding.go:10:13:10:13 | f |
45
46
| MyInterface | dummy18 | generic.go:62:2:62:8 | dummy18 |
46
47
| MyInterface | dummy19 | generic.go:63:2:63:8 | dummy19 |
47
48
| MyInterface | dummy20 | generic.go:64:2:64:8 | dummy20 |
49
+ | S | SMethod | pkg1/promotedStructs.go:8:12:8:18 | SMethod |
50
+ | SEmbedS | SMethod | pkg1/promotedStructs.go:8:12:8:18 | SMethod |
48
51
| T | half | pkg1/tst.go:33:16:33:19 | half |
49
52
| T3 | half | pkg1/tst.go:33:16:33:19 | half |
50
53
| T4 | half | pkg1/tst.go:33:16:33:19 | half |
Original file line number Diff line number Diff line change 91
91
| pkg1/interfaces.go:26:6:26:14 | AExtended | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.AExtended |
92
92
| pkg1/interfaces.go:31:6:31:7 | A2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.A2 |
93
93
| pkg1/interfaces.go:35:6:35:24 | MixedExportedAndNot | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.MixedExportedAndNot |
94
+ | pkg1/promotedStructs.go:4:6:4:6 | S | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.S |
95
+ | pkg1/promotedStructs.go:13:6:13:6 | P | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.P |
96
+ | pkg1/promotedStructs.go:22:6:22:12 | SEmbedS | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.SEmbedS |
97
+ | pkg1/promotedStructs.go:25:6:25:12 | SEmbedP | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.SEmbedP |
94
98
| pkg1/tst.go:3:6:3:6 | T | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T |
95
99
| pkg1/tst.go:9:6:9:7 | T2 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T2 |
96
100
| pkg1/tst.go:14:6:14:7 | T3 | github.com/github/codeql-go/ql/test/library-tests/semmle/go/Types/pkg1.T3 |
Original file line number Diff line number Diff line change 11
11
| pkg1/embedding.go:14:1:16:1 | function declaration | 0 |
12
12
| pkg1/embedding.go:30:1:32:1 | function declaration | 0 |
13
13
| pkg1/embedding.go:40:1:61:1 | function declaration | 0 |
14
+ | pkg1/promotedStructs.go:8:1:10:1 | function declaration | 0 |
15
+ | pkg1/promotedStructs.go:17:1:19:1 | function declaration | 0 |
14
16
| pkg1/tst.go:33:1:35:1 | function declaration | 0 |
15
17
| pkg1/tst.go:37:1:37:26 | function declaration | 1 |
16
18
| pkg1/tst.go:39:1:57:1 | function declaration | 2 |
19
+ | promoted.go:7:1:10:1 | function declaration | 1 |
20
+ | promoted.go:12:1:15:1 | function declaration | 1 |
21
+ | promoted.go:17:1:20:1 | function declaration | 1 |
22
+ | promoted.go:22:1:25:1 | function declaration | 1 |
17
23
| unknownFunction.go:8:1:12:1 | function declaration | 0 |
18
24
| variadicFunctions.go:5:1:8:1 | function declaration | 0 |
19
25
| variadicFunctions.go:10:1:18:1 | function declaration | 1 |
You can’t perform that action at this time.
0 commit comments