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

Function Greaterf

internal/testify/require/require.go:647–655  ·  view source on GitHub ↗

Greaterf asserts that the first element is greater than the second assert.Greaterf(t, 2, 1, "error message %s", "formatted") assert.Greaterf(t, float64(2), float64(1), "error message %s", "formatted") assert.Greaterf(t, "b", "a", "error message %s", "formatted")

(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

645// assert.Greaterf(t, float64(2), float64(1), "error message %s", "formatted")
646// assert.Greaterf(t, "b", "a", "error message %s", "formatted")
647func Greaterf(t TestingT, e1 interface{}, e2 interface{}, msg string, args ...interface{}) {
648 if h, ok := t.(tHelper); ok {
649 h.Helper()
650 }
651 if assert.Greaterf(t, e1, e2, msg, args...) {
652 return
653 }
654 t.FailNow()
655}
656
657// HTTPBodyContains asserts that a specified handler returns a
658// body that contains a string.

Callers 1

GreaterfMethod · 0.70

Calls 3

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