mock

package
v0.0.0-...-efb87f3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotImplemented will be returned for methods not implemented.
	ErrNotImplemented = errors.New("not implemented")
)

Functions

This section is empty.

Types

type Mock

type Mock struct{}

Mock is a transport for testing agents.

func (*Mock) Dial

func (l *Mock) Dial(network, address string) (net.Conn, error)

Dial should mimic net.Dial.

func (*Mock) Exec

func (l *Mock) Exec(cmd string, arguments ...string) (io.Reader, io.Reader, error)

Exec should execute a binary on the host.

func (*Mock) ReadFile

func (l *Mock) ReadFile(filename string) ([]byte, error)

ReadFile should mimic ioutil.ReadFile.

Jump to

Keyboard shortcuts

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