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

Function initExpire

structure/expiring_key_test.go:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12var expireErr error
13
14func initExpire() (*ExpireStructure, *config.Options) {
15 opts := config.DefaultOptions
16 dir, _ := os.MkdirTemp("", "TestExpireStructure")
17 opts.DirPath = dir
18 expire, _ := NewExpireStructure(opts)
19 return expire, &opts
20}
21
22func TestExpireStructure_EXPIRE(t *testing.T) {
23 expire, _ := initExpire()

Calls 1

NewExpireStructureFunction · 0.85

Tested by

no test coverage detected