mocks

package
v0.0.0-...-497f111 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	mock.Mock
}

Command is an autogenerated mock type for the Command type

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 CommandFactory

type CommandFactory struct {
	mock.Mock
}

CommandFactory is an autogenerated mock type for the Factory type

func (*CommandFactory) Create

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

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

type XcodeCommandRunner

type XcodeCommandRunner struct {
	mock.Mock
}

XcodeCommandRunner is an autogenerated mock type for the Runner type

func NewXcodeCommandRunner

func NewXcodeCommandRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *XcodeCommandRunner

NewXcodeCommandRunner creates a new instance of XcodeCommandRunner. 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 (*XcodeCommandRunner) CheckInstall

func (_m *XcodeCommandRunner) CheckInstall() (*version.Version, error)

CheckInstall provides a mock function with given fields:

func (*XcodeCommandRunner) Run

func (_m *XcodeCommandRunner) Run(workDir string, xcodebuildOpts []string, logFormatterOpts []string) (xcodecommand.Output, error)

Run provides a mock function with given fields: workDir, xcodebuildOpts, logFormatterOpts

Jump to

Keyboard shortcuts

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