IsNonDecreasingf asserts that the collection is not decreasing assert.IsNonDecreasingf(t, []int{1, 1, 2}, "error message %s", "formatted") assert.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted") assert.IsNonDecreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1059 | // assert.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted") |
| 1060 | // assert.IsNonDecreasingf(t, []string{"a", "b"}, "error message %s", "formatted") |
| 1061 | func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1062 | if h, ok := t.(tHelper); ok { |
| 1063 | h.Helper() |
| 1064 | } |
| 1065 | if assert.IsNonDecreasingf(t, object, msg, args...) { |
| 1066 | return |
| 1067 | } |
| 1068 | t.FailNow() |
| 1069 | } |
| 1070 | |
| 1071 | // IsNonIncreasing asserts that the collection is not increasing |
| 1072 | // |
no test coverage detected
searching dependent graphs…