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

Function TestGetGitDir_PrimaryEqualsCommon

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

Source from the content-addressed store, hash-verified

41}
42
43func TestGetGitDir_PrimaryEqualsCommon(t *testing.T) {
44 repo := t.TempDir()
45 setupGitRepo(t, repo)
46 seedInitialCommit(t, repo)
47
48 gitDir, err := GetGitDir(repo)
49 require.NoError(t, err)
50 common, err := GetCommonDir(repo)
51 require.NoError(t, err)
52
53 assert.Equal(t, resolveSymlinks(common), resolveSymlinks(gitDir))
54}
55
56func TestGetGitDir_LinkedDiffersFromCommon(t *testing.T) {
57 repo := t.TempDir()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected