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

contracttest

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package contracttest exercises independently built distribution binaries. It is test infrastructure, not an additional protected production SPI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distribution

func Distribution(t *testing.T, f ProcessFixture)

Distribution runs both real server modes, CLI apply/export, authenticated Admin/body contracts, bounded admission, protocol/stream/cancellation and persisted usage checks. It requires only public packages and loopback I/O.

Types

type ProcessFixture

type ProcessFixture struct {
	BinDir       string
	Runtime      distribution.Assembly
	Validation   distribution.Assembly
	Envelopes    []extension.Envelope
	ProbePath    string
	EventFileEnv string
}

ProcessFixture supplies external assembly inputs. Binaries are named agw, agwd and agwctl; callers may give private commands those names in a temp dir. EventFileEnv selects an independently owned JSONL sink. ProbePath identifies a read-only contributed POST accepting {}. Envelopes must select a backend.

Jump to

Keyboard shortcuts

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