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

Function Never

internal/testify/require/require.go:1271–1279  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

1269//
1270// assert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond)
1271func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) {
1272 if h, ok := t.(tHelper); ok {
1273 h.Helper()
1274 }
1275 if assert.Never(t, condition, waitFor, tick, msgAndArgs...) {
1276 return
1277 }
1278 t.FailNow()
1279}
1280
1281// Neverf asserts that the given condition doesn't satisfy in waitFor time,
1282// periodically checking the target function each tick.

Callers 1

NeverMethod · 0.70

Calls 3

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