MCPcopy Create free account
hub / github.com/expr-lang/expr / IsDecreasing

Method IsDecreasing

internal/testify/require/require_forward.go:782–787  ·  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

780// a.IsDecreasing([]float{2, 1})
781// a.IsDecreasing([]string{"b", "a"})
782func (a *Assertions) IsDecreasing(object interface{}, msgAndArgs ...interface{}) {
783 if h, ok := a.t.(tHelper); ok {
784 h.Helper()
785 }
786 IsDecreasing(a.t, object, msgAndArgs...)
787}
788
789// IsDecreasingf asserts that the collection is decreasing
790//

Callers

nothing calls this directly

Calls 2

IsDecreasingFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected