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

Function LessOrEqual

internal/testify/assert/assertion_compare.go:427–432  ·  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

425// assert.LessOrEqual(t, "a", "b")
426// assert.LessOrEqual(t, "b", "b")
427func LessOrEqual(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
428 if h, ok := t.(tHelper); ok {
429 h.Helper()
430 }
431 return compareTwoValues(t, e1, e2, []compareResult{compareLess, compareEqual}, "\"%v\" is not less than or equal to \"%v\"", msgAndArgs...)
432}
433
434// Positive asserts that the specified element is positive
435//

Callers 5

LessOrEqualFunction · 0.92
LessOrEqualfFunction · 0.70
TestLessOrEqualFunction · 0.70
LessOrEqualMethod · 0.70

Calls 2

compareTwoValuesFunction · 0.85
HelperMethod · 0.45

Tested by 2

TestLessOrEqualFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…