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

Function LessOrEqualf

assert/assertion_format.go:507–512  ·  view source on GitHub ↗

LessOrEqualf asserts that the first element is less than or equal to the second assert.LessOrEqualf(t, 1, 2, "error message %s", "formatted") assert.LessOrEqualf(t, 2, 2, "error message %s", "formatted") assert.LessOrEqualf(t, "a", "b", "error message %s", "formatted") assert.LessOrEqualf(t, "b

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

Source from the content-addressed store, hash-verified

505// assert.LessOrEqualf(t, "a", "b", "error message %s", "formatted")
506// assert.LessOrEqualf(t, "b", "b", "error message %s", "formatted")
507func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) bool {
508 if h, ok := t.(tHelper); ok {
509 h.Helper()
510 }
511 return LessOrEqual(t, e1, e2, append([]interface{}{msg}, args...)...)
512}
513
514// Negativef asserts that the specified element is negative
515//

Callers 2

LessOrEqualfFunction · 0.92
LessOrEqualfMethod · 0.70

Calls 2

LessOrEqualFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected