MCPcopy Create free account
hub / github.com/expr-lang/expr / LessOrEqualf

Function LessOrEqualf

internal/testify/require/require.go:1214–1222  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1212// assert.LessOrEqualf(t, "a", "b", "error message %s", "formatted")
1213// assert.LessOrEqualf(t, "b", "b", "error message %s", "formatted")
1214func LessOrEqualf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
1215 if h, ok := t.(tHelper); ok {
1216 h.Helper()
1217 }
1218 if assert.LessOrEqualf(t, e1, e2, msg, args...) {
1219 return
1220 }
1221 t.FailNow()
1222}
1223
1224// Lessf asserts that the first element is less than the second
1225//

Callers 1

LessOrEqualfMethod · 0.70

Calls 3

LessOrEqualfFunction · 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…