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

Function initList

structure/list_test.go:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14var listErr error
15
16func initList() (*ListStructure, *config.Options) {
17 opts := config.DefaultOptions
18 dir, _ := os.MkdirTemp("", "TestListStructure")
19 opts.DirPath = dir
20 list, _ := NewListStructure(opts)
21 return list, &opts
22}
23
24func TestListStructure_TTL(t *testing.T) {
25 list, _ := initList()

Callers 15

TestListStructure_TTLFunction · 0.85
TestListStructure_SizeFunction · 0.85
TestListStructure_LPushFunction · 0.85
TestListStructure_LPushsFunction · 0.85
TestListStructure_RPushFunction · 0.85
TestListStructure_RPushsFunction · 0.85
TestListStructure_LPopFunction · 0.85
TestListStructure_RPopFunction · 0.85
TestListStructure_LRangeFunction · 0.85
TestListStructure_LLenFunction · 0.85
TestListStructure_LRemFunction · 0.85
TestListStructure_LSetFunction · 0.85

Calls 1

NewListStructureFunction · 0.85

Tested by

no test coverage detected