testsupport

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAnswerWires

func CheckAnswerWires(t *testing.T, path, scenario, provider string)

func CheckFaultControlOrder

func CheckFaultControlOrder(t *testing.T, path, provider string, want []string)

Compare complete native input/answer order from peer-observed bytes. Detached trace facts cannot create an answer handle or hide an extra control/retry.

func CountAnswers

func CountAnswers(t *testing.T, path, provider string) int

func CountFrames

func CountFrames(t *testing.T, path, method string) int

func Deadline

func Deadline(t *testing.T) context.Context

func Marshal

func Marshal(t *testing.T, v any) []byte

func ObservedWire

func ObservedWire(t *testing.T, b []byte) map[string]any

func PeerFrames

func PeerFrames(t *testing.T, path string) []json.RawMessage

Trace reads only bytes the native peer actually received. Assertions never read private Session membership, queue length, or permission registry state.

func Wait

func Wait(t *testing.T, ctx context.Context, ch <-chan struct{})

Types

This section is empty.

Directories

Path Synopsis
replay
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
replay
SDK-specific fixtures and process adapters; native protocol matching belongs to the tool.
SDK-specific fixtures and process adapters; native protocol matching belongs to the tool.
Package mocktest bridges Go SDK fixture assertions to the in-process Replay library.
Package mocktest bridges Go SDK fixture assertions to the in-process Replay library.
Package testutil locates the repository root and prepares the installed tool used by process-boundary tests.
Package testutil locates the repository root and prepares the installed tool used by process-boundary tests.
builtintest
Package builtintest reads builtin recordings for installed CLI checks.
Package builtintest reads builtin recordings for installed CLI checks.

Jump to

Keyboard shortcuts

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