(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestGetUncommittedDartFiles_EmptyRepo(t *testing.T) { |
| 202 | tmpDir := t.TempDir() |
| 203 | setupGitRepo(t, tmpDir) |
| 204 | |
| 205 | // Get uncommitted files from empty repo |
| 206 | files, err := GetUncommittedFiles(tmpDir) |
| 207 | |
| 208 | require.NoError(t, err) |
| 209 | g := testhelpers.TextGoldie(t) |
| 210 | g.Assert(t, t.Name(), []byte(normalizeFilePaths(tmpDir, files))) |
| 211 | } |
| 212 | |
| 213 | func TestGetUncommittedDartFiles_NotGitRepo(t *testing.T) { |
| 214 | tmpDir := t.TempDir() |
nothing calls this directly
no test coverage detected