type mockKV … func (mkv mockKV) Put(ctx context.Context, key, val string, opts ...clientv3.OpOption) (*clientv3.PutResponse, error) { … } func (mkv mockKV) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error) { … } func (mockKV) Delete(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.DeleteResponse, error) { … } func (mockKV) Compact(ctx context.Context, rev int64, opts ...clientv3.CompactOption) (*clientv3.CompactResponse, error) { … } func (mockKV) Do(ctx context.Context, op clientv3.Op) (clientv3.OpResponse, error) { … } func (mockKV) Txn(ctx context.Context) clientv3.Txn { … } func TestCreateHealthcheck(t *testing.T) { … } func TestCreateReadycheck(t *testing.T) { … } func TestRateLimitHealthcheck(t *testing.T) { … } func TestTimeTravelHealthcheck(t *testing.T) { … }