(t *testing.T)
| 440 | } |
| 441 | |
| 442 | func TestGetCommitDartFiles_NotGitRepo(t *testing.T) { |
| 443 | tmpDir := t.TempDir() |
| 444 | // Don't initialize git |
| 445 | |
| 446 | _, err := GetCommitDartFiles(tmpDir, "HEAD") |
| 447 | |
| 448 | assert.Error(t, err) |
| 449 | assert.Contains(t, err.Error(), "not a git repository") |
| 450 | } |
| 451 | |
| 452 | func TestGetCommitDartFiles_InvalidPath(t *testing.T) { |
| 453 | _, err := GetCommitDartFiles("/nonexistent/path", "HEAD") |
nothing calls this directly
no test coverage detected