agentcommon

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package agentcommon provides a production-router fixture for Agent Packages and Agent Plugins server-route suites.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HitsOf

func HitsOf(t *testing.T, rec *httptest.ResponseRecorder) []map[string]any

func SetTrashcan

func SetTrashcan(t *testing.T, db store.Store, on bool)

func WantStatus

func WantStatus(t *testing.T, rec *httptest.ResponseRecorder, want int)

Types

type World

type World struct {
	T       *testing.T
	Handler http.Handler
	DB      *inmem.Store
	Blobs   blob.Store
}

func NewWorld

func NewWorld(t *testing.T) *World

func (*World) Do

func (w *World) Do(method, path, as, body string, headers ...string) *httptest.ResponseRecorder

Jump to

Keyboard shortcuts

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