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

Function TestHasUncommittedChanges_EmptyRepo

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

Source from the content-addressed store, hash-verified

270}
271
272func TestHasUncommittedChanges_EmptyRepo(t *testing.T) {
273 tmpDir := t.TempDir()
274 setupGitRepo(t, tmpDir)
275
276 // Empty repo with no commits
277 hasChanges, err := HasUncommittedChanges(tmpDir)
278
279 require.NoError(t, err)
280 assert.False(t, hasChanges)
281}
282
283// Tests for ParseCommitRange
284

Callers

nothing calls this directly

Calls 2

setupGitRepoFunction · 0.85
HasUncommittedChangesFunction · 0.85

Tested by

no test coverage detected