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

Function IsDecreasingf

require/require.go:1014–1022  ·  view source on GitHub ↗

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

1012// require.IsDecreasingf(t, []float{2, 1}, "error message %s", "formatted")
1013// require.IsDecreasingf(t, []string{"b", "a"}, "error message %s", "formatted")
1014func IsDecreasingf(t TestingT, object interface{}, msg string, args ...interface{}) {
1015 if h, ok := t.(tHelper); ok {
1016 h.Helper()
1017 }
1018 if assert.IsDecreasingf(t, object, msg, args...) {
1019 return
1020 }
1021 t.FailNow()
1022}
1023
1024// IsIncreasing asserts that the collection is increasing
1025//

Callers 1

IsDecreasingfMethod · 0.70

Calls 3

IsDecreasingfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected