(t *testing.T)
| 494 | } |
| 495 | |
| 496 | func TestGetCommitRangeLabel_InvalidFromCommit(t *testing.T) { |
| 497 | tmpDir := t.TempDir() |
| 498 | setupGitRepo(t, tmpDir) |
| 499 | |
| 500 | createFile(t, tmpDir, "test.txt", "content") |
| 501 | gitAdd(t, tmpDir, "test.txt") |
| 502 | commit := gitCommitAndGetSHA(t, tmpDir, "Commit") |
| 503 | |
| 504 | _, err := GetCommitRangeLabel(tmpDir, "invalid-sha", commit) |
| 505 | |
| 506 | assert.Error(t, err) |
| 507 | } |
| 508 | |
| 509 | func TestGetCommitRangeLabel_InvalidToCommit(t *testing.T) { |
| 510 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected