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

Method IsNonDecreasingf

require/require_forward.go:855–860  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

853// a.IsNonDecreasingf([]float{1, 2}, "error message %s", "formatted")
854// a.IsNonDecreasingf([]string{"a", "b"}, "error message %s", "formatted")
855func (a *Assertions) IsNonDecreasingf(object interface{}, msg string, args ...interface{}) {
856 if h, ok := a.t.(tHelper); ok {
857 h.Helper()
858 }
859 IsNonDecreasingf(a.t, object, msg, args...)
860}
861
862// IsNonIncreasing asserts that the collection is not increasing
863//

Callers

nothing calls this directly

Calls 2

IsNonDecreasingfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected