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

Function Less

internal/testify/require/require.go:1182–1190  ·  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

1180// assert.Less(t, float64(1), float64(2))
1181// assert.Less(t, "a", "b")
1182func Less(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
1183 if h, ok := t.(tHelper); ok {
1184 h.Helper()
1185 }
1186 if assert.Less(t, e1, e2, msgAndArgs...) {
1187 return
1188 }
1189 t.FailNow()
1190}
1191
1192// LessOrEqual asserts that the first element is less than or equal to the second
1193//

Callers 1

LessMethod · 0.70

Calls 3

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