MCPcopy Create free account
hub / github.com/expr-lang/expr / Negativef

Method Negativef

internal/testify/require/require_forward.go:996–1001  ·  view source on GitHub ↗

Negativef asserts that the specified element is negative a.Negativef(-1, "error message %s", "formatted") a.Negativef(-1.23, "error message %s", "formatted")

(e interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

994// a.Negativef(-1, "error message %s", "formatted")
995// a.Negativef(-1.23, "error message %s", "formatted")
996func (a *Assertions) Negativef(e interface{}, msg string, args ...interface{}) {
997 if h, ok := a.t.(tHelper); ok {
998 h.Helper()
999 }
1000 Negativef(a.t, e, msg, args...)
1001}
1002
1003// Never asserts that the given condition doesn't satisfy in waitFor time,
1004// periodically checking the target function each tick.

Callers

nothing calls this directly

Calls 2

NegativefFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected