MCPcopy Index your code
hub / github.com/expr-lang/expr / Lessf

Function Lessf

internal/testify/assert/assertion_format.go:475–480  ·  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

473// assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted")
474// assert.Lessf(t, "a", "b", "error message %s", "formatted")
475func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) bool {
476 if h, ok := t.(tHelper); ok {
477 h.Helper()
478 }
479 return Less(t, e1, e2, append([]interface{}{msg}, args...)...)
480}
481
482// LessOrEqualf asserts that the first element is less than or equal to the second
483//

Callers 2

LessfFunction · 0.92
LessfMethod · 0.70

Calls 2

LessFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…