MCPcopy
hub / github.com/stretchr/testify / Negativef

Method Negativef

assert/assertion_forward.go:1032–1037  ·  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

1030// a.Negativef(-1, "error message %s", "formatted")
1031// a.Negativef(-1.23, "error message %s", "formatted")
1032func (a *Assertions) Negativef(e interface{}, msg string, args ...interface{}) bool {
1033 if h, ok := a.t.(tHelper); ok {
1034 h.Helper()
1035 }
1036 return Negativef(a.t, e, msg, args...)
1037}
1038
1039// Never asserts that the given condition doesn't satisfy in waitFor time,
1040// periodically checking the target function each tick.

Callers

nothing calls this directly

Calls 2

NegativefFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected