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

Function Negativef

assert/assertion_format.go:518–523  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

516// assert.Negativef(t, -1, "error message %s", "formatted")
517// assert.Negativef(t, -1.23, "error message %s", "formatted")
518func Negativef(t TestingT, e interface{}, msg string, args ...interface{}) bool {
519 if h, ok := t.(tHelper); ok {
520 h.Helper()
521 }
522 return Negative(t, e, append([]interface{}{msg}, args...)...)
523}
524
525// Neverf asserts that the given condition doesn't satisfy in waitFor time,
526// periodically checking the target function each tick.

Callers 2

NegativefFunction · 0.92
NegativefMethod · 0.70

Calls 2

NegativeFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected