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

Function TestGetCurrentCommitHash_NoCommits

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

Source from the content-addressed store, hash-verified

133}
134
135func TestGetCurrentCommitHash_NoCommits(t *testing.T) {
136 tmpDir := t.TempDir()
137 setupGitRepo(t, tmpDir)
138
139 // No commits made
140 _, err := GetCurrentCommitHash(tmpDir)
141
142 assert.Error(t, err)
143}
144
145// Tests for GetShortCommitHash
146

Callers

nothing calls this directly

Calls 2

setupGitRepoFunction · 0.85
GetCurrentCommitHashFunction · 0.85

Tested by

no test coverage detected