MCPcopy
hub / github.com/mxpv/podsync / TestNewBadger

Function TestNewBadger

pkg/db/badger_test.go:16–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14var testCtx = context.TODO()
15
16func TestNewBadger(t *testing.T) {
17 dir := t.TempDir()
18
19 db, err := NewBadger(&Config{Dir: dir})
20 require.NoError(t, err)
21
22 err = db.Close()
23 assert.NoError(t, err)
24}
25
26func TestBadger_Version(t *testing.T) {
27 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

CloseMethod · 0.95
NewBadgerFunction · 0.85

Tested by

no test coverage detected