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

Function IsIncreasing

internal/testify/require/require.go:1016–1024  ·  view source on GitHub ↗

IsIncreasing asserts that the collection is increasing assert.IsIncreasing(t, []int{1, 2, 3}) assert.IsIncreasing(t, []float{1, 2}) assert.IsIncreasing(t, []string{"a", "b"})

(t TestingT, object interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1014// assert.IsIncreasing(t, []float{1, 2})
1015// assert.IsIncreasing(t, []string{"a", "b"})
1016func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1017 if h, ok := t.(tHelper); ok {
1018 h.Helper()
1019 }
1020 if assert.IsIncreasing(t, object, msgAndArgs...) {
1021 return
1022 }
1023 t.FailNow()
1024}
1025
1026// IsIncreasingf asserts that the collection is increasing
1027//

Callers 1

IsIncreasingMethod · 0.70

Calls 3

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