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

Function Neverf

internal/testify/require/require.go:1285–1293  ·  view source on GitHub ↗

Neverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")

(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1283//
1284// assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
1285func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) {
1286 if h, ok := t.(tHelper); ok {
1287 h.Helper()
1288 }
1289 if assert.Neverf(t, condition, waitFor, tick, msg, args...) {
1290 return
1291 }
1292 t.FailNow()
1293}
1294
1295// Nil asserts that the specified object is nil.
1296//

Callers 1

NeverfMethod · 0.70

Calls 3

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