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

Function IsDecreasingf

internal/testify/assert/assertion_format.go:398–403  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

396// assert.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted")
397// assert.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
398func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
399 if h, ok := t.(tHelper); ok {
400 h.Helper()
401 }
402 return IsDecreasing(t, object, append([]interface{}{msg}, args...)...)
403}
404
405// IsIncreasingf asserts that the collection is increasing
406//

Callers 2

IsDecreasingfFunction · 0.92
IsDecreasingfMethod · 0.70

Calls 2

IsDecreasingFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…