(t *testing.T)
| 211 | } |
| 212 | |
| 213 | func TestGetUncommittedDartFiles_NotGitRepo(t *testing.T) { |
| 214 | tmpDir := t.TempDir() |
| 215 | // Don't initialize git |
| 216 | |
| 217 | // Try to get uncommitted files |
| 218 | _, err := GetUncommittedFiles(tmpDir) |
| 219 | |
| 220 | assert.Error(t, err) |
| 221 | assert.Contains(t, err.Error(), "not a git repository") |
| 222 | } |
| 223 | |
| 224 | func TestGetUncommittedDartFiles_InvalidPath(t *testing.T) { |
| 225 | _, err := GetUncommittedFiles("/nonexistent/path") |
nothing calls this directly
no test coverage detected