github.com/i0n/terraform@v0.4.3-0.20150506151324-010a39a58ec1/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  }