httptest

package
v0.9.2 Latest Latest
Warning

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

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

Documentation

Overview

Package httptest provides test helpers for HTTPDataSource parser implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParserContract

func ParserContract[T any](t *testing.T, parser func(io.Reader) (T, error), goldenInputs ...[]byte)

ParserContract asserts that parser satisfies the HTTPDataSource parser contract: each goldenInput returns (meaningful T, nil error), and never (nil, nil) for nilable T.

Types

This section is empty.

Jump to

Keyboard shortcuts

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