MCPcopy Index your code
hub / github.com/bracesdev/errtrace / Lines

Function Lines

internal/diff/diff.go:12–14  ·  view source on GitHub ↗

Lines returns a diff of two strings, line-by-line.

(want, got string)

Source from the content-addressed store, hash-verified

10
11// Lines returns a diff of two strings, line-by-line.
12func Lines(want, got string) string {
13 return Diff(strings.Split(want, "\n"), strings.Split(got, "\n"))
14}
15
16// Diff is a silly diff implementation
17// that compares the provided slices and returns a diff of them.

Callers 4

TestWriteTreeFunction · 0.92
testGoldenContentsFunction · 0.92
TestFormatAutoFunction · 0.92
TestListFlagFunction · 0.92

Calls 1

DiffFunction · 0.85

Tested by 4

TestWriteTreeFunction · 0.74
testGoldenContentsFunction · 0.74
TestFormatAutoFunction · 0.74
TestListFlagFunction · 0.74