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

Function initTestSetDb

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

Source from the content-addressed store, hash-verified

14)
15
16func initTestSetDb() (*SetStructure, *config.Options) {
17 opts := config.DefaultOptions
18 dir, _ := os.MkdirTemp("", "TestSetStructure")
19 opts.DirPath = dir
20 str, _ := NewSetStructure(opts)
21 return str, &opts
22}
23
24func TestSetStructure_TTL(t *testing.T) {
25 set, _ := initTestSetDb()

Callers 15

TestSetStructure_TTLFunction · 0.85
TestSetStructure_SizeFunction · 0.85
TestSetStructure_SDelFunction · 0.85
TestSAddFunction · 0.85
TestSAddsFunction · 0.85
TestSRemsFunction · 0.85
TestSRemFunction · 0.85
TestSCardFunction · 0.85
TestSMembersFunction · 0.85
TestSIsMemberFunction · 0.85
TestSUnionFunction · 0.85
TestSInterFunction · 0.85

Calls 1

NewSetStructureFunction · 0.85

Tested by

no test coverage detected