MCPcopy
hub / github.com/stretchr/testify / IsNonDecreasing

Function IsNonDecreasing

require/require.go:1059–1067  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1057// require.IsNonDecreasing(t, []float{1, 2})
1058// require.IsNonDecreasing(t, []string{"a", "b"})
1059func IsNonDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1060 if h, ok := t.(tHelper); ok {
1061 h.Helper()
1062 }
1063 if assert.IsNonDecreasing(t, object, msgAndArgs...) {
1064 return
1065 }
1066 t.FailNow()
1067}
1068
1069// IsNonDecreasingf asserts that the collection is not decreasing
1070//

Callers 1

IsNonDecreasingMethod · 0.70

Calls 3

IsNonDecreasingFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected