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

Method Negativef

internal/testify/assert/assertion_forward.go:994–999  ·  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

992// a.Negativef(-1, "error message %s", "formatted")
993// a.Negativef(-1.23, "error message %s", "formatted")
994func (a *Assertions) Negativef(e interface{}, msg string, args ...interface{}) bool {
995 if h, ok := a.t.(tHelper); ok {
996 h.Helper()
997 }
998 return Negativef(a.t, e, msg, args...)
999}
1000
1001// Never asserts that the given condition doesn't satisfy in waitFor time,
1002// 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