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

Function TestAnalyzeImpactEmpty

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

Source from the content-addressed store, hash-verified

246}
247
248func TestAnalyzeImpactEmpty(t *testing.T) {
249 // Test with empty changed files
250 impacts := AnalyzeImpact(".", nil)
251 if impacts != nil {
252 t.Errorf("Expected nil impacts for empty input, got %v", impacts)
253 }
254
255 impacts = AnalyzeImpact(".", []FileInfo{})
256 if impacts != nil {
257 t.Errorf("Expected nil impacts for empty slice, got %v", impacts)
258 }
259}

Callers

nothing calls this directly

Calls 1

AnalyzeImpactFunction · 0.85

Tested by

no test coverage detected