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

Function initZSetDB

structure/zset_test.go:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func initZSetDB() (*ZSetStructure, *config.Options) {
14 opts := config.DefaultOptions
15 dir, _ := os.MkdirTemp("", "TestZSetStructure")
16 opts.DirPath = dir
17 zs, _ := NewZSetStructure(opts)
18 return zs, &opts
19}
20
21func TestSortedSet(t *testing.T) {
22 type test struct {

Callers 14

TestZRemFunction · 0.85
TestZRemsFunction · 0.85
TestZAddFunction · 0.85
TestZAddsFunction · 0.85
TestZIncrByFunction · 0.85
TestZRankFunction · 0.85
TestZRevRankFunction · 0.85
TestZRevRangeFunction · 0.85
TestZRangeFunction · 0.85
TestZCardFunction · 0.85
TestZScoreFunction · 0.85
TestZCountFunction · 0.85

Calls 1

NewZSetStructureFunction · 0.85

Tested by

no test coverage detected