MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestGitDiffInfoInvalidRef

Function TestGitDiffInfoInvalidRef

scanner/git_test.go:222–231  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

220}
221
222func TestGitDiffInfoInvalidRef(t *testing.T) {
223 tmpDir := setupGitRepo(t)
224
225 // Try to diff against nonexistent ref
226 _, err := GitDiffInfo(tmpDir, "nonexistent-branch-xyz")
227 if err == nil {
228 // It's okay if this returns empty results instead of error
229 // but we're checking it doesn't panic
230 }
231}
232
233func TestImpactInfo(t *testing.T) {
234 // Test ImpactInfo struct

Callers

nothing calls this directly

Calls 2

setupGitRepoFunction · 0.85
GitDiffInfoFunction · 0.85

Tested by

no test coverage detected