test

package
v0.0.0-...-ad3a29e Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockPrintResources

func MockPrintResources(resources resource.List, options printer.ResourcePrintOptions) string

Types

type Invocation

type Invocation struct {
	Client         *clientmock.MockClient
	Config         *config.Config
	ConfigProvider *configmock.MockProvider
	Streams        *Streams

	Mock *gomock.Controller
}

func Command

func Command(t *testing.T, cmdFactory cmdutil.CommandFactoryFunc) (*cobra.Command, *Invocation)

type Streams

type Streams struct {
	Out *bytes.Buffer
}

Jump to

Keyboard shortcuts

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