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

Method IsIncreasingf

require/require_forward.go:831–836  ·  view source on GitHub ↗

IsIncreasingf asserts that the collection is increasing a.IsIncreasingf([]int{1, 2, 3}, "error message %s", "formatted") a.IsIncreasingf([]float{1, 2}, "error message %s", "formatted") a.IsIncreasingf([]string{"a", "b"}, "error message %s", "formatted")

(object interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

829// a.IsIncreasingf([]float{1, 2}, "error message %s", "formatted")
830// a.IsIncreasingf([]string{"a", "b"}, "error message %s", "formatted")
831func (a *Assertions) IsIncreasingf(object interface{}, msg string, args ...interface{}) {
832 if h, ok := a.t.(tHelper); ok {
833 h.Helper()
834 }
835 IsIncreasingf(a.t, object, msg, args...)
836}
837
838// IsNonDecreasing asserts that the collection is not decreasing
839//

Callers

nothing calls this directly

Calls 2

IsIncreasingfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected