MCPcopy
hub / github.com/stretchr/testify / IsIncreasing

Function IsIncreasing

require/require.go:1029–1037  ·  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

1027// require.IsIncreasing(t, []float{1, 2})
1028// require.IsIncreasing(t, []string{"a", "b"})
1029func IsIncreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1030 if h, ok := t.(tHelper); ok {
1031 h.Helper()
1032 }
1033 if assert.IsIncreasing(t, object, msgAndArgs...) {
1034 return
1035 }
1036 t.FailNow()
1037}
1038
1039// IsIncreasingf asserts that the collection is increasing
1040//

Callers 1

IsIncreasingMethod · 0.70

Calls 3

IsIncreasingFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected