testutil

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PollUntil

func PollUntil(t testing.TB, check func() bool, deadline time.Duration)

PollUntil calls check() repeatedly until it returns true or deadline elapses. Fails the test immediately if the deadline expires without check() returning true.

func ReadyExtension

func ReadyExtension() (registry.Extension, <-chan struct{})

ReadyExtension creates an extension that registers a `test-ready!` primitive. When Scheme code calls `(test-ready!)`, it closes the returned channel exactly once, providing a deterministic "code is running" signal to Go test code.

Each call returns a fresh extension and channel. Do not reuse across subtests -- create a new ReadyExtension per subtest to get a fresh channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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