github.com/clly/consul@v1.4.5/agent/consul/state/schema_test.go (about)

     1  package state
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/hashicorp/go-memdb"
     7  )
     8  
     9  func TestStateStore_Schema(t *testing.T) {
    10  	// First call the schema creation
    11  	schema := stateStoreSchema()
    12  
    13  	// Try to initialize a new memdb using the schema
    14  	if _, err := memdb.NewMemDB(schema); err != nil {
    15  		t.Fatalf("err: %s", err)
    16  	}
    17  }