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

Function IsNonIncreasingf

assert/assertion_format.go:441–446  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

439// assert.IsNonIncreasingf(t, []float{2, 1}, "error message %s", "formatted")
440// assert.IsNonIncreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
441func IsNonIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
442 if h, ok := t.(tHelper); ok {
443 h.Helper()
444 }
445 return IsNonIncreasing(t, object, append([]interface{}{msg}, args...)...)
446}
447
448// IsNotTypef asserts that the specified objects are not of the same type.
449//

Callers 2

IsNonIncreasingfFunction · 0.92
IsNonIncreasingfMethod · 0.70

Calls 2

IsNonIncreasingFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected