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

Function IsDecreasing

require/require.go:999–1007  ·  view source on GitHub ↗

IsDecreasing asserts that the collection is decreasing require.IsDecreasing(t, []int{2, 1, 0}) require.IsDecreasing(t, []float{2, 1}) require.IsDecreasing(t, []string{"b", "a"})

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

Source from the content-addressed store, hash-verified

997// require.IsDecreasing(t, []float{2, 1})
998// require.IsDecreasing(t, []string{"b", "a"})
999func IsDecreasing(t TestingT, object interface{}, msgAndArgs ...interface{}) {
1000 if h, ok := t.(tHelper); ok {
1001 h.Helper()
1002 }
1003 if assert.IsDecreasing(t, object, msgAndArgs...) {
1004 return
1005 }
1006 t.FailNow()
1007}
1008
1009// IsDecreasingf asserts that the collection is decreasing
1010//

Callers 1

IsDecreasingMethod · 0.70

Calls 3

IsDecreasingFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected