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

Function Lessf

assert/assertion_format.go:494–499  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

492// assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted")
493// assert.Lessf(t, "a", "b", "error message %s", "formatted")
494func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) bool {
495 if h, ok := t.(tHelper); ok {
496 h.Helper()
497 }
498 return Less(t, e1, e2, append([]interface{}{msg}, args...)...)
499}
500
501// LessOrEqualf asserts that the first element is less than or equal to the second
502//

Callers 2

LessfFunction · 0.92
LessfMethod · 0.70

Calls 2

LessFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected