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

Function IsNonIncreasing

internal/testify/require/require.go:1076–1084  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1074// assert.IsNonIncreasing(t, []float{2, 1})
1075// assert.IsNonIncreasing(t, []string{"b", "a"})
1076func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1077 if h, ok := t.(tHelper); ok {
1078 h.Helper()
1079 }
1080 if assert.IsNonIncreasing(t, object, msgAndArgs...) {
1081 return
1082 }
1083 t.FailNow()
1084}
1085
1086// IsNonIncreasingf asserts that the collection is not increasing
1087//

Callers 1

IsNonIncreasingMethod · 0.70

Calls 3

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