MCPcopy Create free account
hub / github.com/expr-lang/expr / IsNonDecreasing

Method IsNonDecreasing

internal/testify/require/require_forward.go:830–835  ·  view source on GitHub ↗

IsNonDecreasing asserts that the collection is not decreasing a.IsNonDecreasing([]int{1, 1, 2}) a.IsNonDecreasing([]float{1, 2}) a.IsNonDecreasing([]string{"a", "b"})

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

Source from the content-addressed store, hash-verified

828// a.IsNonDecreasing([]float{1, 2})
829// a.IsNonDecreasing([]string{"a", "b"})
830func (a *Assertions) IsNonDecreasing(object interface{}, msgAndArgs ...interface{}) {
831 if h, ok := a.t.(tHelper); ok {
832 h.Helper()
833 }
834 IsNonDecreasing(a.t, object, msgAndArgs...)
835}
836
837// IsNonDecreasingf asserts that the collection is not decreasing
838//

Callers

nothing calls this directly

Calls 2

IsNonDecreasingFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected