MCPcopy Index your code
hub / github.com/expr-lang/expr / TestSFBugsComparingEmptyLists

Function TestSFBugsComparingEmptyLists

internal/difflib/difflib_test.go:265–276  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

263}
264
265func TestSFBugsComparingEmptyLists(t *testing.T) {
266 groups := NewMatcher(nil, nil).GetGroupedOpCodes(-1)
267 assertEqual(t, len(groups), 0)
268 diff := UnifiedDiff{
269 FromFile: "Original",
270 ToFile: "Current",
271 Context: 3,
272 }
273 result, err := GetUnifiedDiffString(diff)
274 assertEqual(t, err, nil)
275 assertEqual(t, result, "")
276}
277
278func TestOutputFormatRangeFormatUnified(t *testing.T) {
279 // Per the diff spec at http://www.unix.org/single_unix_specification/

Callers

nothing calls this directly

Calls 4

NewMatcherFunction · 0.85
assertEqualFunction · 0.85
GetUnifiedDiffStringFunction · 0.85
GetGroupedOpCodesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…