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{})
| 1072 | // require.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted") |
| 1073 | // require.IsNonDecreasingf(t, []string{"a", "b"}, "error message %s", "formatted") |
| 1074 | func 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 | // |
no test coverage detected