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

Function IsIncreasing

assert/assertion_order.go:52–54  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

50// assert.IsIncreasing(t, []float{1, 2})
51// assert.IsIncreasing(t, []string{"a", "b"})
52func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) bool {
53 return isOrdered(t, object, []compareResult{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...)
54}
55
56// IsNonIncreasing asserts that the collection is not increasing
57//

Callers 5

IsIncreasingFunction · 0.92
IsIncreasingfFunction · 0.70
TestIsIncreasingFunction · 0.70
IsIncreasingMethod · 0.70

Calls 1

isOrderedFunction · 0.85

Tested by 2

TestIsIncreasingFunction · 0.56