(t *testing.T)
| 522 | } |
| 523 | |
| 524 | func TestClientReadBranchConfigReturnsEmptyConfigWhenUnset(t *testing.T) { |
| 525 | // Given a repository without branch configuration |
| 526 | repo := newTestRepo(t) |
| 527 | |
| 528 | // When the branch configuration is read |
| 529 | branchConfig, err := repo.client.ReadBranchConfig(t.Context(), "trunk") |
| 530 | |
| 531 | // Then an empty configuration is returned without error |
| 532 | require.NoError(t, err) |
| 533 | assert.Equal(t, BranchConfig{}, branchConfig) |
| 534 | } |
| 535 | |
| 536 | func TestClientReadBranchConfigReturnsConfiguredValues(t *testing.T) { |
| 537 | // Given all supported branch configuration values set through the client |
nothing calls this directly
no test coverage detected