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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 Exporter

type Exporter struct {
	mock.Mock
}

Exporter is an autogenerated mock type for the Exporter type

func NewExporter

func NewExporter(t mockConstructorTestingTNewExporter) *Exporter

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

func (*Exporter) ExportSimulatorDiagnostics

func (_m *Exporter) ExportSimulatorDiagnostics(deployDir string, pth string, name string) error

ExportSimulatorDiagnostics provides a mock function with given fields: deployDir, pth, name

func (*Exporter) ExportTestRunResult

func (_m *Exporter) ExportTestRunResult(failed bool)

ExportTestRunResult provides a mock function with given fields: failed

func (*Exporter) ExportXCResultBundle

func (_m *Exporter) ExportXCResultBundle(deployDir string, xcResultPath string, scheme string)

ExportXCResultBundle provides a mock function with given fields: deployDir, xcResultPath, scheme

func (*Exporter) ExportXcodebuildBuildLog

func (_m *Exporter) ExportXcodebuildBuildLog(deployDir string, xcodebuildBuildLog string) error

ExportXcodebuildBuildLog provides a mock function with given fields: deployDir, xcodebuildBuildLog

func (*Exporter) ExportXcodebuildTestLog

func (_m *Exporter) ExportXcodebuildTestLog(deployDir string, xcodebuildTestLog string) error

ExportXcodebuildTestLog provides a mock function with given fields: deployDir, xcodebuildTestLog

type PathModifier

type PathModifier struct {
	mock.Mock
}

PathModifier is an autogenerated mock type for the PathModifier type

func NewPathModifier

func NewPathModifier(t mockConstructorTestingTNewPathModifier) *PathModifier

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

func (*PathModifier) AbsPath

func (_m *PathModifier) AbsPath(pth string) (string, error)

AbsPath provides a mock function with given fields: pth

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 NewRepository

func NewRepository(t mockConstructorTestingTNewRepository) *Repository

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

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 SimulatorManager

type SimulatorManager struct {
	mock.Mock
}

SimulatorManager is an autogenerated mock type for the Manager type

func NewSimulatorManager

func NewSimulatorManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *SimulatorManager

NewSimulatorManager creates a new instance of SimulatorManager. 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 (*SimulatorManager) Boot

func (_m *SimulatorManager) Boot(device destination.Device) error

Boot provides a mock function with given fields: device

func (*SimulatorManager) CollectDiagnostics

func (_m *SimulatorManager) CollectDiagnostics() (string, error)

CollectDiagnostics provides a mock function with given fields:

func (*SimulatorManager) EnableVerboseLog

func (_m *SimulatorManager) EnableVerboseLog(id string) error

EnableVerboseLog provides a mock function with given fields: id

func (*SimulatorManager) Erase

func (_m *SimulatorManager) Erase(id string) error

Erase provides a mock function with given fields: id

func (*SimulatorManager) LaunchWithGUI

func (_m *SimulatorManager) LaunchWithGUI(simulatorID string) error

LaunchWithGUI provides a mock function with given fields: simulatorID

func (*SimulatorManager) ResetLaunchServices

func (_m *SimulatorManager) ResetLaunchServices() error

ResetLaunchServices provides a mock function with given fields:

func (*SimulatorManager) Shutdown

func (_m *SimulatorManager) Shutdown(id string) error

Shutdown provides a mock function with given fields: id

func (*SimulatorManager) WaitForBootFinished

func (_m *SimulatorManager) WaitForBootFinished(id string, timeout time.Duration) error

WaitForBootFinished provides a mock function with given fields: id, timeout

type SwiftPackageCache

type SwiftPackageCache struct {
	mock.Mock
}

SwiftPackageCache is an autogenerated mock type for the SwiftPackageCache type

func NewSwiftPackageCache

func NewSwiftPackageCache(t mockConstructorTestingTNewSwiftPackageCache) *SwiftPackageCache

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

func (*SwiftPackageCache) CollectSwiftPackages

func (_m *SwiftPackageCache) CollectSwiftPackages(projectPath string) error

CollectSwiftPackages provides a mock function with given fields: projectPath

func (*SwiftPackageCache) SwiftPackagesPath

func (_m *SwiftPackageCache) SwiftPackagesPath(projectPth string) (string, error)

SwiftPackagesPath provides a mock function with given fields: projectPth

type XcodeVersionProvider

type XcodeVersionProvider struct {
	mock.Mock
}

XcodeVersionProvider is an autogenerated mock type for the Reader type

func NewXcodeVersionProvider

func NewXcodeVersionProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *XcodeVersionProvider

NewXcodeVersionProvider creates a new instance of XcodeVersionProvider. 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 (*XcodeVersionProvider) GetVersion

func (_m *XcodeVersionProvider) GetVersion() (xcodeversion.Version, error)

GetVersion provides a mock function with given fields:

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) GetXcodeCommadRunner

func (_m *Xcodebuild) GetXcodeCommadRunner() xcodecommand.Runner

GetXcodeCommadRunner provides a mock function with given fields:

func (*Xcodebuild) RunTest

func (_m *Xcodebuild) RunTest(params xcodebuild.TestRunParams) (string, int, error)

RunTest provides a mock function with given fields: params

func (*Xcodebuild) SetXcodeCommandRunner

func (_m *Xcodebuild) SetXcodeCommandRunner(runner xcodecommand.Runner)

SetXcodeCommandRunner provides a mock function with given fields: runner

Jump to

Keyboard shortcuts

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