MCPcopy
hub / github.com/databus23/helm-diff / diffStrings

Function diffStrings

diff/diff.go:469–471  ·  view source on GitHub ↗
(before, after string, stripTrailingCR bool)

Source from the content-addressed store, hash-verified

467}
468
469func diffStrings(before, after string, stripTrailingCR bool) []difflib.DiffRecord {
470 return diffLines(split(before, stripTrailingCR), split(after, stripTrailingCR))
471}
472
473func split(value string, stripTrailingCR bool) []string {
474 const sep = "\n"

Callers 4

generateReportFunction · 0.85
diffMappingResultsFunction · 0.85
assertDiffFunction · 0.85
TestDoSuppressFunction · 0.85

Calls 2

diffLinesFunction · 0.85
splitFunction · 0.85

Tested by 2

assertDiffFunction · 0.68
TestDoSuppressFunction · 0.68