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

Function Greater

internal/testify/require/require.go:600–608  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

598// assert.Greater(t, float64(2), float64(1))
599// assert.Greater(t, "b", "a")
600func Greater(t TestingT, e1 interface{}, e2 interface{}, msgAndArgs ...interface{}) {
601 if h, ok := t.(tHelper); ok {
602 h.Helper()
603 }
604 if assert.Greater(t, e1, e2, msgAndArgs...) {
605 return
606 }
607 t.FailNow()
608}
609
610// GreaterOrEqual asserts that the first element is greater than or equal to the second
611//

Callers 2

TestVM_ProfileOperationsFunction · 0.92
GreaterMethod · 0.70

Calls 3

GreaterFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 1

TestVM_ProfileOperationsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…