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

Function Lessf

require/require.go:1272–1280  ·  view source on GitHub ↗

Lessf asserts that the first element is less than the second require.Lessf(t, 1, 2, "error message %s", "formatted") require.Lessf(t, float64(1), float64(2), "error message %s", "formatted") require.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

1270// require.Lessf(t, float64(1), float64(2), "error message %s", "formatted")
1271// require.Lessf(t, "a", "b", "error message %s", "formatted")
1272func Lessf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
1273 if h, ok := t.(tHelper); ok {
1274 h.Helper()
1275 }
1276 if assert.Lessf(t, e1, e2, msg, args...) {
1277 return
1278 }
1279 t.FailNow()
1280}
1281
1282// Negative asserts that the specified element is negative
1283//

Callers 1

LessfMethod · 0.70

Calls 3

LessfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected