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

Function IsNonDecreasingf

require/require.go:1074–1082  ·  view source on GitHub ↗

IsNonDecreasingf asserts that the collection is not decreasing require.IsNonDecreasingf(t, []int{1, 1, 2}, "error message %s", "formatted") require.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted") require.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

1072// require.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted")
1073// require.IsNonDecreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
1074func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1075 if h, ok := t.(tHelper); ok {
1076 h.Helper()
1077 }
1078 if assert.IsNonDecreasingf(t, object, msg, args...) {
1079 return
1080 }
1081 t.FailNow()
1082}
1083
1084// IsNonIncreasing asserts that the collection is not increasing
1085//

Callers 1

IsNonDecreasingfMethod · 0.70

Calls 3

IsNonDecreasingfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected