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{})
| 1074 | // assert.IsNonIncreasing(t, []float{2, 1}) |
| 1075 | // assert.IsNonIncreasing(t, []string{"b", "a"}) |
| 1076 | func 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 | // |
no test coverage detected
searching dependent graphs…