testutil

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testutil provides shared test helpers for command-layer tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(t *testing.T, serverURL string) *cmdutil.Factory

NewFactory creates a Factory pointing at the given test server with minimal config.

func NewFactoryWithConfig

func NewFactoryWithConfig(t *testing.T, serverURL string, extraYAML string) *cmdutil.Factory

NewFactoryWithConfig creates a Factory with additional YAML config lines appended.

func Stderr

func Stderr(f *cmdutil.Factory) string

Stderr returns the contents of the factory's stderr buffer.

func Stdout

func Stdout(f *cmdutil.Factory) string

Stdout returns the contents of the factory's stdout buffer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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