Help us shape the future of Go! Take the 2026 Go Developer Survey

testutil

package
v0.1.162 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BuildCompanionsHint = "run ./companions/scripts/build_companions.sh from core/"

BuildCompanionsHint is the message to show when a companion image is missing.

Variables

This section is empty.

Functions

func RequireDocker

func RequireDocker(t *testing.T, ctx context.Context)

RequireDocker fails the test when Docker is not running.

We deliberately fail loudly instead of skipping: a silently-skipped Docker test masks real regressions in containerized code paths and lets environmental drift hide bugs the test was supposed to catch. Bring the Docker daemon up — or fix the failing test.

func RequireGoImage

func RequireGoImage(t *testing.T, ctx context.Context)

RequireGoImage fails the test if the Go companion image is not built.

func RequireProtoImage

func RequireProtoImage(t *testing.T, ctx context.Context)

RequireProtoImage fails the test if the proto companion image is not built.

Types

This section is empty.

Jump to

Keyboard shortcuts

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