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

Function IsNonIncreasingf

require/require.go:1104–1112  ·  view source on GitHub ↗

IsNonIncreasingf asserts that the collection is not increasing require.IsNonIncreasingf(t, []int{2, 1, 1}, "error message %s", "formatted") require.IsNonIncreasingf(t, []float{2, 1}, "error message %s", "formatted") require.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

1102// require.IsNonIncreasingf(t, []float{2, 1}, "error message %s", "formatted")
1103// require.IsNonIncreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
1104func IsNonIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1105 if h, ok := t.(tHelper); ok {
1106 h.Helper()
1107 }
1108 if assert.IsNonIncreasingf(t, object, msg, args...) {
1109 return
1110 }
1111 t.FailNow()
1112}
1113
1114// IsNotType asserts that the specified objects are not of the same type.
1115//

Callers 1

IsNonIncreasingfMethod · 0.70

Calls 3

IsNonIncreasingfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected