Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
30
func
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
GetBestBlock
Method · 0.95
NewStore
Function · 0.85
Tested by
no test coverage detected