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

Function TestListStructure_LPush

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

Source from the content-addressed store, hash-verified

66}
67
68func TestListStructure_LPush(t *testing.T) {
69 list, _ := initList()
70 defer list.db.Clean()
71
72 // Test LPush function when the key exists
73 listErr = list.LPush("key", "w", 10)
74 assert.Nil(t, listErr)
75
76 //// Test LPush function when the key does not exist
77 //listErr = list.LPush(string(randkv.GetTestKey(2)), randkv.RandomValue(100))
78 //assert.Nil(t, listErr)
79}
80
81func TestListStructure_LPushs(t *testing.T) {
82 list, _ := initList()

Callers

nothing calls this directly

Calls 3

initListFunction · 0.85
LPushMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected