IsDecreasing asserts that the collection is decreasing assert.IsDecreasing(t, []int{2, 1, 0}) assert.IsDecreasing(t, []float{2, 1}) assert.IsDecreasing(t, []string{"b", "a"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 984 | // assert.IsDecreasing(t, []float{2, 1}) |
| 985 | // assert.IsDecreasing(t, []string{"b", "a"}) |
| 986 | func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 987 | if h, ok := t.(tHelper); ok { |
| 988 | h.Helper() |
| 989 | } |
| 990 | if assert.IsDecreasing(t, object, msgAndArgs...) { |
| 991 | return |
| 992 | } |
| 993 | t.FailNow() |
| 994 | } |
| 995 | |
| 996 | // IsDecreasingf asserts that the collection is decreasing |
| 997 | // |
no test coverage detected
searching dependent graphs…