Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sergi/go-diff
/ functions
Functions
144 in github.com/sergi/go-diff
⨍
Functions
144
◇
Types & classes
10
Function
TestDiffCleanupSemanticScore
(t *testing.T)
diffmatchpatch/diff_test.go:478
Function
TestDiffCommonOverlap
(t *testing.T)
diffmatchpatch/diff_test.go:200
Function
TestDiffCommonPrefix
(t *testing.T)
diffmatchpatch/diff_test.go:63
Function
TestDiffCommonSuffix
(t *testing.T)
diffmatchpatch/diff_test.go:113
Function
TestDiffDelta
(t *testing.T)
diffmatchpatch/diff_test.go:1111
Function
TestDiffHalfMatch
(t *testing.T)
diffmatchpatch/diff_test.go:225
Function
TestDiffLevenshtein
(t *testing.T)
diffmatchpatch/diff_test.go:1221
Function
TestDiffLinesToChars
(t *testing.T)
diffmatchpatch/diff_test.go:304
Function
TestDiffMain
(t *testing.T)
diffmatchpatch/diff_test.go:1302
Function
TestDiffMainWithCheckLines
(t *testing.T)
diffmatchpatch/diff_test.go:1462
Function
TestDiffMainWithTimeout
(t *testing.T)
diffmatchpatch/diff_test.go:1437
Function
TestDiffPartialLineIndex
(t *testing.T)
diffmatchpatch/diff_test.go:1510
Function
TestDiffPrettyHtml
(t *testing.T)
diffmatchpatch/diff_test.go:1016
Function
TestDiffPrettyText
(t *testing.T)
diffmatchpatch/diff_test.go:1041
Function
TestDiffText
(t *testing.T)
diffmatchpatch/diff_test.go:1077
Function
TestDiffText1PrefixRuneAligned
The end context of a split patch must not end inside a multi-byte rune.
diffmatchpatch/patch_rune_safety_test.go:115
Function
TestDiffXIndex
(t *testing.T)
diffmatchpatch/diff_test.go:1200
Function
TestIndexConversion
(t *testing.T)
diffmatchpatch/index_test.go:8
Function
TestIndexOf
(t *testing.T)
diffmatchpatch/stringutil_test.go:44
Function
TestIntToRuneLimit
(t *testing.T)
diffmatchpatch/stringutil_test.go:136
Function
TestLastIndexOf
(t *testing.T)
diffmatchpatch/stringutil_test.go:79
Function
TestMassiveRuneDiffConversion
(t *testing.T)
diffmatchpatch/diff_test.go:1497
Function
TestMatchAlphabet
(t *testing.T)
diffmatchpatch/match_test.go:18
Function
TestMatchBitap
(t *testing.T)
diffmatchpatch/match_test.go:52
Function
TestMatchMain
(t *testing.T)
diffmatchpatch/match_test.go:141
Function
TestPatchAddContext
(t *testing.T)
diffmatchpatch/patch_test.go:127
Function
TestPatchAddPadding
(t *testing.T)
diffmatchpatch/patch_test.go:241
Function
TestPatchApply
(t *testing.T)
diffmatchpatch/patch_test.go:271
Function
TestPatchApplyChangedTextNoPanic
When a patch is applied to a text that has changed, earlier edits can leave the text shorter than the indices computed for later ones. PatchApply must
diffmatchpatch/patch_rune_safety_test.go:101
Function
TestPatchApplyMultibyteMonsterDelete
A replaced text over 32 bytes takes the long-delete path even when it is only 20 characters. text2 must keep its last rune there, or the trailing 日 is
diffmatchpatch/patch_rune_safety_test.go:68
Function
TestPatchApplyStripPaddingKeepsValidUTF8
An insertion that lands in the padding must not leave part of a rune behind when the padding is stripped.
diffmatchpatch/patch_rune_safety_test.go:91
Function
TestPatchApply_Issue132_NoPanic
Issue #132 minimal repro: applying a patch containing a multi-byte character with a short anchor used to panic with "slice bounds out of range". After
diffmatchpatch/patch_rune_safety_test.go:127
Function
TestPatchFromText
(t *testing.T)
diffmatchpatch/patch_test.go:53
Function
TestPatchMakeAndPatchToText
(t *testing.T)
diffmatchpatch/patch_test.go:154
Function
TestPatchMakeApplyContextEndsInsideRune
The end context added by PatchMake must keep a whole rune when the margin ends inside one. A shortened context made PatchApply pad the patch as if it
diffmatchpatch/patch_rune_safety_test.go:80
Function
TestPatchMakeInvalidUTF8
(t *testing.T)
diffmatchpatch/patch_test.go:372
Function
TestPatchMakeOutOfRangePanic
(t *testing.T)
diffmatchpatch/patch_test.go:347
Function
TestPatchSplitMax
(t *testing.T)
diffmatchpatch/patch_test.go:217
Function
TestPatchSplitMax_NoInvalidUTF8
PatchSplitMax on a CJK-heavy base must produce diff.Text slices that are all valid UTF-8 (prior to this fix, byte-level slicing of multi-byte characte
diffmatchpatch/patch_rune_safety_test.go:147
Function
TestPatchString
(t *testing.T)
diffmatchpatch/patch_test.go:19
Function
TestPatchToText
(t *testing.T)
diffmatchpatch/patch_test.go:108
Function
TestRuneToInt
Exhaustive check for all ints from 0 to 1112060 for correctness of implementation of `intToRune() -> runeToInt()`. This test is slow and runs longer t
diffmatchpatch/stringutil_test.go:122
Function
TestRunesIndexOf
(t *testing.T)
diffmatchpatch/stringutil_test.go:18
Function
pretty
(diffs []Diff)
diffmatchpatch/diff_test.go:25
← previous
101–144 of 144, ranked by callers