IsNonIncreasingf asserts that the collection is not increasing require.IsNonIncreasingf(t, []int{2, 1, 1}, "error message %s", "formatted") require.IsNonIncreasingf(t, []float{2, 1}, "error message %s", "formatted") require.IsNonIncreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1102 | // require.IsNonIncreasingf(t, []float{2, 1}, "error message %s", "formatted") |
| 1103 | // require.IsNonIncreasingf(t, []string{"b", "a"}, "error message %s", "formatted") |
| 1104 | func IsNonIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1105 | if h, ok := t.(tHelper); ok { |
| 1106 | h.Helper() |
| 1107 | } |
| 1108 | if assert.IsNonIncreasingf(t, object, msg, args...) { |
| 1109 | return |
| 1110 | } |
| 1111 | t.FailNow() |
| 1112 | } |
| 1113 | |
| 1114 | // IsNotType asserts that the specified objects are not of the same type. |
| 1115 | // |
no test coverage detected