MCPcopy
hub / github.com/prometheus/client_golang / TestSFBugsRatioForNullSeqn

Function TestSFBugsRatioForNullSeqn

prometheus/internal/difflib_test.go:198–203  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

196}
197
198func TestSFBugsRatioForNullSeqn(t *testing.T) {
199 sm := NewMatcher(nil, nil)
200 assertEqual(t, sm.Ratio(), 1.0)
201 assertEqual(t, sm.QuickRatio(), 1.0)
202 assertEqual(t, sm.RealQuickRatio(), 1.0)
203}
204
205func TestSFBugsComparingEmptyLists(t *testing.T) {
206 groups := NewMatcher(nil, nil).GetGroupedOpCodes(-1)

Callers

nothing calls this directly

Calls 5

NewMatcherFunction · 0.85
assertEqualFunction · 0.85
RatioMethod · 0.80
QuickRatioMethod · 0.80
RealQuickRatioMethod · 0.80

Tested by

no test coverage detected