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

Function TestListStructure_RPush

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

Source from the content-addressed store, hash-verified

92}
93
94func TestListStructure_RPush(t *testing.T) {
95 list, _ := initList()
96 defer list.db.Clean()
97
98 // Test RPush function when the key exists
99 listErr = list.RPush(string(randkv.GetTestKey(1)), randkv.RandomValue(100), 0)
100 assert.Nil(t, listErr)
101
102 // Test RPush function when the key does not exist
103 listErr = list.RPush(string(randkv.GetTestKey(2)), randkv.RandomValue(100), 0)
104 assert.Nil(t, listErr)
105}
106
107func TestListStructure_RPushs(t *testing.T) {
108 list, _ := initList()

Callers

nothing calls this directly

Calls 5

GetTestKeyFunction · 0.92
RandomValueFunction · 0.92
initListFunction · 0.85
RPushMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected