MCPcopy Create free account
hub / github.com/cortexproject/cortex / TestIsLimitError

Function TestIsLimitError

pkg/util/validation/limits_test.go:995–998  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

993}
994
995func TestIsLimitError(t *testing.T) {
996 assert.False(t, IsLimitError(fmt.Errorf("test error")))
997 assert.True(t, IsLimitError(LimitError("test error")))
998}

Callers

nothing calls this directly

Calls 2

IsLimitErrorFunction · 0.85
LimitErrorTypeAlias · 0.85

Tested by

no test coverage detected