(t *testing.T)
| 413 | } |
| 414 | |
| 415 | func TestClientCommitsReportsNoCommitsBetweenRefs(t *testing.T) { |
| 416 | // Given two refs that identify the same commit |
| 417 | repo := newTestRepo(t) |
| 418 | repo.run(t, "commit", "--quiet", "--allow-empty", "-m", "initial commit") |
| 419 | |
| 420 | // When commits between the refs are requested |
| 421 | commits, err := repo.client.Commits(t.Context(), "trunk", "trunk") |
| 422 | |
| 423 | // Then the empty comparison is reported |
| 424 | require.EqualError(t, err, "could not find any commits between trunk and trunk") |
| 425 | assert.Nil(t, commits) |
| 426 | } |
| 427 | |
| 428 | func TestClientCommitsExcludesBaseSideCommits(t *testing.T) { |
| 429 | // Given divergent branches with patch-equivalent commits and one unique feature commit |
nothing calls this directly
no test coverage detected