MCPcopy
hub / github.com/expr-lang/expr / Less

Function Less

internal/testify/assert/assertion_compare.go:414–419  ·  view source on GitHub ↗

Less asserts that the first element is less than the second assert.Less(t, 1, 2) assert.Less(t, float64(1), float64(2)) assert.Less(t, "a", "b")

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

Source from the content-addressed store, hash-verified

412// assert.Less(t, float64(1), float64(2))
413// assert.Less(t, "a", "b")
414func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) bool {
415 if h, ok := t.(tHelper); ok {
416 h.Helper()
417 }
418 return compareTwoValues(t, e1, e2, []compareResult{compareLess}, "\"%v\" is not less than \"%v\"", msgAndArgs...)
419}
420
421// LessOrEqual asserts that the first element is less than or equal to the second
422//

Callers 5

LessFunction · 0.92
LessfFunction · 0.70
TestLessFunction · 0.70
LessMethod · 0.70

Calls 2

compareTwoValuesFunction · 0.85
HelperMethod · 0.45

Tested by 2

TestLessFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…