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

Method IsDecreasingf

assert/assertion_forward.go:806–811  ·  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

804// a.IsDecreasingf([]float{2, 1}, "error message %s", "formatted")
805// a.IsDecreasingf([]string{"b", "a"}, "error message %s", "formatted")
806func (a *Assertions) IsDecreasingf(object interface{}, msg string, args ...interface{}) bool {
807 if h, ok := a.t.(tHelper); ok {
808 h.Helper()
809 }
810 return IsDecreasingf(a.t, object, msg, args...)
811}
812
813// IsIncreasing asserts that the collection is increasing
814//

Callers

nothing calls this directly

Calls 2

IsDecreasingfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected