IsIncreasingf asserts that the collection is increasing assert.IsIncreasingf(t, []int{1, 2, 3}, "error message %s", "formatted") assert.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted") assert.IsIncreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1029 | // assert.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted") |
| 1030 | // assert.IsIncreasingf(t, []string{"a", "b"}, "error message %s", "formatted") |
| 1031 | func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1032 | if h, ok := t.(tHelper); ok { |
| 1033 | h.Helper() |
| 1034 | } |
| 1035 | if assert.IsIncreasingf(t, object, msg, args...) { |
| 1036 | return |
| 1037 | } |
| 1038 | t.FailNow() |
| 1039 | } |
| 1040 | |
| 1041 | // IsNonDecreasing asserts that the collection is not decreasing |
| 1042 | // |
no test coverage detected
searching dependent graphs…