MCPcopy Create free account
hub / github.com/stretchr/testify / IsIncreasing

Function IsIncreasing

require/require.go:1015–1023  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

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

Callers 1

IsIncreasingMethod · 0.70

Calls 3

IsIncreasingFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected