mocks

package
v0.0.0-...-78dae4d Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	mock.Mock
}

Agent is an autogenerated mock type for the Agent type

func (*Agent) AddKey

func (_m *Agent) AddKey(sshKeyPth string, socket string) error

AddKey provides a mock function with given fields: sshKeyPth, socket

func (*Agent) DeleteKeys

func (_m *Agent) DeleteKeys() error

DeleteKeys provides a mock function with given fields:

func (*Agent) Kill

func (_m *Agent) Kill() (int, error)

Kill provides a mock function with given fields:

func (*Agent) ListKeys

func (_m *Agent) ListKeys() (int, error)

ListKeys provides a mock function with given fields:

func (*Agent) Start

func (_m *Agent) Start() (string, error)

Start provides a mock function with given fields:

type Command

type Command struct {
	mock.Mock
}

Command is an autogenerated mock type for the Command type

func NewCommand

func NewCommand(t interface {
	mock.TestingT
	Cleanup(func())
}) *Command

NewCommand creates a new instance of Command. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Command) PrintableCommandArgs

func (_m *Command) PrintableCommandArgs() string

PrintableCommandArgs provides a mock function with given fields:

func (*Command) Run

func (_m *Command) Run() error

Run provides a mock function with given fields:

func (*Command) RunAndReturnExitCode

func (_m *Command) RunAndReturnExitCode() (int, error)

RunAndReturnExitCode provides a mock function with given fields:

func (*Command) RunAndReturnTrimmedCombinedOutput

func (_m *Command) RunAndReturnTrimmedCombinedOutput() (string, error)

RunAndReturnTrimmedCombinedOutput provides a mock function with given fields:

func (*Command) RunAndReturnTrimmedOutput

func (_m *Command) RunAndReturnTrimmedOutput() (string, error)

RunAndReturnTrimmedOutput provides a mock function with given fields:

func (*Command) Start

func (_m *Command) Start() error

Start provides a mock function with given fields:

func (*Command) Wait

func (_m *Command) Wait() error

Wait provides a mock function with given fields:

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func (*Factory) Create

func (_m *Factory) Create(name string, args []string, opts *command.Opts) command.Command

Create provides a mock function with given fields: name, args, opts

type FileManager

type FileManager struct {
	mock.Mock
}

FileManager is an autogenerated mock type for the FileManager type

func NewFileManager

func NewFileManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileManager

NewFileManager creates a new instance of FileManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FileManager) Open

func (_m *FileManager) Open(path string) (*os.File, error)

Open provides a mock function with given fields: path

func (*FileManager) OpenReaderIfExists

func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)

OpenReaderIfExists provides a mock function with given fields: path

func (*FileManager) ReadDirEntryNames

func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)

ReadDirEntryNames provides a mock function with given fields: path

func (*FileManager) Remove

func (_m *FileManager) Remove(path string) error

Remove provides a mock function with given fields: path

func (*FileManager) RemoveAll

func (_m *FileManager) RemoveAll(path string) error

RemoveAll provides a mock function with given fields: path

func (*FileManager) Write

func (_m *FileManager) Write(path string, value string, perm fs.FileMode) error

Write provides a mock function with given fields: path, value, perm

func (*FileManager) WriteBytes

func (_m *FileManager) WriteBytes(path string, value []byte) error

WriteBytes provides a mock function with given fields: path, value

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func (*Logger) Debugf

func (_m *Logger) Debugf(format string, v ...interface{})

Debugf provides a mock function with given fields: format, v

func (*Logger) Donef

func (_m *Logger) Donef(format string, v ...interface{})

Donef provides a mock function with given fields: format, v

func (*Logger) EnableDebugLog

func (_m *Logger) EnableDebugLog(enable bool)

EnableDebugLog provides a mock function with given fields: enable

func (*Logger) Errorf

func (_m *Logger) Errorf(format string, v ...interface{})

Errorf provides a mock function with given fields: format, v

func (*Logger) Infof

func (_m *Logger) Infof(format string, v ...interface{})

Infof provides a mock function with given fields: format, v

func (*Logger) Printf

func (_m *Logger) Printf(format string, v ...interface{})

Printf provides a mock function with given fields: format, v

func (*Logger) Println

func (_m *Logger) Println()

Println provides a mock function with given fields:

func (*Logger) TDebugf

func (_m *Logger) TDebugf(format string, v ...interface{})

TDebugf provides a mock function with given fields: format, v

func (*Logger) TDonef

func (_m *Logger) TDonef(format string, v ...interface{})

TDonef provides a mock function with given fields: format, v

func (*Logger) TErrorf

func (_m *Logger) TErrorf(format string, v ...interface{})

TErrorf provides a mock function with given fields: format, v

func (*Logger) TInfof

func (_m *Logger) TInfof(format string, v ...interface{})

TInfof provides a mock function with given fields: format, v

func (*Logger) TPrintf

func (_m *Logger) TPrintf(format string, v ...interface{})

TPrintf provides a mock function with given fields: format, v

func (*Logger) TWarnf

func (_m *Logger) TWarnf(format string, v ...interface{})

TWarnf provides a mock function with given fields: format, v

func (*Logger) Warnf

func (_m *Logger) Warnf(format string, v ...interface{})

Warnf provides a mock function with given fields: format, v

type PathProvider

type PathProvider struct {
	mock.Mock
}

PathProvider is an autogenerated mock type for the PathProvider type

func NewPathProvider

func NewPathProvider(t mockConstructorTestingTNewPathProvider) *PathProvider

NewPathProvider creates a new instance of PathProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PathProvider) CreateTempDir

func (_m *PathProvider) CreateTempDir(prefix string) (string, error)

CreateTempDir provides a mock function with given fields: prefix

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Get

func (_m *Repository) Get(key string) string

Get provides a mock function with given fields: key

func (*Repository) List

func (_m *Repository) List() []string

List provides a mock function with given fields:

func (*Repository) Set

func (_m *Repository) Set(key string, value string) error

Set provides a mock function with given fields: key, value

func (*Repository) Unset

func (_m *Repository) Unset(key string) error

Unset provides a mock function with given fields: key

Jump to

Keyboard shortcuts

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