testfixture

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Command sdk-fixture is a minimal SDK-based extension for integration testing. Unlike testdata/fixture-ext/ (raw protocol), this uses the Go SDK to verify the SDK→Host wire format round-trip end-to-end.

The wire format mismatch bug (schema vs parameters, []string vs []HandlerDecl) was only caught in production because no integration test exercised the real SDK path. This fixture exists to close that gap.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extension

func Extension() *sdk.Extension

Extension returns the canonical Go SDK fixture shared by subprocess and fused conformance harnesses.

func ModelCall

func ModelCall() *sdk.Extension

ModelCall registers /model-call, which makes one model call through the host for the provider named in its arguments. Every SDK's model calls are host calls, so the request the provider receives is PiG's own.

func ProviderProducer

func ProviderProducer() *sdk.Extension

ProviderProducer is shared by isolated, packed and fused Go provider-stream tests.

func ReferenceToolSchemaRejected

func ReferenceToolSchemaRejected() bool

func RejectInvalidToolSchema

func RejectInvalidToolSchema(ext *sdk.Extension) (rejected bool)

Types

This section is empty.

Directories

Path Synopsis
Command sdk-fixture runs the canonical Go SDK conformance extension over a subprocess socket.
Command sdk-fixture runs the canonical Go SDK conformance extension over a subprocess socket.
Package extensionapi is the Go SDK extension of the Pi 0.99.1 extension API conformance rows.
Package extensionapi is the Go SDK extension of the Pi 0.99.1 extension API conformance rows.
Package modeltypes is the Go SDK extension of the typed model operation conformance rows: ctx.modelRegistry's typed reads, getAvailableOfType, classify and registerVirtualModel, and the image and classifier implementations of a provider config and of a Provider object.
Package modeltypes is the Go SDK extension of the typed model operation conformance rows: ctx.modelRegistry's typed reads, getAvailableOfType, classify and registerVirtualModel, and the image and classifier implementations of a provider config and of a Provider object.

Jump to

Keyboard shortcuts

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