mocks

package
v0.0.0-...-f6435d1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 3 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 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 DeviceFinder

type DeviceFinder struct {
	mock.Mock
}

DeviceFinder is an autogenerated mock type for the DeviceFinder type

func NewDeviceFinder

func NewDeviceFinder(t mockConstructorTestingTNewDeviceFinder) *DeviceFinder

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

func (*DeviceFinder) FindDevice

func (_m *DeviceFinder) FindDevice(_a0 destination.Simulator) (destination.Device, error)

FindDevice provides a mock function with given fields: _a0

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. 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 (*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 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 OutputExporter

type OutputExporter struct {
	mock.Mock
}

OutputExporter is an autogenerated mock type for the OutputExporter type

func (*OutputExporter) CopyAndSaveTestData

func (_m *OutputExporter) CopyAndSaveTestData(sourceTestOutputDir string, targetAddonPath string, targetAddonBundleName string) error

CopyAndSaveTestData provides a mock function with given fields: sourceTestOutputDir, targetAddonPath, targetAddonBundleName

func (*OutputExporter) ZipAndExportOutput

func (_m *OutputExporter) ZipAndExportOutput(artifact string, destinationZipPth string, envKey string) error

ZipAndExportOutput provides a mock function with given fields: artifact, destinationZipPth, envKey

type PathProvider

type PathProvider struct {
	mock.Mock
}

PathProvider is an autogenerated mock type for the PathProvider type

func NewPathProvider

func NewPathProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

type Xcodebuild

type Xcodebuild struct {
	mock.Mock
}

Xcodebuild is an autogenerated mock type for the Xcodebuild type

func NewXcodebuild

func NewXcodebuild(t interface {
	mock.TestingT
	Cleanup(func())
}) *Xcodebuild

NewXcodebuild creates a new instance of Xcodebuild. 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 (*Xcodebuild) TestWithoutBuilding

func (_m *Xcodebuild) TestWithoutBuilding(xctestrun string, onlyTesting []string, skipTesting []string, _a3 destination.Device, testRepetitionMode string, maximumTestRepetitions int, relaunchTestsForEachRepetition bool, options ...string) (string, error)

TestWithoutBuilding provides a mock function with given fields: xctestrun, onlyTesting, skipTesting, _a3, testRepetitionMode, maximumTestRepetitions, relaunchTestsForEachRepetition, options

Jump to

Keyboard shortcuts

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