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

Function IsNonDecreasingf

assert/assertion_format.go:429–434  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

427// assert.IsNonDecreasingf(t, []float{1, 2}, "error message %s", "formatted")
428// assert.IsNonDecreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
429func IsNonDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
430 if h, ok := t.(tHelper); ok {
431 h.Helper()
432 }
433 return IsNonDecreasing(t, object, append([]interface{}{msg}, args...)...)
434}
435
436// IsNonIncreasingf asserts that the collection is not increasing
437//

Callers 2

IsNonDecreasingfFunction · 0.92
IsNonDecreasingfMethod · 0.70

Calls 2

IsNonDecreasingFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected