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

Function IsNonIncreasing

require/require.go:1089–1097  ·  view source on GitHub ↗

IsNonIncreasing asserts that the collection is not increasing require.IsNonIncreasing(t, []int{2, 1, 1}) require.IsNonIncreasing(t, []float{2, 1}) require.IsNonIncreasing(t, []string{"b", "a"})

(t TestingT, object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1087// require.IsNonIncreasing(t, []float{2, 1})
1088// require.IsNonIncreasing(t, []string{"b", "a"})
1089func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1090 if h, ok := t.(tHelper); ok {
1091 h.Helper()
1092 }
1093 if assert.IsNonIncreasing(t, object, msgAndArgs...) {
1094 return
1095 }
1096 t.FailNow()
1097}
1098
1099// IsNonIncreasingf asserts that the collection is not increasing
1100//

Callers 1

IsNonIncreasingMethod · 0.70

Calls 3

IsNonIncreasingFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected