package inmem import ( "testing" "github.com/hashicorp/hcl2/hcl" "github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/state/remote" ) func TestRemoteClient_impl(t *testing.T) { var _ remote.Client = new(RemoteClient) var _ remote.ClientLocker = new(RemoteClient) } func TestRemoteClient(t *testing.T) { defer Reset() b := backend.TestBackendConfig(t, New(), hcl.EmptyBody()) s, err := b.State(backend.DefaultStateName) if err != nil { t.Fatal(err) } remote.TestClient(t, s.(*remote.State).Client) } func TestInmemLocks(t *testing.T) { defer Reset() s, err := backend.TestBackendConfig(t, New(), hcl.EmptyBody()).State(backend.DefaultStateName) if err != nil { t.Fatal(err) } remote.TestRemoteLocks(t, s.(*remote.State).Client, s.(*remote.State).Client) }