Documentation
¶
Overview ¶
Package contracttest runs shared lifecycle assertions against real adapters backed by controlled native transports. It is test support only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertObservation ¶
func AssertObservation(t *testing.T, got sandbox.Info, err error, reference sandbox.Reference, providerID, state string)
AssertObservation checks identity and the expected native state, without equating a running process with authenticated Runtime or executor readiness.
func RunFailures ¶
RunFailures requires errors without mandating one native error type. Failed or canceled calls must not invent proof of settlement or bootstrap completion.
Types ¶
type Fixture ¶
type Fixture struct {
Provider sandbox.SandboxProvider
Bootstrap sandbox.Bootstrap
Calls func() []string
WantCalls []string
}
Fixture exposes the production adapter. Calls records all native requests; WantCalls includes legitimate multi-step work before the injected fault. Exact comparison detects replay, fallback and implicit cleanup after uncertain Create.