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

Function IsIncreasingf

assert/assertion_format.go:417–422  ·  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

415// assert.IsIncreasingf(t, []float{1, 2}, "error message %s", "formatted")
416// assert.IsIncreasingf(t, []string{"a", "b"}, "error message %s", "formatted")
417func IsIncreasingf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
418 if h, ok := t.(tHelper); ok {
419 h.Helper()
420 }
421 return IsIncreasing(t, object, append([]interface{}{msg}, args...)...)
422}
423
424// IsNonDecreasingf asserts that the collection is not decreasing
425//

Callers 2

IsIncreasingfFunction · 0.92
IsIncreasingfMethod · 0.70

Calls 2

IsIncreasingFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected