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

Method LessOrEqualf

assert/assertion_forward.go:998–1003  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

996// a.LessOrEqualf("a", "b", "error message %s", "formatted")
997// a.LessOrEqualf("b", "b", "error message %s", "formatted")
998func (a *Assertions) LessOrEqualf(e1 interface{}, e2 interface{}, msg string, args ...interface{}) bool {
999 if h, ok := a.t.(tHelper); ok {
1000 h.Helper()
1001 }
1002 return LessOrEqualf(a.t, e1, e2, msg, args...)
1003}
1004
1005// Lessf asserts that the first element is less than the second
1006//

Callers

nothing calls this directly

Calls 2

LessOrEqualfFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected