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

Method IsNonDecreasingf

internal/testify/assert/assertion_forward.go:840–845  ·  view source on GitHub ↗

IsNonDecreasingf asserts that the collection is not decreasing a.IsNonDecreasingf([]int{1, 1, 2}, "error message %s", "formatted") a.IsNonDecreasingf([]float{1, 2}, "error message %s", "formatted") a.IsNonDecreasingf([]string{"a", "b"}, "error message %s", "formatted")

(object interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

838// a.IsNonDecreasingf([]float{1, 2}, "error message %s", "formatted")
839// a.IsNonDecreasingf([]string{"a", "b"}, "error message %s", "formatted")
840func (a *Assertions) IsNonDecreasingf(object interface{}, msg string, args ...interface{}) bool {
841 if h, ok := a.t.(tHelper); ok {
842 h.Helper()
843 }
844 return IsNonDecreasingf(a.t, object, msg, args...)
845}
846
847// IsNonIncreasing asserts that the collection is not increasing
848//

Callers

nothing calls this directly

Calls 2

IsNonDecreasingfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected