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

Function Lessf

internal/testify/require/require.go:1229–1237  ·  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

1227// assert.Lessf(t, float64(1), float64(2), "error message %s", "formatted")
1228// assert.Lessf(t, "a", "b", "error message %s", "formatted")
1229func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
1230 if h, ok := t.(tHelper); ok {
1231 h.Helper()
1232 }
1233 if assert.Lessf(t, e1, e2, msg, args...) {
1234 return
1235 }
1236 t.FailNow()
1237}
1238
1239// Negative asserts that the specified element is negative
1240//

Callers 1

LessfMethod · 0.70

Calls 3

LessfFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…