github.com/ojiry/terraform@v0.8.2-0.20161218223921-e50cec712c4a/state/remote/state_test.go (about)

     1  package remote
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/hashicorp/terraform/state"
     7  )
     8  
     9  func TestState(t *testing.T) {
    10  	s := &State{
    11  		Client:    new(InmemClient),
    12  		state:     state.TestStateInitial(),
    13  		readState: state.TestStateInitial(),
    14  	}
    15  	if err := s.PersistState(); err != nil {
    16  		t.Fatalf("err: %s", err)
    17  	}
    18  
    19  	state.TestState(t, s)
    20  }
    21  
    22  func TestState_impl(t *testing.T) {
    23  	var _ state.StateReader = new(State)
    24  	var _ state.StateWriter = new(State)
    25  	var _ state.StatePersister = new(State)
    26  	var _ state.StateRefresher = new(State)
    27  }