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

Method Never

internal/testify/assert/assertion_forward.go:1005–1010  ·  view source on GitHub ↗

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

(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1003//
1004// a.Never(func() bool { return false; }, time.Second, 10*time.Millisecond)
1005func (a *Assertions) Never(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool {
1006 if h, ok := a.t.(tHelper); ok {
1007 h.Helper()
1008 }
1009 return Never(a.t, condition, waitFor, tick, msgAndArgs...)
1010}
1011
1012// Neverf asserts that the given condition doesn't satisfy in waitFor time,
1013// periodically checking the target function each tick.

Callers

nothing calls this directly

Calls 2

NeverFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected