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

Function TestListWorktrees_NonRepo

vcs/git/git_worktree_test.go:159–163  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

157}
158
159func TestListWorktrees_NonRepo(t *testing.T) {
160 notARepo := t.TempDir()
161 _, err := ListWorktrees(notARepo)
162 require.Error(t, err)
163}
164
165// seedInitialCommit ensures the repo has at least one commit so worktree-add can succeed.
166func seedInitialCommit(t *testing.T, repoDir string) {

Callers

nothing calls this directly

Calls 1

ListWorktreesFunction · 0.85

Tested by

no test coverage detected