MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / ComputeEditDiffStat

Function ComputeEditDiffStat

tools/builtin.go:1477–1484  ·  view source on GitHub ↗
(oldContent, newContent string)

Source from the content-addressed store, hash-verified

1475 if searchString == "" {
1476 return strings.Count(fileContent, searchString)
1477 }
1478 actual := findActualString(fileContent, searchString)
1479 if actual == "" {
1480 return 0
1481 }
1482 return strings.Count(normalizeQuotes(fileContent), normalizeQuotes(searchString))
1483}
1484
1485func matchFailureSnippet(fileContent, oldString string) string {
1486 oldFirst := strings.TrimSpace(strings.Split(oldString, "\n")[0])
1487 if oldFirst == "" {

Callers

nothing calls this directly

Calls 1

editLineCountFunction · 0.85

Tested by

no test coverage detected