MCPcopy Index your code

hub / github.com/andreyvit/diff / functions

Functions26 in github.com/andreyvit/diff

↓ 11 callersFunctiono
(t *testing.T, a, b, expected string)
diff_test.go:67
↓ 4 callersMethodAddNewline
(op diffmatchpatch.Operation)
diff.go:71
↓ 2 callersFunctionCharacterDiff
CharacterDiff returns an inline diff between the two strings, using (++added++) and (~~deleted~~) markup.
diff.go:21
↓ 2 callersMethodFlushChunk
()
diff.go:91
↓ 2 callersFunctiondiff
(a, b string)
diff.go:10
↓ 1 callersMethodAddCharacters
(text string, op diffmatchpatch.Operation)
diff.go:63
↓ 1 callersMethodFlush
()
diff.go:101
↓ 1 callersFunctionLineDiff
LineDiff returns a normal linewise diff between the two given strings.
diff.go:46
↓ 1 callersFunctionLineDiffAsLines
LineDiffAsLines returns the lines of a linewise diff between the two given strings.
diff.go:51
↓ 1 callersFunctionTrimLines
TrimLines applies TrimSpace to each string in the given array.
trim.go:8
↓ 1 callersFunctiondiffsToPatchLines
(diffs []diffmatchpatch.Diff)
diff.go:112
↓ 1 callersFunctiondiffsToString
(diffs []diffmatchpatch.Diff)
diff.go:25
FunctionTest_CharacterDiff_NoChanges
(t *testing.T)
diff_test.go:7
FunctionTest_CharacterDiff_SomeChanges
(t *testing.T)
diff_test.go:15
FunctionTest_LineDiff_AddedLine
(t *testing.T)
diff_test.go:31
FunctionTest_LineDiff_AddedMultipleLines
(t *testing.T)
diff_test.go:35
FunctionTest_LineDiff_DeletedLine
(t *testing.T)
diff_test.go:39
FunctionTest_LineDiff_DeletedMultipleLines
(t *testing.T)
diff_test.go:43
FunctionTest_LineDiff_EverythingChanged
(t *testing.T)
diff_test.go:27
FunctionTest_LineDiff_NoChanges
(t *testing.T)
diff_test.go:23
FunctionTest_LineDiff_ReplacedLine
(t *testing.T)
diff_test.go:47
FunctionTest_LineDiff_ReplacedMultipleLines
(t *testing.T)
diff_test.go:51
FunctionTest_LineDiff_ReplacedPartOfLine
(t *testing.T)
diff_test.go:55
FunctionTest_LineDiff_ReplacedPartsOfMultipleConsecutiveLines
(t *testing.T)
diff_test.go:59
FunctionTest_LineDiff_ReplacedTrailingPartOfLastLine
(t *testing.T)
diff_test.go:63
FunctionTrimLinesInString
TrimLinesInString applies TrimSpace to each line in the given string, and returns the new trimmed string. Empty lines are not removed.
trim.go:17