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

Method Neverf

internal/testify/assert/assertion_forward.go:1016–1021  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1014//
1015// a.Neverf(func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
1016func (a *Assertions) Neverf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool {
1017 if h, ok := a.t.(tHelper); ok {
1018 h.Helper()
1019 }
1020 return Neverf(a.t, condition, waitFor, tick, msg, args...)
1021}
1022
1023// Nil asserts that the specified object is nil.
1024//

Callers

nothing calls this directly

Calls 2

NeverfFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected