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

Method IsIncreasingf

assert/assertion_forward.go:830–835  ·  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

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

Callers

nothing calls this directly

Calls 2

IsIncreasingfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected