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

Function TestListStructure_RPushs

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

Source from the content-addressed store, hash-verified

105}
106
107func TestListStructure_RPushs(t *testing.T) {
108 list, _ := initList()
109 defer list.db.Clean()
110
111 // Test RPushs function when the key exists
112 listErr = list.RPushs(string(randkv.GetTestKey(1)), 0, randkv.RandomValue(100), randkv.RandomValue(100))
113 assert.Nil(t, listErr)
114
115 // Test RPushs function when the key does not exist
116 listErr = list.RPushs(string(randkv.GetTestKey(2)), 0, randkv.RandomValue(100), randkv.RandomValue(100))
117 assert.Nil(t, listErr)
118}
119
120func TestListStructure_LPop(t *testing.T) {
121 list, _ := initList()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected