github.com/neatlab/neatio@v1.7.3-0.20220425043230-d903e92fcc75/chain/trie/database_test.go (about)

     1  package trie
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/neatlab/neatio/neatdb/memorydb"
     7  	"github.com/neatlab/neatio/utilities/common"
     8  )
     9  
    10  func TestDatabaseMetarootFetch(t *testing.T) {
    11  	db := NewDatabase(memorydb.New())
    12  	if _, err := db.Node(common.Hash{}); err == nil {
    13  		t.Fatalf("metaroot retrieval succeeded")
    14  	}
    15  }