(t *testing.T)
| 509 | } |
| 510 | |
| 511 | func TestClientCommitBody(t *testing.T) { |
| 512 | // Given a repository fixture with a commit body |
| 513 | IsolateConfig(t) |
| 514 | client := Client{RepoDir: "./fixtures/simple.git"} |
| 515 | |
| 516 | // When the body is requested |
| 517 | body, err := client.CommitBody(t.Context(), "6f1a2405cace1633d89a79c74c65f22fe78f9659") |
| 518 | |
| 519 | // Then the complete body is returned |
| 520 | require.NoError(t, err) |
| 521 | assert.Equal(t, "I'm starting to get the hang of things\n", body) |
| 522 | } |
| 523 | |
| 524 | func TestClientReadBranchConfigReturnsEmptyConfigWhenUnset(t *testing.T) { |
| 525 | // Given a repository without branch configuration |
nothing calls this directly
no test coverage detected