streamtest

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package streamtest provides a backend-agnostic conformance test suite for stream.Service implementations.

Each backend's test file calls streamtest.Run with a factory that produces a fresh stream.Service per sub-test. The suite covers the full surface of the stream package: round-trip, consumer-group fan-in, fan-out across groups, replay/start-position, visibility-timeout reclaim, MaxRetries + DLQ routing, ErrSkipRetry, headers, MaxLen / MaxAge trim, and concurrency under the race detector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, factory Factory)

Run executes the conformance suite against a backend.

Types

type Factory

type Factory func(t *testing.T) (svc stream.Service, teardown func())

Factory produces a fresh stream.Service per sub-test along with a teardown function. The factory is responsible for using a unique namespace per call so durable backends do not bleed state between sub-tests.

Jump to

Keyboard shortcuts

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