(t *testing.T)
| 689 | } |
| 690 | |
| 691 | func TestGetCommitRangeFiles_NotGitRepo(t *testing.T) { |
| 692 | tmpDir := t.TempDir() |
| 693 | |
| 694 | _, err := GetCommitRangeFiles(tmpDir, "abc", "def") |
| 695 | |
| 696 | assert.Error(t, err) |
| 697 | assert.Contains(t, err.Error(), "not a git repository") |
| 698 | } |
| 699 | |
| 700 | func TestGetCommitRangeFiles_InvalidPath(t *testing.T) { |
| 701 | _, err := GetCommitRangeFiles("/nonexistent/path", "abc", "def") |
nothing calls this directly
no test coverage detected