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

Function TestGetCommitRangeFiles_NotGitRepo

vcs/git/git_diff_test.go:691–698  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

689}
690
691func TestGetCommitRangeFiles_NotGitRepo(t *testing.T) {
692 tmpDir := t.TempDir()
693
694 _, err := GetCommitRangeFiles(tmpDir, "abc", "def")
695
696 assert.Error(t, err)
697 assert.Contains(t, err.Error(), "not a git repository")
698}
699
700func TestGetCommitRangeFiles_InvalidPath(t *testing.T) {
701 _, err := GetCommitRangeFiles("/nonexistent/path", "abc", "def")

Callers

nothing calls this directly

Calls 1

GetCommitRangeFilesFunction · 0.85

Tested by

no test coverage detected