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

Function TestGetCommonDir_Primary

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

Source from the content-addressed store, hash-verified

11)
12
13func TestGetCommonDir_Primary(t *testing.T) {
14 repo := t.TempDir()
15 setupGitRepo(t, repo)
16 seedInitialCommit(t, repo)
17
18 common, err := GetCommonDir(repo)
19 require.NoError(t, err)
20
21 want := resolveSymlinks(filepath.Join(repo, ".git"))
22 assert.Equal(t, want, resolveSymlinks(common))
23}
24
25func TestGetCommonDir_LinkedWorktree(t *testing.T) {
26 repo := t.TempDir()

Callers

nothing calls this directly

Calls 4

setupGitRepoFunction · 0.85
seedInitialCommitFunction · 0.85
GetCommonDirFunction · 0.85
resolveSymlinksFunction · 0.70

Tested by

no test coverage detected