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

Function LessOrEqual

internal/testify/require/require.go:1198–1206  ·  view source on GitHub ↗

LessOrEqual asserts that the first element is less than or equal to the second assert.LessOrEqual(t, 1, 2) assert.LessOrEqual(t, 2, 2) assert.LessOrEqual(t, "a", "b") assert.LessOrEqual(t, "b", "b")

(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1196// assert.LessOrEqual(t, "a", "b")
1197// assert.LessOrEqual(t, "b", "b")
1198func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
1199 if h, ok := t.(tHelper); ok {
1200 h.Helper()
1201 }
1202 if assert.LessOrEqual(t, e1, e2, msgAndArgs...) {
1203 return
1204 }
1205 t.FailNow()
1206}
1207
1208// LessOrEqualf asserts that the first element is less than or equal to the second
1209//

Callers 1

LessOrEqualMethod · 0.70

Calls 3

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