From 13f8488148ce5d0cae786506e55b6523043c4000 Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Tue, 10 Sep 2024 23:50:33 +0100 Subject: [PATCH] Undo spurious test changes The go libraries on my local computer seem to have slightly different go libraries for some reason. --- .../semmle/go/Function/TypeParamType.expected | 37 +++---------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/go/ql/test/library-tests/semmle/go/Function/TypeParamType.expected b/go/ql/test/library-tests/semmle/go/Function/TypeParamType.expected index c1d09ddb080..a3be203d9f1 100644 --- a/go/ql/test/library-tests/semmle/go/Function/TypeParamType.expected +++ b/go/ql/test/library-tests/semmle/go/Function/TypeParamType.expected @@ -58,46 +58,29 @@ numberOfTypeParameters | codeql-go-tests/function.multipleAnonymousTypeParamsType.f | 1 | _ | interface { string } | | codeql-go-tests/function.multipleAnonymousTypeParamsType.f | 2 | _ | interface { } | | github.com/anotherpkg.GenericFunctionInAnotherPackage | 0 | T | interface { } | -| internal/abi.Escape | 0 | T | interface { } | | internal/bytealg.HashStr | 0 | T | interface { string \| []uint8 } | | internal/bytealg.HashStrRev | 0 | T | interface { string \| []uint8 } | | internal/bytealg.IndexRabinKarp | 0 | T | interface { string \| []uint8 } | | internal/bytealg.LastIndexRabinKarp | 0 | T | interface { string \| []uint8 } | -| internal/runtime/atomic.Pointer.CompareAndSwap | 0 | T | interface { } | -| internal/runtime/atomic.Pointer.CompareAndSwapNoWB | 0 | T | interface { } | -| internal/runtime/atomic.Pointer.Load | 0 | T | interface { } | -| internal/runtime/atomic.Pointer.Store | 0 | T | interface { } | -| internal/runtime/atomic.Pointer.StoreNoWB | 0 | T | interface { } | -| iter.Pull | 0 | V | interface { } | -| iter.Pull2 | 0 | K | interface { } | -| iter.Pull2 | 1 | V | interface { } | -| iter.Seq | 0 | V | interface { } | -| iter.Seq2 | 0 | K | interface { } | -| iter.Seq2 | 1 | V | interface { } | -| reflect.rangeNum | 1 | N | interface { int64 \| uint64 } | | runtime.fandbits | 0 | F | floaty | | runtime.fmax | 0 | F | floaty | | runtime.fmin | 0 | F | floaty | | runtime.forbits | 0 | F | floaty | | runtime.noEscapePtr | 0 | T | interface { } | -| slices.All | 0 | Slice | interface { ~[]E } | -| slices.All | 1 | E | interface { } | -| slices.AppendSeq | 0 | Slice | interface { ~[]E } | -| slices.AppendSeq | 1 | E | interface { } | -| slices.Backward | 0 | Slice | interface { ~[]E } | -| slices.Backward | 1 | E | interface { } | +| runtime/internal/atomic.Pointer.CompareAndSwap | 0 | T | interface { } | +| runtime/internal/atomic.Pointer.CompareAndSwapNoWB | 0 | T | interface { } | +| runtime/internal/atomic.Pointer.Load | 0 | T | interface { } | +| runtime/internal/atomic.Pointer.Store | 0 | T | interface { } | +| runtime/internal/atomic.Pointer.StoreNoWB | 0 | T | interface { } | | slices.BinarySearch | 0 | S | interface { ~[]E } | | slices.BinarySearch | 1 | E | Ordered | | slices.BinarySearchFunc | 0 | S | interface { ~[]E } | | slices.BinarySearchFunc | 1 | E | interface { } | | slices.BinarySearchFunc | 2 | T | interface { } | -| slices.Chunk | 0 | Slice | interface { ~[]E } | -| slices.Chunk | 1 | E | interface { } | | slices.Clip | 0 | S | interface { ~[]E } | | slices.Clip | 1 | E | interface { } | | slices.Clone | 0 | S | interface { ~[]E } | | slices.Clone | 1 | E | interface { } | -| slices.Collect | 0 | E | interface { } | | slices.Compact | 0 | S | interface { ~[]E } | | slices.Compact | 1 | E | comparable | | slices.CompactFunc | 0 | S | interface { ~[]E } | @@ -144,8 +127,6 @@ numberOfTypeParameters | slices.Min | 1 | E | Ordered | | slices.MinFunc | 0 | S | interface { ~[]E } | | slices.MinFunc | 1 | E | interface { } | -| slices.Repeat | 0 | S | interface { ~[]E } | -| slices.Repeat | 1 | E | interface { } | | slices.Replace | 0 | S | interface { ~[]E } | | slices.Replace | 1 | E | interface { } | | slices.Reverse | 0 | S | interface { ~[]E } | @@ -156,11 +137,6 @@ numberOfTypeParameters | slices.SortFunc | 1 | E | interface { } | | slices.SortStableFunc | 0 | S | interface { ~[]E } | | slices.SortStableFunc | 1 | E | interface { } | -| slices.Sorted | 0 | E | Ordered | -| slices.SortedFunc | 0 | E | interface { } | -| slices.SortedStableFunc | 0 | E | interface { } | -| slices.Values | 0 | Slice | interface { ~[]E } | -| slices.Values | 1 | E | interface { } | | slices.breakPatternsCmpFunc | 0 | E | interface { } | | slices.breakPatternsOrdered | 0 | E | Ordered | | slices.choosePivotCmpFunc | 0 | E | interface { } | @@ -196,12 +172,11 @@ numberOfTypeParameters | slices.stableCmpFunc | 0 | E | interface { } | | slices.stableOrdered | 0 | E | Ordered | | slices.startIdx | 0 | E | interface { } | +| slices.swap | 0 | E | interface { } | | slices.swapRangeCmpFunc | 0 | E | interface { } | | slices.swapRangeOrdered | 0 | E | Ordered | | slices.symMergeCmpFunc | 0 | E | interface { } | | slices.symMergeOrdered | 0 | E | Ordered | -| strconv.bsearch | 0 | S | interface { ~[]E } | -| strconv.bsearch | 1 | E | interface { ~uint16 \| ~uint32 } | | sync.OnceValue | 0 | T | interface { } | | sync.OnceValues | 0 | T1 | interface { } | | sync.OnceValues | 1 | T2 | interface { } |