SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
add test case for issue 52
Chris Lu3185eebf2e6f
diff --git a/go/storage/compact_map_test.go b/go/storage/compact_map_test.goindex 2f8d176350..1ccb48edb6 100644--- a/go/storage/compact_map_test.go+++ b/go/storage/compact_map_test.go@@ -4,6 +4,20 @@ import ("testing")+func TestIssue52(t *testing.T) {+ m := NewCompactMap()+ m.Set(Key(10002), 10002, 10002)+ if element, ok := m.Get(Key(10002)); ok {+ println("key", 10002, "ok", ok, element.Key, element.Offset, element.Size)+ }+ m.Set(Key(10001), 10001, 10001)+ if element, ok := m.Get(Key(10002)); ok {+ println("key", 10002, "ok", ok, element.Key, element.Offset, element.Size)+ } else {+ t.Fatal("key 10002 missing after setting 10001")+ }+}+func TestXYZ(t *testing.T) {m := NewCompactMap()for i := uint32(0); i < 100*batch; i += 2 {