IsDecreasingf asserts that the collection is decreasing require.IsDecreasingf(t, []int{2, 1, 0}, "error message %s", "formatted") require.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted") require.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1012 | // require.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted") |
| 1013 | // require.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted") |
| 1014 | func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1015 | if h, ok := t.(tHelper); ok { |
| 1016 | h.Helper() |
| 1017 | } |
| 1018 | if assert.IsDecreasingf(t, object, msg, args...) { |
| 1019 | return |
| 1020 | } |
| 1021 | t.FailNow() |
| 1022 | } |
| 1023 | |
| 1024 | // IsIncreasing asserts that the collection is increasing |
| 1025 | // |
no test coverage detected