(t *testing.T)
| 319 | } |
| 320 | |
| 321 | func TestClientConfigReturnsConfiguredValue(t *testing.T) { |
| 322 | // Given a repository with a configured credential helper |
| 323 | repo := newTestRepo(t) |
| 324 | repo.run(t, "config", "credential.helper", "test") |
| 325 | |
| 326 | // When the configuration is read |
| 327 | value, err := repo.client.Config(t.Context(), "credential.helper") |
| 328 | |
| 329 | // Then the configured value is returned |
| 330 | require.NoError(t, err) |
| 331 | assert.Equal(t, "test", value) |
| 332 | } |
| 333 | |
| 334 | func TestClientConfigReportsUnknownKey(t *testing.T) { |
| 335 | // Given a repository without a credential helper |
nothing calls this directly
no test coverage detected