Skip to content

Commit fa04ece

Browse files
committed
Test changes to be investigated (probably bad)
1 parent 08e61b2 commit fa04ece

File tree

11 files changed

+169
-146
lines changed

11 files changed

+169
-146
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
| main.go:3:6:3:11 | status | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Decl | status |
2-
| main.go:5:6:5:12 | intlist | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Decl | []int |
2+
| main.go:5:6:5:12 | intlist | package github.com/github/codeql-go/ql/test/library-tests/semmle/go/Decl | intlist |

go/ql/test/library-tests/semmle/go/Function/TypeParamType.expected

+94-94
Original file line numberDiff line numberDiff line change
@@ -24,192 +24,192 @@ numberOfTypeParameters
2424
| cmp.Less | 0 | T | Ordered |
2525
| cmp.Or | 0 | T | comparable |
2626
| cmp.isNaN | 0 | T | Ordered |
27-
| codeql-go-tests/function.EdgeConstraint | 0 | TP117 | interface { } |
28-
| codeql-go-tests/function.Element | 0 | TP113 | interface { } |
29-
| codeql-go-tests/function.GenericFunctionInAnotherFile | 0 | TP200 | interface { } |
30-
| codeql-go-tests/function.GenericFunctionOneTypeParam | 0 | TP101 | interface { } |
27+
| codeql-go-tests/function.EdgeConstraint | 0 | TP117 | any |
28+
| codeql-go-tests/function.Element | 0 | TP113 | any |
29+
| codeql-go-tests/function.GenericFunctionInAnotherFile | 0 | TP200 | any |
30+
| codeql-go-tests/function.GenericFunctionOneTypeParam | 0 | TP101 | any |
3131
| codeql-go-tests/function.GenericFunctionTwoTypeParams | 0 | TP102 | comparable |
3232
| codeql-go-tests/function.GenericFunctionTwoTypeParams | 1 | TP103 | interface { int64 \| float64 } |
3333
| codeql-go-tests/function.GenericStruct1 | 0 | TP104 | interface { } |
3434
| codeql-go-tests/function.GenericStruct1.f1 | 0 | TP107 | interface { } |
3535
| codeql-go-tests/function.GenericStruct1.g1 | 0 | TP108 | interface { } |
36-
| codeql-go-tests/function.GenericStruct2 | 0 | TP105 | interface { } |
37-
| codeql-go-tests/function.GenericStruct2 | 1 | TP106 | interface { } |
38-
| codeql-go-tests/function.GenericStruct2.f2 | 0 | TP109 | interface { } |
39-
| codeql-go-tests/function.GenericStruct2.f2 | 1 | TP110 | interface { } |
40-
| codeql-go-tests/function.GenericStruct2.g2 | 0 | TP111 | interface { } |
41-
| codeql-go-tests/function.GenericStruct2.g2 | 1 | TP112 | interface { } |
36+
| codeql-go-tests/function.GenericStruct2 | 0 | TP105 | any |
37+
| codeql-go-tests/function.GenericStruct2 | 1 | TP106 | any |
38+
| codeql-go-tests/function.GenericStruct2.f2 | 0 | TP109 | any |
39+
| codeql-go-tests/function.GenericStruct2.f2 | 1 | TP110 | any |
40+
| codeql-go-tests/function.GenericStruct2.g2 | 0 | TP111 | any |
41+
| codeql-go-tests/function.GenericStruct2.g2 | 1 | TP112 | any |
4242
| codeql-go-tests/function.Graph | 0 | TP118 | NodeConstraint |
4343
| codeql-go-tests/function.Graph | 1 | TP119 | EdgeConstraint |
4444
| codeql-go-tests/function.Graph.ShortestPath | 0 | TP122 | NodeConstraint |
4545
| codeql-go-tests/function.Graph.ShortestPath | 1 | TP123 | EdgeConstraint |
46-
| codeql-go-tests/function.List | 0 | TP114 | interface { } |
47-
| codeql-go-tests/function.List.MyLen | 0 | TP115 | interface { } |
46+
| codeql-go-tests/function.List | 0 | TP114 | any |
47+
| codeql-go-tests/function.List.MyLen | 0 | TP115 | any |
4848
| codeql-go-tests/function.New | 0 | TP120 | NodeConstraint |
4949
| codeql-go-tests/function.New | 1 | TP121 | EdgeConstraint |
50-
| codeql-go-tests/function.NodeConstraint | 0 | TP116 | interface { } |
51-
| codeql-go-tests/function.multipleAnonymousTypeParamsFunc | 0 | _ | interface { } |
50+
| codeql-go-tests/function.NodeConstraint | 0 | TP116 | any |
51+
| codeql-go-tests/function.multipleAnonymousTypeParamsFunc | 0 | _ | any |
5252
| codeql-go-tests/function.multipleAnonymousTypeParamsFunc | 1 | _ | interface { string } |
53-
| codeql-go-tests/function.multipleAnonymousTypeParamsFunc | 2 | _ | interface { } |
54-
| codeql-go-tests/function.multipleAnonymousTypeParamsType | 0 | _ | interface { } |
53+
| codeql-go-tests/function.multipleAnonymousTypeParamsFunc | 2 | _ | any |
54+
| codeql-go-tests/function.multipleAnonymousTypeParamsType | 0 | _ | any |
5555
| codeql-go-tests/function.multipleAnonymousTypeParamsType | 1 | _ | interface { string } |
56-
| codeql-go-tests/function.multipleAnonymousTypeParamsType | 2 | _ | interface { } |
57-
| codeql-go-tests/function.multipleAnonymousTypeParamsType.f | 0 | _ | interface { } |
56+
| codeql-go-tests/function.multipleAnonymousTypeParamsType | 2 | _ | any |
57+
| codeql-go-tests/function.multipleAnonymousTypeParamsType.f | 0 | _ | any |
5858
| codeql-go-tests/function.multipleAnonymousTypeParamsType.f | 1 | _ | interface { string } |
59-
| codeql-go-tests/function.multipleAnonymousTypeParamsType.f | 2 | _ | interface { } |
60-
| github.com/anotherpkg.GenericFunctionInAnotherPackage | 0 | T | interface { } |
61-
| internal/abi.Escape | 0 | T | interface { } |
59+
| codeql-go-tests/function.multipleAnonymousTypeParamsType.f | 2 | _ | any |
60+
| github.com/anotherpkg.GenericFunctionInAnotherPackage | 0 | T | any |
61+
| internal/abi.Escape | 0 | T | any |
6262
| internal/bytealg.HashStr | 0 | T | interface { string \| []uint8 } |
6363
| internal/bytealg.HashStrRev | 0 | T | interface { string \| []uint8 } |
6464
| internal/bytealg.IndexRabinKarp | 0 | T | interface { string \| []uint8 } |
6565
| internal/bytealg.LastIndexRabinKarp | 0 | T | interface { string \| []uint8 } |
66-
| internal/runtime/atomic.Pointer.CompareAndSwap | 0 | T | interface { } |
67-
| internal/runtime/atomic.Pointer.CompareAndSwapNoWB | 0 | T | interface { } |
68-
| internal/runtime/atomic.Pointer.Load | 0 | T | interface { } |
69-
| internal/runtime/atomic.Pointer.Store | 0 | T | interface { } |
70-
| internal/runtime/atomic.Pointer.StoreNoWB | 0 | T | interface { } |
71-
| iter.Pull | 0 | V | interface { } |
72-
| iter.Pull2 | 0 | K | interface { } |
73-
| iter.Pull2 | 1 | V | interface { } |
74-
| iter.Seq | 0 | V | interface { } |
75-
| iter.Seq2 | 0 | K | interface { } |
76-
| iter.Seq2 | 1 | V | interface { } |
66+
| internal/runtime/atomic.Pointer.CompareAndSwap | 0 | T | any |
67+
| internal/runtime/atomic.Pointer.CompareAndSwapNoWB | 0 | T | any |
68+
| internal/runtime/atomic.Pointer.Load | 0 | T | any |
69+
| internal/runtime/atomic.Pointer.Store | 0 | T | any |
70+
| internal/runtime/atomic.Pointer.StoreNoWB | 0 | T | any |
71+
| iter.Pull | 0 | V | any |
72+
| iter.Pull2 | 0 | K | any |
73+
| iter.Pull2 | 1 | V | any |
74+
| iter.Seq | 0 | V | any |
75+
| iter.Seq2 | 0 | K | any |
76+
| iter.Seq2 | 1 | V | any |
7777
| reflect.rangeNum | 1 | N | interface { int64 \| uint64 } |
7878
| runtime.fandbits | 0 | F | floaty |
7979
| runtime.fmax | 0 | F | floaty |
8080
| runtime.fmin | 0 | F | floaty |
8181
| runtime.forbits | 0 | F | floaty |
82-
| runtime.noEscapePtr | 0 | T | interface { } |
82+
| runtime.noEscapePtr | 0 | T | any |
8383
| slices.All | 0 | Slice | interface { ~[]E } |
84-
| slices.All | 1 | E | interface { } |
84+
| slices.All | 1 | E | any |
8585
| slices.AppendSeq | 0 | Slice | interface { ~[]E } |
86-
| slices.AppendSeq | 1 | E | interface { } |
86+
| slices.AppendSeq | 1 | E | any |
8787
| slices.Backward | 0 | Slice | interface { ~[]E } |
88-
| slices.Backward | 1 | E | interface { } |
88+
| slices.Backward | 1 | E | any |
8989
| slices.BinarySearch | 0 | S | interface { ~[]E } |
9090
| slices.BinarySearch | 1 | E | Ordered |
9191
| slices.BinarySearchFunc | 0 | S | interface { ~[]E } |
92-
| slices.BinarySearchFunc | 1 | E | interface { } |
93-
| slices.BinarySearchFunc | 2 | T | interface { } |
92+
| slices.BinarySearchFunc | 1 | E | any |
93+
| slices.BinarySearchFunc | 2 | T | any |
9494
| slices.Chunk | 0 | Slice | interface { ~[]E } |
95-
| slices.Chunk | 1 | E | interface { } |
95+
| slices.Chunk | 1 | E | any |
9696
| slices.Clip | 0 | S | interface { ~[]E } |
97-
| slices.Clip | 1 | E | interface { } |
97+
| slices.Clip | 1 | E | any |
9898
| slices.Clone | 0 | S | interface { ~[]E } |
99-
| slices.Clone | 1 | E | interface { } |
100-
| slices.Collect | 0 | E | interface { } |
99+
| slices.Clone | 1 | E | any |
100+
| slices.Collect | 0 | E | any |
101101
| slices.Compact | 0 | S | interface { ~[]E } |
102102
| slices.Compact | 1 | E | comparable |
103103
| slices.CompactFunc | 0 | S | interface { ~[]E } |
104-
| slices.CompactFunc | 1 | E | interface { } |
104+
| slices.CompactFunc | 1 | E | any |
105105
| slices.Compare | 0 | S | interface { ~[]E } |
106106
| slices.Compare | 1 | E | Ordered |
107107
| slices.CompareFunc | 0 | S1 | interface { ~[]E1 } |
108108
| slices.CompareFunc | 1 | S2 | interface { ~[]E2 } |
109-
| slices.CompareFunc | 2 | E1 | interface { } |
110-
| slices.CompareFunc | 3 | E2 | interface { } |
109+
| slices.CompareFunc | 2 | E1 | any |
110+
| slices.CompareFunc | 3 | E2 | any |
111111
| slices.Concat | 0 | S | interface { ~[]E } |
112-
| slices.Concat | 1 | E | interface { } |
112+
| slices.Concat | 1 | E | any |
113113
| slices.Contains | 0 | S | interface { ~[]E } |
114114
| slices.Contains | 1 | E | comparable |
115115
| slices.ContainsFunc | 0 | S | interface { ~[]E } |
116-
| slices.ContainsFunc | 1 | E | interface { } |
116+
| slices.ContainsFunc | 1 | E | any |
117117
| slices.Delete | 0 | S | interface { ~[]E } |
118-
| slices.Delete | 1 | E | interface { } |
118+
| slices.Delete | 1 | E | any |
119119
| slices.DeleteFunc | 0 | S | interface { ~[]E } |
120-
| slices.DeleteFunc | 1 | E | interface { } |
120+
| slices.DeleteFunc | 1 | E | any |
121121
| slices.Equal | 0 | S | interface { ~[]E } |
122122
| slices.Equal | 1 | E | comparable |
123123
| slices.EqualFunc | 0 | S1 | interface { ~[]E1 } |
124124
| slices.EqualFunc | 1 | S2 | interface { ~[]E2 } |
125-
| slices.EqualFunc | 2 | E1 | interface { } |
126-
| slices.EqualFunc | 3 | E2 | interface { } |
125+
| slices.EqualFunc | 2 | E1 | any |
126+
| slices.EqualFunc | 3 | E2 | any |
127127
| slices.Grow | 0 | S | interface { ~[]E } |
128-
| slices.Grow | 1 | E | interface { } |
128+
| slices.Grow | 1 | E | any |
129129
| slices.Index | 0 | S | interface { ~[]E } |
130130
| slices.Index | 1 | E | comparable |
131131
| slices.IndexFunc | 0 | S | interface { ~[]E } |
132-
| slices.IndexFunc | 1 | E | interface { } |
132+
| slices.IndexFunc | 1 | E | any |
133133
| slices.Insert | 0 | S | interface { ~[]E } |
134-
| slices.Insert | 1 | E | interface { } |
134+
| slices.Insert | 1 | E | any |
135135
| slices.IsSorted | 0 | S | interface { ~[]E } |
136136
| slices.IsSorted | 1 | E | Ordered |
137137
| slices.IsSortedFunc | 0 | S | interface { ~[]E } |
138-
| slices.IsSortedFunc | 1 | E | interface { } |
138+
| slices.IsSortedFunc | 1 | E | any |
139139
| slices.Max | 0 | S | interface { ~[]E } |
140140
| slices.Max | 1 | E | Ordered |
141141
| slices.MaxFunc | 0 | S | interface { ~[]E } |
142-
| slices.MaxFunc | 1 | E | interface { } |
142+
| slices.MaxFunc | 1 | E | any |
143143
| slices.Min | 0 | S | interface { ~[]E } |
144144
| slices.Min | 1 | E | Ordered |
145145
| slices.MinFunc | 0 | S | interface { ~[]E } |
146-
| slices.MinFunc | 1 | E | interface { } |
146+
| slices.MinFunc | 1 | E | any |
147147
| slices.Repeat | 0 | S | interface { ~[]E } |
148-
| slices.Repeat | 1 | E | interface { } |
148+
| slices.Repeat | 1 | E | any |
149149
| slices.Replace | 0 | S | interface { ~[]E } |
150-
| slices.Replace | 1 | E | interface { } |
150+
| slices.Replace | 1 | E | any |
151151
| slices.Reverse | 0 | S | interface { ~[]E } |
152-
| slices.Reverse | 1 | E | interface { } |
152+
| slices.Reverse | 1 | E | any |
153153
| slices.Sort | 0 | S | interface { ~[]E } |
154154
| slices.Sort | 1 | E | Ordered |
155155
| slices.SortFunc | 0 | S | interface { ~[]E } |
156-
| slices.SortFunc | 1 | E | interface { } |
156+
| slices.SortFunc | 1 | E | any |
157157
| slices.SortStableFunc | 0 | S | interface { ~[]E } |
158-
| slices.SortStableFunc | 1 | E | interface { } |
158+
| slices.SortStableFunc | 1 | E | any |
159159
| slices.Sorted | 0 | E | Ordered |
160-
| slices.SortedFunc | 0 | E | interface { } |
161-
| slices.SortedStableFunc | 0 | E | interface { } |
160+
| slices.SortedFunc | 0 | E | any |
161+
| slices.SortedStableFunc | 0 | E | any |
162162
| slices.Values | 0 | Slice | interface { ~[]E } |
163-
| slices.Values | 1 | E | interface { } |
164-
| slices.breakPatternsCmpFunc | 0 | E | interface { } |
163+
| slices.Values | 1 | E | any |
164+
| slices.breakPatternsCmpFunc | 0 | E | any |
165165
| slices.breakPatternsOrdered | 0 | E | Ordered |
166-
| slices.choosePivotCmpFunc | 0 | E | interface { } |
166+
| slices.choosePivotCmpFunc | 0 | E | any |
167167
| slices.choosePivotOrdered | 0 | E | Ordered |
168-
| slices.heapSortCmpFunc | 0 | E | interface { } |
168+
| slices.heapSortCmpFunc | 0 | E | any |
169169
| slices.heapSortOrdered | 0 | E | Ordered |
170-
| slices.insertionSortCmpFunc | 0 | E | interface { } |
170+
| slices.insertionSortCmpFunc | 0 | E | any |
171171
| slices.insertionSortOrdered | 0 | E | Ordered |
172172
| slices.isNaN | 0 | T | Ordered |
173-
| slices.medianAdjacentCmpFunc | 0 | E | interface { } |
173+
| slices.medianAdjacentCmpFunc | 0 | E | any |
174174
| slices.medianAdjacentOrdered | 0 | E | Ordered |
175-
| slices.medianCmpFunc | 0 | E | interface { } |
175+
| slices.medianCmpFunc | 0 | E | any |
176176
| slices.medianOrdered | 0 | E | Ordered |
177-
| slices.order2CmpFunc | 0 | E | interface { } |
177+
| slices.order2CmpFunc | 0 | E | any |
178178
| slices.order2Ordered | 0 | E | Ordered |
179-
| slices.overlaps | 0 | E | interface { } |
180-
| slices.partialInsertionSortCmpFunc | 0 | E | interface { } |
179+
| slices.overlaps | 0 | E | any |
180+
| slices.partialInsertionSortCmpFunc | 0 | E | any |
181181
| slices.partialInsertionSortOrdered | 0 | E | Ordered |
182-
| slices.partitionCmpFunc | 0 | E | interface { } |
183-
| slices.partitionEqualCmpFunc | 0 | E | interface { } |
182+
| slices.partitionCmpFunc | 0 | E | any |
183+
| slices.partitionEqualCmpFunc | 0 | E | any |
184184
| slices.partitionEqualOrdered | 0 | E | Ordered |
185185
| slices.partitionOrdered | 0 | E | Ordered |
186-
| slices.pdqsortCmpFunc | 0 | E | interface { } |
186+
| slices.pdqsortCmpFunc | 0 | E | any |
187187
| slices.pdqsortOrdered | 0 | E | Ordered |
188-
| slices.reverseRangeCmpFunc | 0 | E | interface { } |
188+
| slices.reverseRangeCmpFunc | 0 | E | any |
189189
| slices.reverseRangeOrdered | 0 | E | Ordered |
190-
| slices.rotateCmpFunc | 0 | E | interface { } |
191-
| slices.rotateLeft | 0 | E | interface { } |
190+
| slices.rotateCmpFunc | 0 | E | any |
191+
| slices.rotateLeft | 0 | E | any |
192192
| slices.rotateOrdered | 0 | E | Ordered |
193-
| slices.rotateRight | 0 | E | interface { } |
194-
| slices.siftDownCmpFunc | 0 | E | interface { } |
193+
| slices.rotateRight | 0 | E | any |
194+
| slices.siftDownCmpFunc | 0 | E | any |
195195
| slices.siftDownOrdered | 0 | E | Ordered |
196-
| slices.stableCmpFunc | 0 | E | interface { } |
196+
| slices.stableCmpFunc | 0 | E | any |
197197
| slices.stableOrdered | 0 | E | Ordered |
198-
| slices.startIdx | 0 | E | interface { } |
199-
| slices.swapRangeCmpFunc | 0 | E | interface { } |
198+
| slices.startIdx | 0 | E | any |
199+
| slices.swapRangeCmpFunc | 0 | E | any |
200200
| slices.swapRangeOrdered | 0 | E | Ordered |
201-
| slices.symMergeCmpFunc | 0 | E | interface { } |
201+
| slices.symMergeCmpFunc | 0 | E | any |
202202
| slices.symMergeOrdered | 0 | E | Ordered |
203203
| strconv.bsearch | 0 | S | interface { ~[]E } |
204204
| strconv.bsearch | 1 | E | interface { ~uint16 \| ~uint32 } |
205-
| sync.OnceValue | 0 | T | interface { } |
206-
| sync.OnceValues | 0 | T1 | interface { } |
207-
| sync.OnceValues | 1 | T2 | interface { } |
208-
| sync/atomic.Pointer | 0 | T | interface { } |
209-
| sync/atomic.Pointer.CompareAndSwap | 0 | T | interface { } |
210-
| sync/atomic.Pointer.Load | 0 | T | interface { } |
211-
| sync/atomic.Pointer.Store | 0 | T | interface { } |
212-
| sync/atomic.Pointer.Swap | 0 | T | interface { } |
205+
| sync.OnceValue | 0 | T | any |
206+
| sync.OnceValues | 0 | T1 | any |
207+
| sync.OnceValues | 1 | T2 | any |
208+
| sync/atomic.Pointer | 0 | T | any |
209+
| sync/atomic.Pointer.CompareAndSwap | 0 | T | any |
210+
| sync/atomic.Pointer.Load | 0 | T | any |
211+
| sync/atomic.Pointer.Store | 0 | T | any |
212+
| sync/atomic.Pointer.Swap | 0 | T | any |
213213
| time.atoi | 0 | bytes | interface { []uint8 \| string } |
214214
| time.isDigit | 0 | bytes | interface { []uint8 \| string } |
215215
| time.leadingInt | 0 | bytes | interface { []uint8 \| string } |

0 commit comments

Comments
 (0)