You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: store_test.go
    path of file: ./repos/erda/pkg/kms/stores/etcd
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// 
    
func Test_checkEtcdStatus(t *testing.T) {
	etcdClient := &clientv3.Client{
		Maintenance: &mockMaintenance{},
	}
	monkey.PatchInstanceMethod(reflect.TypeOf(etcdClient), "Status", func(client *clientv3.Client, ctx context.Context, endpoint string) (*clientv3.StatusResponse, error) {
		return nil, nil
	})
	type args struct {
		etcdClient *clientv3.Client
		endpoints  string
	}
	tests := []struct {
		name    string
		args    args
		wantErr bool
	}{
		{
			name: "etcd ready",
			args: args{
				etcdClient: etcdClient,
				endpoints:  goodEndpoint,
			},
			wantErr: false,
		},
		{
			name: "etcd not ready",
			args: args{
				etcdClient: etcdClient,
				endpoints:  badEndpoint,
			},
			wantErr: true,
		},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if err := checkEtcdStatus(tt.args.etcdClient, tt.args.endpoints); (err != nil) != tt.wantErr {
				t.Errorf("checkEtcdStatus() error = %v, wantErr %v", err, tt.wantErr)
			}
		})
	}
}