IsIncreasing asserts that the collection is increasing assert.IsIncreasing(t, []int{1, 2, 3}) assert.IsIncreasing(t, []float{1, 2}) assert.IsIncreasing(t, []string{"a", "b"})
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1014 | // assert.IsIncreasing(t, []float{1, 2}) |
| 1015 | // assert.IsIncreasing(t, []string{"a", "b"}) |
| 1016 | func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1017 | if h, ok := t.(tHelper); ok { |
| 1018 | h.Helper() |
| 1019 | } |
| 1020 | if assert.IsIncreasing(t, object, msgAndArgs...) { |
| 1021 | return |
| 1022 | } |
| 1023 | t.FailNow() |
| 1024 | } |
| 1025 | |
| 1026 | // IsIncreasingf asserts that the collection is increasing |
| 1027 | // |
no test coverage detected
searching dependent graphs…