Help us shape the future of Go! Take the 2026 Go Developer Survey

testhelpers

package
v1.14.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMockStdout

func CreateMockStdout() *mockStdoutFile

CreateMockStdout will create a temp file used for mocking stdout for testing

func GenerateCobraCommand

func GenerateCobraCommand() *cobra.Command

GenerateCobraCommand will create a cobra command with basic flags used for testing

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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