sandboxtest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package sandboxtest is the contract suite every sandbox.Provider must pass (CLAUDE.md: backend variability lives behind an interface with one shared suite). It is test support; production code must never import it.

The suite asserts observable behavior only — what a tool would see — never a backend's internals. A new backend adds one test file that calls Run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, newHarness func(t *testing.T) Harness)

Run exercises the sandbox.Provider contract. newHarness is called once per subtest so a backend can isolate its own fixtures.

Types

type Harness

type Harness struct {
	Provider sandbox.Provider
	Image    string
}

Harness is one backend under test. Image must name a Linux image carrying /bin/bash (the plan's image contract) and a POSIX userland.

Jump to

Keyboard shortcuts

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