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

Function IsNonIncreasing

assert/assertion_order.go:61–63  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

59// assert.IsNonIncreasing(t, []float{2, 1})
60// assert.IsNonIncreasing(t, []string{"b", "a"})
61func IsNonIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {
62 return isOrdered(t, object, []compareResult{compareEqual, compareGreater}, "\"%v\" is not greater than or equal to \"%v\"", msgAndArgs...)
63}
64
65// IsDecreasing asserts that the collection is decreasing
66//

Callers 5

IsNonIncreasingFunction · 0.92
IsNonIncreasingfFunction · 0.70
TestIsNonIncreasingFunction · 0.70
IsNonIncreasingMethod · 0.70

Calls 1

isOrderedFunction · 0.85

Tested by 2

TestIsNonIncreasingFunction · 0.56