MCPcopy
hub / github.com/expr-lang/expr / IsDecreasing

Function IsDecreasing

internal/testify/require/require.go:986–994  ·  view source on GitHub ↗

IsDecreasing asserts that the collection is decreasing assert.IsDecreasing(t, []int{2, 1, 0}) assert.IsDecreasing(t, []float{2, 1}) assert.IsDecreasing(t, []string{"b", "a"})

(t TestingT, object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

984// assert.IsDecreasing(t, []float{2, 1})
985// assert.IsDecreasing(t, []string{"b", "a"})
986func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
987 if h, ok := t.(tHelper); ok {
988 h.Helper()
989 }
990 if assert.IsDecreasing(t, object, msgAndArgs...) {
991 return
992 }
993 t.FailNow()
994}
995
996// IsDecreasingf asserts that the collection is decreasing
997//

Callers 1

IsDecreasingMethod · 0.70

Calls 3

IsDecreasingFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…