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

Function IsDecreasingf

internal/testify/require/require.go:1001–1009  ·  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

999// assert.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted")
1000// assert.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
1001func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1002 if h, ok := t.(tHelper); ok {
1003 h.Helper()
1004 }
1005 if assert.IsDecreasingf(t, object, msg, args...) {
1006 return
1007 }
1008 t.FailNow()
1009}
1010
1011// IsIncreasing asserts that the collection is increasing
1012//

Callers 1

IsDecreasingfMethod · 0.70

Calls 3

IsDecreasingfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…