utiltest

package
v0.0.0-...-71cdb78 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCIDR

type MockCIDR struct {
	CIDR string
}

MockCIDR is a mock net.Addr

func (*MockCIDR) Network

func (v *MockCIDR) Network() string

Network implements net.Addr

func (*MockCIDR) String

func (v *MockCIDR) String() string

String implements net.Addr

type MockRunner

type MockRunner struct {
	CalledWithCtx     context.Context
	CalledWithCommand []string
	Err               error
	Log               bool
}

MockRunner is a mock implementation of CommandRunner context.

func (*MockRunner) Run

func (m *MockRunner) Run(ctx context.Context, command ...string) error

Run is a mock implementation of CommandRunner.

Jump to

Keyboard shortcuts

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