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

Function TestIsGitRepository_Valid

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

Source from the content-addressed store, hash-verified

11)
12
13func TestIsGitRepository_Valid(t *testing.T) {
14 tmpDir := t.TempDir()
15 setupGitRepo(t, tmpDir)
16
17 isRepo := isGitRepository(tmpDir)
18
19 assert.True(t, isRepo)
20}
21
22func TestIsGitRepository_Invalid(t *testing.T) {
23 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

setupGitRepoFunction · 0.85
isGitRepositoryFunction · 0.85

Tested by

no test coverage detected