MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / TestSetStructure_Size

Function TestSetStructure_Size

structure/set_test.go:58–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func TestSetStructure_Size(t *testing.T) {
59 set, _ := initTestSetDb()
60 defer set.db.Clean()
61
62 err = set.SAdd("2", "123123", 0)
63 assert.Nil(t, err)
64
65 err = set.SAdd("2", "1233", 0)
66 assert.Nil(t, err)
67
68 value, err := set.Size("2")
69 assert.Nil(t, err)
70 assert.Equal(t, value, "10B")
71}
72
73func TestSetStructure_SDel(t *testing.T) {
74 set, _ := initTestSetDb()

Callers

nothing calls this directly

Calls 4

initTestSetDbFunction · 0.85
SAddMethod · 0.65
SizeMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected