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

Function TestSFBugsRatioForNullSeqn

texteditor/difflib/bytes/bytes_test.go:306–311  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

304}
305
306func TestSFBugsRatioForNullSeqn(t *testing.T) {
307 sm := NewMatcher(nil, nil)
308 assertEqual(t, sm.Ratio(), 1.0)
309 assertEqual(t, sm.QuickRatio(), 1.0)
310 assertEqual(t, sm.RealQuickRatio(), 1.0)
311}
312
313func TestSFBugsComparingEmptyLists(t *testing.T) {
314 groups := NewMatcher(nil, nil).GetGroupedOpCodes(-1)

Callers

nothing calls this directly

Calls 5

NewMatcherFunction · 0.70
assertEqualFunction · 0.70
RatioMethod · 0.45
QuickRatioMethod · 0.45
RealQuickRatioMethod · 0.45

Tested by

no test coverage detected