testhelper

package
v0.20.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	ppi.Plugin
	*cmds.PluginCommand
	// contains filtered or unexported fields
}

func NewCLI

func NewCLI() (*CLI, error)

func (*CLI) Execute

func (cli *CLI) Execute(args ...string) error

func (*CLI) GetOutput

func (cli *CLI) GetOutput() []byte

func (*CLI) SetConfig

func (cli *CLI) SetConfig(cfg *config.Config) error

func (*CLI) SetInput

func (cli *CLI) SetInput(data io.Reader)

type TestEnv

type TestEnv struct {
	*builder.Builder
	*CLI
}

func NewTestEnv

func NewTestEnv(opts ...env.Option) (*TestEnv, error)

Jump to

Keyboard shortcuts

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