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

Function TestGetCommitDartFiles_NotGitRepo

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

Source from the content-addressed store, hash-verified

440}
441
442func 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
452func TestGetCommitDartFiles_InvalidPath(t *testing.T) {
453 _, err := GetCommitDartFiles("/nonexistent/path", "HEAD")

Callers

nothing calls this directly

Calls 1

GetCommitDartFilesFunction · 0.85

Tested by

no test coverage detected