MCPcopy
hub / github.com/expr-lang/expr / IsDecreasingf

Method IsDecreasingf

internal/testify/require/require_forward.go:794–799  ·  view source on GitHub ↗

IsDecreasingf asserts that the collection is decreasing a.IsDecreasingf([]int{2, 1, 0}, "error message %s", "formatted") a.IsDecreasingf([]float{2, 1}, "error message %s", "formatted") a.IsDecreasingf([]string{"b", "a"}, "error message %s", "formatted")

(object interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

792// a.IsDecreasingf([]float{2, 1}, "error message %s", "formatted")
793// a.IsDecreasingf([]string{"b", "a"}, "error message %s", "formatted")
794func (a *Assertions) IsDecreasingf(object interface{}, msg string, args ...interface{}) {
795 if h, ok := a.t.(tHelper); ok {
796 h.Helper()
797 }
798 IsDecreasingf(a.t, object, msg, args...)
799}
800
801// IsIncreasing asserts that the collection is increasing
802//

Callers

nothing calls this directly

Calls 2

IsDecreasingfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected