exampletest

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package exampletest provides helpers for tests under examples/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertOutputContains

func AssertOutputContains(t *testing.T, out, substr string)

AssertOutputContains fails the test if out does not contain substr.

func RunWithStdoutCapture

func RunWithStdoutCapture(t *testing.T, fn func()) string

RunWithStdoutCapture runs fn with os.Stdout captured and returns the combined output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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