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

Method IsDecreasing

assert/assertion_forward.go:794–799  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

792// a.IsDecreasing([]float{2, 1})
793// a.IsDecreasing([]string{"b", "a"})
794func (a *Assertions) IsDecreasing(object interface{}, msgAndArgs ...interface{}) bool {
795 if h, ok := a.t.(tHelper); ok {
796 h.Helper()
797 }
798 return IsDecreasing(a.t, object, msgAndArgs...)
799}
800
801// IsDecreasingf asserts that the collection is decreasing
802//

Callers

nothing calls this directly

Calls 2

IsDecreasingFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected