poll

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package poll checks a test condition over time in the caller's goroutine (#950). testify's Never runs each check in a goroutine and returns on its timer without waiting for it, so a check that uses the test can fail it after its window, once the test's cleanup has stopped what the check reads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Never

func Never(cond func() bool, waitFor, tick time.Duration) bool

Never reports whether cond stayed false for waitFor, checked every tick and once more after waitFor has passed. It returns false at the first true. No check runs after it returns.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL