MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / TestGetUncommittedDartFiles_EmptyRepo

Function TestGetUncommittedDartFiles_EmptyRepo

vcs/git/git_diff_test.go:201–211  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

199}
200
201func 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
213func TestGetUncommittedDartFiles_NotGitRepo(t *testing.T) {
214 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 5

TextGoldieFunction · 0.92
setupGitRepoFunction · 0.85
GetUncommittedFilesFunction · 0.85
normalizeFilePathsFunction · 0.85
NameMethod · 0.65

Tested by

no test coverage detected