MCPcopy Index your code
hub / github.com/expr-lang/expr / IsNonDecreasing

Function IsNonDecreasing

internal/testify/require/require.go:1046–1054  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1044// assert.IsNonDecreasing(t, []float{1, 2})
1045// assert.IsNonDecreasing(t, []string{"a", "b"})
1046func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1047 if h, ok := t.(tHelper); ok {
1048 h.Helper()
1049 }
1050 if assert.IsNonDecreasing(t, object, msgAndArgs...) {
1051 return
1052 }
1053 t.FailNow()
1054}
1055
1056// IsNonDecreasingf asserts that the collection is not decreasing
1057//

Callers 1

IsNonDecreasingMethod · 0.70

Calls 3

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