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

Method LessOrEqual

assert/assertion_forward.go:985–990  ·  view source on GitHub ↗

LessOrEqual asserts that the first element is less than or equal to the second a.LessOrEqual(1, 2) a.LessOrEqual(2, 2) a.LessOrEqual("a", "b") a.LessOrEqual("b", "b")

(e1 interface{}, e2 interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

983// a.LessOrEqual("a", "b")
984// a.LessOrEqual("b", "b")
985func (a *Assertions) LessOrEqual(e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
986 if h, ok := a.t.(tHelper); ok {
987 h.Helper()
988 }
989 return LessOrEqual(a.t, e1, e2, msgAndArgs...)
990}
991
992// LessOrEqualf asserts that the first element is less than or equal to the second
993//

Callers

nothing calls this directly

Calls 2

LessOrEqualFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected