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

Function TestGetCommitTreeFiles_NotGitRepo

vcs/git/git_tree_test.go:177–185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

175}
176
177func TestGetCommitTreeFiles_NotGitRepo(t *testing.T) {
178 tmpDir := t.TempDir()
179 // Don't initialize git
180
181 _, err := GetCommitTreeFiles(tmpDir, "HEAD")
182
183 assert.Error(t, err)
184 assert.Contains(t, err.Error(), "not a git repository")
185}
186
187func TestGetCommitTreeFiles_InvalidPath(t *testing.T) {
188 _, err := GetCommitTreeFiles("/nonexistent/path", "HEAD")

Callers

nothing calls this directly

Calls 1

GetCommitTreeFilesFunction · 0.85

Tested by

no test coverage detected