IsIncreasingf asserts that the collection is increasing require.IsIncreasingf(t, []int{1, 2, 3}, "error message %s", "formatted") require.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted") require.IsIncreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1042 | // require.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted") |
| 1043 | // require.IsIncreasingf(t, []string{"a", "b"}, "error message %s", "formatted") |
| 1044 | func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1045 | if h, ok := t.(tHelper); ok { |
| 1046 | h.Helper() |
| 1047 | } |
| 1048 | if assert.IsIncreasingf(t, object, msg, args...) { |
| 1049 | return |
| 1050 | } |
| 1051 | t.FailNow() |
| 1052 | } |
| 1053 | |
| 1054 | // IsNonDecreasing asserts that the collection is not decreasing |
| 1055 | // |
no test coverage detected