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

Method Less

assert/assertion_forward.go:972–977  ·  view source on GitHub ↗

Less asserts that the first element is less than the second a.Less(1, 2) a.Less(float64(1), float64(2)) a.Less("a", "b")

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

Source from the content-addressed store, hash-verified

970// a.Less(float64(1), float64(2))
971// a.Less("a", "b")
972func (a *Assertions) Less(e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
973 if h, ok := a.t.(tHelper); ok {
974 h.Helper()
975 }
976 return Less(a.t, e1, e2, msgAndArgs...)
977}
978
979// LessOrEqual asserts that the first element is less than or equal to the second
980//

Callers

nothing calls this directly

Calls 2

LessFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected