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

Function TestGetRepositoryRoot_NotGitRepo

vcs/git/git_test.go:93–100  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

91}
92
93func TestGetRepositoryRoot_NotGitRepo(t *testing.T) {
94 tmpDir := t.TempDir()
95 // Don't initialize git
96
97 _, err := GetRepositoryRoot(tmpDir)
98
99 assert.Error(t, err)
100}
101
102// Tests for GetCurrentCommitHash
103

Callers

nothing calls this directly

Calls 1

GetRepositoryRootFunction · 0.85

Tested by

no test coverage detected