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

Function IsNonDecreasingf

internal/testify/assert/assertion_format.go:422–427  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

420// assert.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted")
421// assert.IsNonDecreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
422func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
423 if h, ok := t.(tHelper); ok {
424 h.Helper()
425 }
426 return IsNonDecreasing(t, object, append([]interface{}{msg}, args...)...)
427}
428
429// IsNonIncreasingf asserts that the collection is not increasing
430//

Callers 2

IsNonDecreasingfFunction · 0.92
IsNonDecreasingfMethod · 0.70

Calls 2

IsNonDecreasingFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…