MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestNewStore

Function TestNewStore

validator/db/store_test.go:30–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

28)
29
30func TestNewStore(t *testing.T) {
31 store, err := NewStore("temp.db")
32 assert.Nil(t, err)
33
34 _, err = store.GetBestBlock()
35 assert.NotNil(t, err)
36}

Callers

nothing calls this directly

Calls 2

GetBestBlockMethod · 0.95
NewStoreFunction · 0.85

Tested by

no test coverage detected