testutils

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestCmd

func NewTestCmd() *cobra.Command

func NewTestCmdContext

func NewTestCmdContext(scClient *serverscom.Client) *base.CmdContext

func PtrInt added in v0.3.0

func PtrInt(i int) *int

func PtrInt64 added in v0.3.0

func PtrInt64(i int64) *int64

func PtrString added in v0.3.0

func PtrString(s string) *string

func ReadFixture

func ReadFixture(filePath string) []byte

Types

type TestCommandBuilder

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

func NewTestCommandBuilder

func NewTestCommandBuilder() *TestCommandBuilder

func (*TestCommandBuilder) Build

func (b *TestCommandBuilder) Build() *cobra.Command

func (*TestCommandBuilder) GetOutput

func (b *TestCommandBuilder) GetOutput() string

func (*TestCommandBuilder) WithArgs

func (b *TestCommandBuilder) WithArgs(args []string) *TestCommandBuilder

func (*TestCommandBuilder) WithCommand

func (b *TestCommandBuilder) WithCommand(cmd *cobra.Command) *TestCommandBuilder

func (*TestCommandBuilder) WithInput

func (b *TestCommandBuilder) WithInput(in io.Reader) *TestCommandBuilder

Jump to

Keyboard shortcuts

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