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

Function IsDecreasingf

assert/assertion_format.go:405–410  ·  view source on GitHub ↗

IsDecreasingf asserts that the collection is decreasing assert.IsDecreasingf(t, []int{2, 1, 0}, "error message %s", "formatted") assert.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted") assert.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted")

(t TestingT, object interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

403// assert.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted")
404// assert.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
405func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) bool {
406 if h, ok := t.(tHelper); ok {
407 h.Helper()
408 }
409 return IsDecreasing(t, object, append([]interface{}{msg}, args...)...)
410}
411
412// IsIncreasingf asserts that the collection is increasing
413//

Callers 2

IsDecreasingfFunction · 0.92
IsDecreasingfMethod · 0.70

Calls 2

IsDecreasingFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected