testutil

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 4 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

Overview

Package testutil holds test-only infrastructure shared across test tiers (see the project's test-framework design spec, §3 and §4): a fake HTTP server that serves a fixture directory's files path-keyed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFixtureServer

func NewFixtureServer(dir string) *httptest.Server

Types

This section is empty.

Directories

Path Synopsis
Package clitest builds the pobear binary (call Build once and reuse the path across fixtures) and, per fixture, runs it as a subprocess and diffs stdout/stderr/exit code against a single YAML case file (args, stdout, stderr, exit, and optional stdin/providers/fixtures keys) — the exact output/exit-code behavior each fixture predicts comes from docs/CLI_REFERENCE.md.
Package clitest builds the pobear binary (call Build once and reuse the path across fixtures) and, per fixture, runs it as a subprocess and diffs stdout/stderr/exit code against a single YAML case file (args, stdout, stderr, exit, and optional stdin/providers/fixtures keys) — the exact output/exit-code behavior each fixture predicts comes from docs/CLI_REFERENCE.md.

Jump to

Keyboard shortcuts

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