testsupport

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadRecordedRun

func LoadRecordedRun(t *testing.T, name string) *model.Run

LoadRecordedRun loads a recorded run JSON from testdata/runs (no Docker).

func RequireDocker

func RequireDocker(t *testing.T)

RequireDocker skips the test when Docker is unavailable or -short is set.

func ScenarioDir

func ScenarioDir(id string) string

ScenarioDir returns testdata/scenarios/<id>.

func SyntheticRun

func SyntheticRun(project string, services map[string]model.ServicePhase) *model.Run

SyntheticRun builds a minimal run for unit tests without Docker.

func WriteRunJSON

func WriteRunJSON(t *testing.T, path string, run *model.Run)

WriteRunJSON writes a run to path (test helper).

Types

This section is empty.

Jump to

Keyboard shortcuts

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