contract

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package contract holds shared conformance checks that every implementation of a core interface must pass. Registry plugins call these from their tests so a new backend or protocol can't silently drift from the interface contract. See docs/testing.md (Tier 2).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generator

func Generator(t testing.TB, g generator.Generator)

Generator asserts a generator honors the Generator contract.

func Payloader

func Payloader(t testing.TB, p payload.Payloader)

Payloader asserts a payloader honors the Payloader contract.

func RxDatapath

func RxDatapath(t testing.TB, d datapath.RxDatapath)

RxDatapath asserts a receive datapath honors the contract: polling and releasing must not panic, and an empty poll must not block indefinitely (the backend bounds it with a deadline).

func Scheduler

func Scheduler(t testing.TB, s scheduler.Scheduler)

Scheduler asserts a scheduler honors the Scheduler contract.

func TxDatapath

func TxDatapath(t testing.TB, d datapath.TxDatapath)

TxDatapath asserts a transmit datapath honors the contract. The datapath must be usable without external setup (e.g. memory/discard).

Types

This section is empty.

Jump to

Keyboard shortcuts

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