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

Function Negativef

internal/testify/require/require.go:1257–1265  ·  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

1255// assert.Negativef(t, -1, "error message %s", "formatted")
1256// assert.Negativef(t, -1.23, "error message %s", "formatted")
1257func Negativef(t TestingT, e interface{}, msg string, args ...interface{}) {
1258 if h, ok := t.(tHelper); ok {
1259 h.Helper()
1260 }
1261 if assert.Negativef(t, e, msg, args...) {
1262 return
1263 }
1264 t.FailNow()
1265}
1266
1267// Never asserts that the given condition doesn't satisfy in waitFor time,
1268// periodically checking the target function each tick.

Callers 1

NegativefMethod · 0.70

Calls 3

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