MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / TestListStructure_Size

Function TestListStructure_Size

structure/list_test.go:53–66  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

51}
52
53func TestListStructure_Size(t *testing.T) {
54 list, _ := initList()
55 defer list.db.Clean()
56
57 err = list.LPush("2", "123123", 0)
58 assert.Nil(t, err)
59
60 err = list.LPush("2", "1233", 0)
61 assert.Nil(t, err)
62
63 value, err := list.Size("2")
64 assert.Nil(t, err)
65 assert.Equal(t, value, "10B")
66}
67
68func TestListStructure_LPush(t *testing.T) {
69 list, _ := initList()

Callers

nothing calls this directly

Calls 4

initListFunction · 0.85
LPushMethod · 0.65
SizeMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected