Skip to content

Commit e93c422

Browse files
mbgowen-mc
authored andcommitted
Go: Update test expectations for Go 1.24
1 parent f6b460b commit e93c422

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed

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

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,61 @@ numberOfTypeParameters
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/poll.ignoringEINTR2 | 0 | T | interface { } |
6667
| internal/runtime/atomic.Pointer.CompareAndSwap | 0 | T | interface { } |
6768
| internal/runtime/atomic.Pointer.CompareAndSwapNoWB | 0 | T | interface { } |
6869
| internal/runtime/atomic.Pointer.Load | 0 | T | interface { } |
6970
| internal/runtime/atomic.Pointer.Store | 0 | T | interface { } |
7071
| internal/runtime/atomic.Pointer.StoreNoWB | 0 | T | interface { } |
72+
| internal/sync.HashTrieMap.All | 0 | K | comparable |
73+
| internal/sync.HashTrieMap.All | 1 | V | interface { } |
74+
| internal/sync.HashTrieMap.CompareAndDelete | 0 | K | comparable |
75+
| internal/sync.HashTrieMap.CompareAndDelete | 1 | V | interface { } |
76+
| internal/sync.HashTrieMap.CompareAndSwap | 0 | K | comparable |
77+
| internal/sync.HashTrieMap.CompareAndSwap | 1 | V | interface { } |
78+
| internal/sync.HashTrieMap.Delete | 0 | K | comparable |
79+
| internal/sync.HashTrieMap.Load | 0 | K | comparable |
80+
| internal/sync.HashTrieMap.Load | 1 | V | interface { } |
81+
| internal/sync.HashTrieMap.LoadAndDelete | 0 | K | comparable |
82+
| internal/sync.HashTrieMap.LoadAndDelete | 1 | V | interface { } |
83+
| internal/sync.HashTrieMap.LoadOrStore | 0 | K | comparable |
84+
| internal/sync.HashTrieMap.LoadOrStore | 1 | V | interface { } |
85+
| internal/sync.HashTrieMap.Range | 0 | K | comparable |
86+
| internal/sync.HashTrieMap.Range | 1 | V | interface { } |
87+
| internal/sync.HashTrieMap.Store | 0 | K | comparable |
88+
| internal/sync.HashTrieMap.Store | 1 | V | interface { } |
89+
| internal/sync.HashTrieMap.Swap | 0 | K | comparable |
90+
| internal/sync.HashTrieMap.Swap | 1 | V | interface { } |
91+
| internal/sync.HashTrieMap.find | 0 | K | comparable |
92+
| internal/sync.HashTrieMap.find | 1 | V | interface { } |
93+
| internal/sync.HashTrieMap.iter | 0 | K | comparable |
94+
| internal/sync.HashTrieMap.iter | 1 | V | interface { } |
95+
| internal/sync.entry | 0 | K | comparable |
96+
| internal/sync.entry.compareAndDelete | 0 | K | comparable |
97+
| internal/sync.entry.compareAndDelete | 1 | V | interface { } |
98+
| internal/sync.entry.compareAndSwap | 0 | K | comparable |
99+
| internal/sync.entry.compareAndSwap | 1 | V | interface { } |
100+
| internal/sync.entry.loadAndDelete | 0 | K | comparable |
101+
| internal/sync.entry.loadAndDelete | 1 | V | interface { } |
102+
| internal/sync.entry.lookup | 0 | K | comparable |
103+
| internal/sync.entry.lookup | 1 | V | interface { } |
104+
| internal/sync.entry.lookupWithValue | 0 | K | comparable |
105+
| internal/sync.entry.lookupWithValue | 1 | V | interface { } |
106+
| internal/sync.entry.swap | 0 | K | comparable |
107+
| internal/sync.entry.swap | 1 | V | interface { } |
108+
| internal/sync.newEntryNode | 0 | K | comparable |
109+
| internal/sync.newEntryNode | 1 | V | interface { } |
71110
| iter.Pull | 0 | V | interface { } |
72111
| iter.Pull2 | 0 | K | interface { } |
73112
| iter.Pull2 | 1 | V | interface { } |
74113
| iter.Seq | 0 | V | interface { } |
75114
| iter.Seq2 | 0 | K | interface { } |
76115
| iter.Seq2 | 1 | V | interface { } |
116+
| os.doInRoot | 0 | T | interface { } |
117+
| os.ignoringEINTR2 | 0 | T | interface { } |
77118
| reflect.rangeNum | 1 | N | interface { int64 \| uint64 } |
119+
| runtime.AddCleanup | 0 | T | interface { } |
120+
| runtime.AddCleanup | 1 | S | interface { } |
78121
| runtime.fandbits | 0 | F | floaty |
79122
| runtime.fmax | 0 | F | floaty |
80123
| runtime.fmin | 0 | F | floaty |

go/ql/test/query-tests/Diagnostics/CONSISTENCY/UnexpectedFrontendErrors.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
| bad.go:3:5:3:5 | expected 'IDENT', found newline |
66
| bad.go:5:1:5:1 | expected ';', found wnvwun |
77
| badimport.go:6:2:6:2 | invalid import path (invalid character U+007B '{') |
8-
| type.go:11:9:11:9 | cannot use v (variable of type V) as T value in argument to takesT |
8+
| type.go:11:9:11:9 | cannot use v (variable of int type V) as T value in argument to takesT |

go/ql/test/query-tests/Diagnostics/ExtractionErrors.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
| Extraction failed in badimport.go with error invalid import path (invalid character U+007B '{') | 2 |
2-
| Extraction failed in type.go with error cannot use v (variable of type V) as T value in argument to takesT | 2 |
1+
| Extraction failed in query-tests/Diagnostics/badimport.go with error invalid import path (invalid character U+007B '{') | 2 |
2+
| Extraction failed in query-tests/Diagnostics/type.go with error cannot use v (variable of int type V) as T value in argument to takesT | 2 |
33
| Extraction failed with error expected ';', found wnvwun | 2 |
44
| Extraction failed with error expected 'IDENT', found newline | 2 |
55
| Extraction failed with error expected 'package', found avvu | 2 |

0 commit comments

Comments
 (0)