test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorStringComparer

func ErrorStringComparer() cmp.Option

func FakeCmd

func FakeCmd(t *testing.T, params ...FakeExecParams) func(ctx context.Context, command string, args ...string) *exec.Cmd

Types

type FakeExecParams

type FakeExecParams struct {
	WantCmd  []string `json:"want_cmd"`
	Output   string   `json:"output"`
	ExitCode int      `json:"exit_code"`
}

nolint:musttag

Jump to

Keyboard shortcuts

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