(t *testing.T)
| 978 | } |
| 979 | |
| 980 | func TestClientHasLocalBranchFindsExistingBranch(t *testing.T) { |
| 981 | // Given a repository with a trunk commit |
| 982 | repo := newTestRepo(t) |
| 983 | repo.run(t, "commit", "--quiet", "--allow-empty", "-m", "initial commit") |
| 984 | |
| 985 | // When the local branch is checked |
| 986 | exists := repo.client.HasLocalBranch(t.Context(), "trunk") |
| 987 | |
| 988 | // Then the branch is found |
| 989 | assert.True(t, exists, "trunk should resolve as a local branch") |
| 990 | } |
| 991 | |
| 992 | func TestClientHasLocalBranchRejectsMissingBranch(t *testing.T) { |
| 993 | // Given a repository without a feature branch |
nothing calls this directly
no test coverage detected