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

Function initdb

structure/string_test.go:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13var err error
14
15func initdb() (*StringStructure, *config.Options) {
16 opts := config.DefaultOptions
17 dir, _ := os.MkdirTemp("", "TestStringStructure_Get")
18 opts.DirPath = dir
19 str, _ := NewStringStructure(opts)
20 return str, &opts
21}
22
23func TestStringStructure_Get(t *testing.T) {
24 str, _ := initdb()

Calls 1

NewStringStructureFunction · 0.85

Tested by

no test coverage detected