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

Function Neverf

internal/testify/assert/assertion_format.go:510–515  ·  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

508//
509// assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
510func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
511 if h, ok := t.(tHelper); ok {
512 h.Helper()
513 }
514 return Never(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...)
515}
516
517// Nilf asserts that the specified object is nil.
518//

Callers 2

NeverfFunction · 0.92
NeverfMethod · 0.70

Calls 2

NeverFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…