Skip to main content

Module testkit

Module testkit 

Source
Expand description

Test helpers for downstream crates and integration tests.

Provides an in-memory MockRuntime that satisfies crate::ContainerRuntime without any Docker daemon. Containers become healthy a short, deterministic delay after start, unless the caller flags a specific resource as a failure target.

MockRuntime is intentionally cheap to clone: every internal field is an Arc<Mutex<_>>, so a test can hold an observer clone for introspection after the manager has consumed the original instance.

Structsยง

MockRuntime
In-memory ContainerRuntime for tests.