(t *testing.T)
| 507 | } |
| 508 | |
| 509 | func TestGetCommitRangeLabel_InvalidToCommit(t *testing.T) { |
| 510 | tmpDir := t.TempDir() |
| 511 | setupGitRepo(t, tmpDir) |
| 512 | |
| 513 | createFile(t, tmpDir, "test.txt", "content") |
| 514 | gitAdd(t, tmpDir, "test.txt") |
| 515 | commit := gitCommitAndGetSHA(t, tmpDir, "Commit") |
| 516 | |
| 517 | _, err := GetCommitRangeLabel(tmpDir, commit, "invalid-sha") |
| 518 | |
| 519 | assert.Error(t, err) |
| 520 | } |
nothing calls this directly
no test coverage detected