MCPcopy
hub / github.com/stretchr/testify / IsIncreasing

Method IsIncreasing

require/require_forward.go:819–824  ·  view source on GitHub ↗

IsIncreasing asserts that the collection is increasing a.IsIncreasing([]int{1, 2, 3}) a.IsIncreasing([]float{1, 2}) a.IsIncreasing([]string{"a", "b"})

(object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

817// a.IsIncreasing([]float{1, 2})
818// a.IsIncreasing([]string{"a", "b"})
819func (a *Assertions) IsIncreasing(object interface{}, msgAndArgs ...interface{}) {
820 if h, ok := a.t.(tHelper); ok {
821 h.Helper()
822 }
823 IsIncreasing(a.t, object, msgAndArgs...)
824}
825
826// IsIncreasingf asserts that the collection is increasing
827//

Callers

nothing calls this directly

Calls 2

IsIncreasingFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected