IsDecreasingf asserts that the collection is decreasing assert.IsDecreasingf(t, []int{2, 1, 0}, "error message %s", "formatted") assert.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted") assert.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 999 | // assert.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted") |
| 1000 | // assert.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted") |
| 1001 | func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1002 | if h, ok := t.(tHelper); ok { |
| 1003 | h.Helper() |
| 1004 | } |
| 1005 | if assert.IsDecreasingf(t, object, msg, args...) { |
| 1006 | return |
| 1007 | } |
| 1008 | t.FailNow() |
| 1009 | } |
| 1010 | |
| 1011 | // IsIncreasing asserts that the collection is increasing |
| 1012 | // |
no test coverage detected
searching dependent graphs…