Get return the content of getres or nil, nil
(ctx context.Context, key string, opts *etcd.GetOptions)
| 83 | |
| 84 | // Get return the content of getres or nil, nil |
| 85 | func (fka *fakeKeysAPI) Get(ctx context.Context, key string, opts *etcd.GetOptions) (*etcd.Response, error) { |
| 86 | if fka.getres == nil { |
| 87 | return nil, nil |
| 88 | } |
| 89 | return fka.getres.resp, fka.getres.err |
| 90 | } |
| 91 | |
| 92 | // Set is not used in the tests |
| 93 | func (fka *fakeKeysAPI) Set(ctx context.Context, key, value string, opts *etcd.SetOptions) (*etcd.Response, error) { |
no outgoing calls
no test coverage detected