MCPcopy Create free account
hub / github.com/cogentcore/core / TestSFBugsComparingEmptyLists

Function TestSFBugsComparingEmptyLists

texteditor/difflib/difflib_test.go:275–286  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

273}
274
275func TestSFBugsComparingEmptyLists(t *testing.T) {
276 groups := NewMatcher(nil, nil).GetGroupedOpCodes(-1)
277 assertEqual(t, len(groups), 0)
278 diff := LineDiffParams{
279 FromFile: "Original",
280 ToFile: "Current",
281 Context: 3,
282 }
283 result, err := GetUnifiedDiffString(diff)
284 assertEqual(t, err, nil)
285 assertEqual(t, result, "")
286}
287
288func TestOutputFormatRangeFormatUnified(t *testing.T) {
289 // Per the diff spec at http://www.unix.org/single_unix_specification/

Callers

nothing calls this directly

Calls 4

NewMatcherFunction · 0.70
assertEqualFunction · 0.70
GetUnifiedDiffStringFunction · 0.70
GetGroupedOpCodesMethod · 0.45

Tested by

no test coverage detected