(t *testing.T)
| 198 | } |
| 199 | |
| 200 | func TestGetAllCredentialsFileStoreOnly(t *testing.T) { |
| 201 | configFile := New("filename") |
| 202 | exampleAuth := types.AuthConfig{ |
| 203 | Username: "user", |
| 204 | Password: "pass", |
| 205 | } |
| 206 | configFile.AuthConfigs["example.com/foo"] = exampleAuth |
| 207 | |
| 208 | authConfigs, err := configFile.GetAllCredentials() |
| 209 | assert.NilError(t, err) |
| 210 | |
| 211 | expected := make(map[string]types.AuthConfig) |
| 212 | expected["example.com/foo"] = exampleAuth |
| 213 | assert.Check(t, is.DeepEqual(expected, authConfigs)) |
| 214 | } |
| 215 | |
| 216 | func TestGetAllCredentialsCredsStore(t *testing.T) { |
| 217 | configFile := New("filename") |
nothing calls this directly
no test coverage detected
searching dependent graphs…