github.com/aznashwan/terraform@v0.4.3-0.20151118032030-21f93ca4558d/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 }