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

Function TestNewFlyDB

engine/db_test.go:27–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestNewFlyDB(t *testing.T) {
28 opts := config.DefaultOptions
29 dir, _ := os.MkdirTemp("", "flydb")
30 opts.DirPath = dir
31 db, err := NewDB(opts)
32 defer destroyDB(db)
33 assert.Nil(t, err)
34 assert.NotNil(t, db)
35}
36
37func TestDB_Put(t *testing.T) {
38 opts := config.DefaultOptions

Callers

nothing calls this directly

Calls 2

NewDBFunction · 0.85
destroyDBFunction · 0.85

Tested by

no test coverage detected