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

Function IsIncreasingf

require/require.go:1044–1052  ·  view source on GitHub ↗

IsIncreasingf asserts that the collection is increasing require.IsIncreasingf(t, []int{1, 2, 3}, "error message %s", "formatted") require.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted") require.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

1042// require.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted")
1043// require.IsIncreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
1044func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1045 if h, ok := t.(tHelper); ok {
1046 h.Helper()
1047 }
1048 if assert.IsIncreasingf(t, object, msg, args...) {
1049 return
1050 }
1051 t.FailNow()
1052}
1053
1054// IsNonDecreasing asserts that the collection is not decreasing
1055//

Callers 1

IsIncreasingfMethod · 0.70

Calls 3

IsIncreasingfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected