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

Function IsNonDecreasingf

internal/testify/require/require.go:1061–1069  ·  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

1059// assert.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted")
1060// assert.IsNonDecreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
1061func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1062 if h, ok := t.(tHelper); ok {
1063 h.Helper()
1064 }
1065 if assert.IsNonDecreasingf(t, object, msg, args...) {
1066 return
1067 }
1068 t.FailNow()
1069}
1070
1071// IsNonIncreasing asserts that the collection is not increasing
1072//

Callers 1

IsNonDecreasingfMethod · 0.70

Calls 3

IsNonDecreasingfFunction · 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…