tests_setup

package
v1.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryRunner

type BinaryRunner struct {
	RunnerBase
	BinPath string
}

func NewBinaryRunner

func NewBinaryRunner(binPath string) *BinaryRunner

func (*BinaryRunner) Run

func (r *BinaryRunner) Run(args ...string) (string, string, error)

type CLIRunner

type CLIRunner interface {
	Run(args ...string) (stdout string, stderr string, err error)
}

func GetTestRunner

func GetTestRunner(opts ...RunnerOption) (CLIRunner, error)

type InProcessRunner

type InProcessRunner struct {
	RunnerBase
	Root *cobra.Command
}

func NewInProcessRunner

func NewInProcessRunner(rootCmd *cobra.Command) *InProcessRunner

func (*InProcessRunner) Run

func (r *InProcessRunner) Run(args ...string) (string, string, error)

type RunnerBase

type RunnerBase struct {
	// contains filtered or unexported fields
}

type RunnerOption

type RunnerOption = func(base *RunnerBase) error

func WithConfigSetup

func WithConfigSetup(config string, t *testing.T) RunnerOption

func WithDevelopmentConfig

func WithDevelopmentConfig(t *testing.T) RunnerOption

Jump to

Keyboard shortcuts

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