mocktest

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRunner added in v0.6.4

func RegisterRunner(runner Runner)

func TestFile

func TestFile(t *testing.T, contents string) string

func TestRunMockTestWithFlags

func TestRunMockTestWithFlags(t *testing.T, args ...string)

TestRunMockTestWithFlags runs CLI arguments against a mock server.

func TestRunMockTestWithPipeAndFlags

func TestRunMockTestWithPipeAndFlags(t *testing.T, pipeData []byte, args ...string)

TestRunMockTestWithPipeAndFlags adds piped stdin to a mock CLI test.

Types

type Runner added in v0.6.4

type Runner func(*testing.T, context.Context, []string, []byte) error

Jump to

Keyboard shortcuts

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