(oldContent, newContent string)
| 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 | |
| 1485 | func matchFailureSnippet(fileContent, oldString string) string { |
| 1486 | oldFirst := strings.TrimSpace(strings.Split(oldString, "\n")[0]) |
| 1487 | if oldFirst == "" { |
nothing calls this directly
no test coverage detected