(t *testing.T)
| 332 | } |
| 333 | |
| 334 | func TestClientConfigReportsUnknownKey(t *testing.T) { |
| 335 | // Given a repository without a credential helper |
| 336 | repo := newTestRepo(t) |
| 337 | |
| 338 | // When the missing configuration is read |
| 339 | value, err := repo.client.Config(t.Context(), "credential.helper") |
| 340 | |
| 341 | // Then the missing key is identified |
| 342 | require.Error(t, err) |
| 343 | assert.EqualError(t, err, "failed to run git: unknown config key credential.helper") |
| 344 | assert.Empty(t, value) |
| 345 | } |
| 346 | |
| 347 | func TestClientConfigPropagatesGitError(t *testing.T) { |
| 348 | // Given a client whose repository directory does not exist |
nothing calls this directly
no test coverage detected