type mockEndpointVersion … type MockEtcdClient … func (m MockEtcdClient) getEndpoints() []string { … } func (m MockEtcdClient) getVersion(endpoint string) (string, error) { … } func (m *MockEtcdClient) Endpoints() []string { … } // Status returns a mock status response. func (m *MockEtcdClient) Status(ctx context.Context, endpoint string) (*clientv3.StatusResponse, error) { … } func TestSupports(t *testing.T) { … } func TestSupportsRequestWatchProgress(t *testing.T) { … }