(t *testing.T)
| 218 | } |
| 219 | |
| 220 | func TestNativeStoreErase(t *testing.T) { |
| 221 | f := &fakeStore{configs: map[string]types.AuthConfig{ |
| 222 | validServerAddress: {}, |
| 223 | }} |
| 224 | |
| 225 | s := &nativeStore{ |
| 226 | programFunc: mockCommandFn, |
| 227 | fileStore: NewFileStore(f), |
| 228 | } |
| 229 | err := s.Erase(validServerAddress) |
| 230 | assert.NilError(t, err) |
| 231 | assert.Check(t, is.Len(f.GetAuthConfigs(), 0)) |
| 232 | } |
| 233 | |
| 234 | func TestNativeStoreEraseInvalidAddress(t *testing.T) { |
| 235 | f := &fakeStore{configs: map[string]types.AuthConfig{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…