clitest

package
v0.0.0-...-0f74808 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerClient

func DockerClient(t *testing.T, ctx context.Context) *dockerfake.MockClient

nolint

func Execer

func Execer(ctx context.Context) *xunixfake.FakeExec

func FS

func FS(ctx context.Context) *xunixfake.MemFS

func FakeCPUGroups

func FakeCPUGroups(t *testing.T, fs afero.Fs, quota, period string)

func FakeSysboxManagerReady

func FakeSysboxManagerReady(t *testing.T, fs afero.Fs)
func GetNetLink(t *testing.T) netlink.Link

func Mounter

func Mounter(ctx context.Context) *mount.FakeMounter

func New

func New(t *testing.T, cmd string, args ...string) (context.Context, *cobra.Command)

New returns an instantiated Command as well as a context populated with mocked values for the command. All mock/fakes have been minimally configured to induce a successful call to the command.

func NewFakeDockerClient

func NewFakeDockerClient() dockerutil.DockerClient

func NewFakeExecer

func NewFakeExecer() *xunixfake.FakeExec

func NewMemFS

func NewMemFS() *xunixfake.MemFS

Types

This section is empty.

Jump to

Keyboard shortcuts

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