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

Function IsIncreasingf

internal/testify/require/require.go:1031–1039  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1029// assert.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted")
1030// assert.IsIncreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
1031func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1032 if h, ok := t.(tHelper); ok {
1033 h.Helper()
1034 }
1035 if assert.IsIncreasingf(t, object, msg, args...) {
1036 return
1037 }
1038 t.FailNow()
1039}
1040
1041// IsNonDecreasing asserts that the collection is not decreasing
1042//

Callers 1

IsIncreasingfMethod · 0.70

Calls 3

IsIncreasingfFunction · 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…