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

Function TestGetUncommittedDartFiles_NotGitRepo

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

Source from the content-addressed store, hash-verified

211}
212
213func 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
224func TestGetUncommittedDartFiles_InvalidPath(t *testing.T) {
225 _, err := GetUncommittedFiles("/nonexistent/path")

Callers

nothing calls this directly

Calls 1

GetUncommittedFilesFunction · 0.85

Tested by

no test coverage detected