lib/uint64: remove accidentally added test

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-01-09 13:32:22 +01:00
parent 2a7207f38a
commit f301dc5cfb
No known key found for this signature in database
GPG Key ID: 3BF75F3741CA9640

View File

@ -690,40 +690,6 @@ func testSetSparseItems(t *testing.T, itemsCount int) {
}
}
func FuzzAddMulti(f *testing.F) {
rand.Seed(time.Now().UnixNano())
f.Add(uint64(10))
f.Fuzz(func(t *testing.T, v uint64) {
var s1, s2 Set
v %= 1e3
vs := make([]uint64, v)
for i := range vs {
vs[i] = rand.Uint64()
}
s1.AddMulti(vs)
for _, v := range vs {
s2.Add(v)
}
if s1.Len() != s2.Len() {
t.Fatalf("unexpected number of items in the set; got %d; want %d\nset:\n%d", s1.Len(), s2.Len(), s1.AppendTo(nil))
}
for _, x := range vs {
if !s1.Has(x) {
t.Fatalf("missing item %d in the set", x)
}
}
a1 := s1.AppendTo(nil)
a2 := s2.AppendTo(nil)
if !reflect.DeepEqual(a1, a2) {
t.Fatalf("unexpected items in the set;\ngot\n%d\nwant\n%d", a1, a2)
}
})
}
func TestAddMulti(t *testing.T) {
f := func(a []uint64) {
t.Helper()