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

Function IsDecreasing

assert/assertion_order.go:70–72  ·  view source on GitHub ↗

IsDecreasing asserts that the collection is decreasing assert.IsDecreasing(t, []int{2, 1, 0}) assert.IsDecreasing(t, []float{2, 1}) assert.IsDecreasing(t, []string{"b", "a"})

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

Source from the content-addressed store, hash-verified

68// assert.IsDecreasing(t, []float{2, 1})
69// assert.IsDecreasing(t, []string{"b", "a"})
70func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {
71 return isOrdered(t, object, []compareResult{compareGreater}, "\"%v\" is not greater than \"%v\"", msgAndArgs...)
72}
73
74// IsNonDecreasing asserts that the collection is not decreasing
75//

Callers 5

IsDecreasingFunction · 0.92
IsDecreasingfFunction · 0.70
TestIsDecreasingFunction · 0.70
IsDecreasingMethod · 0.70

Calls 1

isOrderedFunction · 0.85

Tested by 2

TestIsDecreasingFunction · 0.56