mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubInterface

type HubInterface struct {
	mock.Mock
}

HubInterface is an autogenerated mock type for the HubInterface type

func NewHubInterface

func NewHubInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *HubInterface

NewHubInterface creates a new instance of HubInterface. 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 (*HubInterface) CancelPairingWithSKI

func (_m *HubInterface) CancelPairingWithSKI(ski string)

CancelPairingWithSKI provides a mock function with given fields: ski

func (*HubInterface) DisconnectSKI

func (_m *HubInterface) DisconnectSKI(ski string, reason string)

DisconnectSKI provides a mock function with given fields: ski, reason

func (*HubInterface) EXPECT

func (_m *HubInterface) EXPECT() *HubInterface_Expecter

func (*HubInterface) PairingDetailForSki

func (_m *HubInterface) PairingDetailForSki(ski string) *api.ConnectionStateDetail

PairingDetailForSki provides a mock function with given fields: ski

func (*HubInterface) RegisterRemoteSKI

func (_m *HubInterface) RegisterRemoteSKI(ski string)

RegisterRemoteSKI provides a mock function with given fields: ski

func (*HubInterface) ServiceForSKI

func (_m *HubInterface) ServiceForSKI(ski string) *api.ServiceDetails

ServiceForSKI provides a mock function with given fields: ski

func (*HubInterface) SetAutoAccept

func (_m *HubInterface) SetAutoAccept(_a0 bool)

SetAutoAccept provides a mock function with given fields: _a0

func (*HubInterface) Shutdown

func (_m *HubInterface) Shutdown()

Shutdown provides a mock function with given fields:

func (*HubInterface) Start

func (_m *HubInterface) Start()

Start provides a mock function with given fields:

func (*HubInterface) UnregisterRemoteSKI

func (_m *HubInterface) UnregisterRemoteSKI(ski string)

UnregisterRemoteSKI provides a mock function with given fields: ski

type HubInterface_CancelPairingWithSKI_Call

type HubInterface_CancelPairingWithSKI_Call struct {
	*mock.Call
}

HubInterface_CancelPairingWithSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelPairingWithSKI'

func (*HubInterface_CancelPairingWithSKI_Call) Return

func (*HubInterface_CancelPairingWithSKI_Call) Run

func (*HubInterface_CancelPairingWithSKI_Call) RunAndReturn

type HubInterface_DisconnectSKI_Call

type HubInterface_DisconnectSKI_Call struct {
	*mock.Call
}

HubInterface_DisconnectSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisconnectSKI'

func (*HubInterface_DisconnectSKI_Call) Return

func (*HubInterface_DisconnectSKI_Call) Run

func (*HubInterface_DisconnectSKI_Call) RunAndReturn

type HubInterface_Expecter

type HubInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*HubInterface_Expecter) CancelPairingWithSKI

func (_e *HubInterface_Expecter) CancelPairingWithSKI(ski interface{}) *HubInterface_CancelPairingWithSKI_Call

CancelPairingWithSKI is a helper method to define mock.On call

  • ski string

func (*HubInterface_Expecter) DisconnectSKI

func (_e *HubInterface_Expecter) DisconnectSKI(ski interface{}, reason interface{}) *HubInterface_DisconnectSKI_Call

DisconnectSKI is a helper method to define mock.On call

  • ski string
  • reason string

func (*HubInterface_Expecter) PairingDetailForSki

func (_e *HubInterface_Expecter) PairingDetailForSki(ski interface{}) *HubInterface_PairingDetailForSki_Call

PairingDetailForSki is a helper method to define mock.On call

  • ski string

func (*HubInterface_Expecter) RegisterRemoteSKI

func (_e *HubInterface_Expecter) RegisterRemoteSKI(ski interface{}) *HubInterface_RegisterRemoteSKI_Call

RegisterRemoteSKI is a helper method to define mock.On call

  • ski string

func (*HubInterface_Expecter) ServiceForSKI

func (_e *HubInterface_Expecter) ServiceForSKI(ski interface{}) *HubInterface_ServiceForSKI_Call

ServiceForSKI is a helper method to define mock.On call

  • ski string

func (*HubInterface_Expecter) SetAutoAccept

func (_e *HubInterface_Expecter) SetAutoAccept(_a0 interface{}) *HubInterface_SetAutoAccept_Call

SetAutoAccept is a helper method to define mock.On call

  • _a0 bool

func (*HubInterface_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*HubInterface_Expecter) Start

Start is a helper method to define mock.On call

func (*HubInterface_Expecter) UnregisterRemoteSKI

func (_e *HubInterface_Expecter) UnregisterRemoteSKI(ski interface{}) *HubInterface_UnregisterRemoteSKI_Call

UnregisterRemoteSKI is a helper method to define mock.On call

  • ski string

type HubInterface_PairingDetailForSki_Call

type HubInterface_PairingDetailForSki_Call struct {
	*mock.Call
}

HubInterface_PairingDetailForSki_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PairingDetailForSki'

func (*HubInterface_PairingDetailForSki_Call) Return

func (*HubInterface_PairingDetailForSki_Call) Run

func (*HubInterface_PairingDetailForSki_Call) RunAndReturn

type HubInterface_RegisterRemoteSKI_Call

type HubInterface_RegisterRemoteSKI_Call struct {
	*mock.Call
}

HubInterface_RegisterRemoteSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterRemoteSKI'

func (*HubInterface_RegisterRemoteSKI_Call) Return

func (*HubInterface_RegisterRemoteSKI_Call) Run

func (*HubInterface_RegisterRemoteSKI_Call) RunAndReturn

type HubInterface_ServiceForSKI_Call

type HubInterface_ServiceForSKI_Call struct {
	*mock.Call
}

HubInterface_ServiceForSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServiceForSKI'

func (*HubInterface_ServiceForSKI_Call) Return

func (*HubInterface_ServiceForSKI_Call) Run

func (*HubInterface_ServiceForSKI_Call) RunAndReturn

type HubInterface_SetAutoAccept_Call

type HubInterface_SetAutoAccept_Call struct {
	*mock.Call
}

HubInterface_SetAutoAccept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAutoAccept'

func (*HubInterface_SetAutoAccept_Call) Return

func (*HubInterface_SetAutoAccept_Call) Run

func (*HubInterface_SetAutoAccept_Call) RunAndReturn

type HubInterface_Shutdown_Call

type HubInterface_Shutdown_Call struct {
	*mock.Call
}

HubInterface_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*HubInterface_Shutdown_Call) Return

func (*HubInterface_Shutdown_Call) Run

func (*HubInterface_Shutdown_Call) RunAndReturn

func (_c *HubInterface_Shutdown_Call) RunAndReturn(run func()) *HubInterface_Shutdown_Call

type HubInterface_Start_Call

type HubInterface_Start_Call struct {
	*mock.Call
}

HubInterface_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*HubInterface_Start_Call) Return

func (*HubInterface_Start_Call) Run

func (_c *HubInterface_Start_Call) Run(run func()) *HubInterface_Start_Call

func (*HubInterface_Start_Call) RunAndReturn

func (_c *HubInterface_Start_Call) RunAndReturn(run func()) *HubInterface_Start_Call

type HubInterface_UnregisterRemoteSKI_Call

type HubInterface_UnregisterRemoteSKI_Call struct {
	*mock.Call
}

HubInterface_UnregisterRemoteSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterRemoteSKI'

func (*HubInterface_UnregisterRemoteSKI_Call) Return

func (*HubInterface_UnregisterRemoteSKI_Call) Run

func (*HubInterface_UnregisterRemoteSKI_Call) RunAndReturn

type HubReaderInterface

type HubReaderInterface struct {
	mock.Mock
}

HubReaderInterface is an autogenerated mock type for the HubReaderInterface type

func NewHubReaderInterface

func NewHubReaderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *HubReaderInterface

NewHubReaderInterface creates a new instance of HubReaderInterface. 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 (*HubReaderInterface) AllowWaitingForTrust

func (_m *HubReaderInterface) AllowWaitingForTrust(ski string) bool

AllowWaitingForTrust provides a mock function with given fields: ski

func (*HubReaderInterface) EXPECT

func (*HubReaderInterface) RemoteSKIConnected

func (_m *HubReaderInterface) RemoteSKIConnected(ski string)

RemoteSKIConnected provides a mock function with given fields: ski

func (*HubReaderInterface) RemoteSKIDisconnected

func (_m *HubReaderInterface) RemoteSKIDisconnected(ski string)

RemoteSKIDisconnected provides a mock function with given fields: ski

func (*HubReaderInterface) ServicePairingDetailUpdate

func (_m *HubReaderInterface) ServicePairingDetailUpdate(ski string, detail *api.ConnectionStateDetail)

ServicePairingDetailUpdate provides a mock function with given fields: ski, detail

func (*HubReaderInterface) ServiceShipIDUpdate

func (_m *HubReaderInterface) ServiceShipIDUpdate(ski string, shipdID string)

ServiceShipIDUpdate provides a mock function with given fields: ski, shipdID

func (*HubReaderInterface) SetupRemoteDevice

SetupRemoteDevice provides a mock function with given fields: ski, writeI

func (*HubReaderInterface) VisibleRemoteServicesUpdated

func (_m *HubReaderInterface) VisibleRemoteServicesUpdated(entries []api.RemoteService)

VisibleRemoteServicesUpdated provides a mock function with given fields: entries

type HubReaderInterface_AllowWaitingForTrust_Call

type HubReaderInterface_AllowWaitingForTrust_Call struct {
	*mock.Call
}

HubReaderInterface_AllowWaitingForTrust_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowWaitingForTrust'

func (*HubReaderInterface_AllowWaitingForTrust_Call) Return

func (*HubReaderInterface_AllowWaitingForTrust_Call) Run

func (*HubReaderInterface_AllowWaitingForTrust_Call) RunAndReturn

type HubReaderInterface_Expecter

type HubReaderInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*HubReaderInterface_Expecter) AllowWaitingForTrust

func (_e *HubReaderInterface_Expecter) AllowWaitingForTrust(ski interface{}) *HubReaderInterface_AllowWaitingForTrust_Call

AllowWaitingForTrust is a helper method to define mock.On call

  • ski string

func (*HubReaderInterface_Expecter) RemoteSKIConnected

func (_e *HubReaderInterface_Expecter) RemoteSKIConnected(ski interface{}) *HubReaderInterface_RemoteSKIConnected_Call

RemoteSKIConnected is a helper method to define mock.On call

  • ski string

func (*HubReaderInterface_Expecter) RemoteSKIDisconnected

func (_e *HubReaderInterface_Expecter) RemoteSKIDisconnected(ski interface{}) *HubReaderInterface_RemoteSKIDisconnected_Call

RemoteSKIDisconnected is a helper method to define mock.On call

  • ski string

func (*HubReaderInterface_Expecter) ServicePairingDetailUpdate

func (_e *HubReaderInterface_Expecter) ServicePairingDetailUpdate(ski interface{}, detail interface{}) *HubReaderInterface_ServicePairingDetailUpdate_Call

ServicePairingDetailUpdate is a helper method to define mock.On call

  • ski string
  • detail *api.ConnectionStateDetail

func (*HubReaderInterface_Expecter) ServiceShipIDUpdate

func (_e *HubReaderInterface_Expecter) ServiceShipIDUpdate(ski interface{}, shipdID interface{}) *HubReaderInterface_ServiceShipIDUpdate_Call

ServiceShipIDUpdate is a helper method to define mock.On call

  • ski string
  • shipdID string

func (*HubReaderInterface_Expecter) SetupRemoteDevice

func (_e *HubReaderInterface_Expecter) SetupRemoteDevice(ski interface{}, writeI interface{}) *HubReaderInterface_SetupRemoteDevice_Call

SetupRemoteDevice is a helper method to define mock.On call

  • ski string
  • writeI api.ShipConnectionDataWriterInterface

func (*HubReaderInterface_Expecter) VisibleRemoteServicesUpdated

func (_e *HubReaderInterface_Expecter) VisibleRemoteServicesUpdated(entries interface{}) *HubReaderInterface_VisibleRemoteServicesUpdated_Call

VisibleRemoteServicesUpdated is a helper method to define mock.On call

  • entries []api.RemoteService

type HubReaderInterface_RemoteSKIConnected_Call

type HubReaderInterface_RemoteSKIConnected_Call struct {
	*mock.Call
}

HubReaderInterface_RemoteSKIConnected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoteSKIConnected'

func (*HubReaderInterface_RemoteSKIConnected_Call) Return

func (*HubReaderInterface_RemoteSKIConnected_Call) Run

func (*HubReaderInterface_RemoteSKIConnected_Call) RunAndReturn

type HubReaderInterface_RemoteSKIDisconnected_Call

type HubReaderInterface_RemoteSKIDisconnected_Call struct {
	*mock.Call
}

HubReaderInterface_RemoteSKIDisconnected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoteSKIDisconnected'

func (*HubReaderInterface_RemoteSKIDisconnected_Call) Return

func (*HubReaderInterface_RemoteSKIDisconnected_Call) Run

func (*HubReaderInterface_RemoteSKIDisconnected_Call) RunAndReturn

type HubReaderInterface_ServicePairingDetailUpdate_Call

type HubReaderInterface_ServicePairingDetailUpdate_Call struct {
	*mock.Call
}

HubReaderInterface_ServicePairingDetailUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServicePairingDetailUpdate'

func (*HubReaderInterface_ServicePairingDetailUpdate_Call) Return

func (*HubReaderInterface_ServicePairingDetailUpdate_Call) Run

func (*HubReaderInterface_ServicePairingDetailUpdate_Call) RunAndReturn

type HubReaderInterface_ServiceShipIDUpdate_Call

type HubReaderInterface_ServiceShipIDUpdate_Call struct {
	*mock.Call
}

HubReaderInterface_ServiceShipIDUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServiceShipIDUpdate'

func (*HubReaderInterface_ServiceShipIDUpdate_Call) Return

func (*HubReaderInterface_ServiceShipIDUpdate_Call) Run

func (*HubReaderInterface_ServiceShipIDUpdate_Call) RunAndReturn

type HubReaderInterface_SetupRemoteDevice_Call

type HubReaderInterface_SetupRemoteDevice_Call struct {
	*mock.Call
}

HubReaderInterface_SetupRemoteDevice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupRemoteDevice'

func (*HubReaderInterface_SetupRemoteDevice_Call) Run

type HubReaderInterface_VisibleRemoteServicesUpdated_Call

type HubReaderInterface_VisibleRemoteServicesUpdated_Call struct {
	*mock.Call
}

HubReaderInterface_VisibleRemoteServicesUpdated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VisibleRemoteServicesUpdated'

func (*HubReaderInterface_VisibleRemoteServicesUpdated_Call) Return

func (*HubReaderInterface_VisibleRemoteServicesUpdated_Call) Run

func (*HubReaderInterface_VisibleRemoteServicesUpdated_Call) RunAndReturn

type LoggingInterface

type LoggingInterface struct {
	mock.Mock
}

LoggingInterface is an autogenerated mock type for the LoggingInterface type

func NewLoggingInterface

func NewLoggingInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *LoggingInterface

NewLoggingInterface creates a new instance of LoggingInterface. 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 (*LoggingInterface) Debug

func (_m *LoggingInterface) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*LoggingInterface) Debugf

func (_m *LoggingInterface) Debugf(format string, args ...interface{})

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

func (*LoggingInterface) EXPECT

func (*LoggingInterface) Error

func (_m *LoggingInterface) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*LoggingInterface) Errorf

func (_m *LoggingInterface) Errorf(format string, args ...interface{})

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

func (*LoggingInterface) Info

func (_m *LoggingInterface) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*LoggingInterface) Infof

func (_m *LoggingInterface) Infof(format string, args ...interface{})

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

func (*LoggingInterface) Trace

func (_m *LoggingInterface) Trace(args ...interface{})

Trace provides a mock function with given fields: args

func (*LoggingInterface) Tracef

func (_m *LoggingInterface) Tracef(format string, args ...interface{})

Tracef provides a mock function with given fields: format, args

type LoggingInterface_Debug_Call

type LoggingInterface_Debug_Call struct {
	*mock.Call
}

LoggingInterface_Debug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debug'

func (*LoggingInterface_Debug_Call) Return

func (*LoggingInterface_Debug_Call) Run

func (_c *LoggingInterface_Debug_Call) Run(run func(args ...interface{})) *LoggingInterface_Debug_Call

func (*LoggingInterface_Debug_Call) RunAndReturn

func (_c *LoggingInterface_Debug_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Debug_Call

type LoggingInterface_Debugf_Call

type LoggingInterface_Debugf_Call struct {
	*mock.Call
}

LoggingInterface_Debugf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debugf'

func (*LoggingInterface_Debugf_Call) Return

func (*LoggingInterface_Debugf_Call) Run

func (_c *LoggingInterface_Debugf_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Debugf_Call

func (*LoggingInterface_Debugf_Call) RunAndReturn

func (_c *LoggingInterface_Debugf_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Debugf_Call

type LoggingInterface_Error_Call

type LoggingInterface_Error_Call struct {
	*mock.Call
}

LoggingInterface_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'

func (*LoggingInterface_Error_Call) Return

func (*LoggingInterface_Error_Call) Run

func (_c *LoggingInterface_Error_Call) Run(run func(args ...interface{})) *LoggingInterface_Error_Call

func (*LoggingInterface_Error_Call) RunAndReturn

func (_c *LoggingInterface_Error_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Error_Call

type LoggingInterface_Errorf_Call

type LoggingInterface_Errorf_Call struct {
	*mock.Call
}

LoggingInterface_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'

func (*LoggingInterface_Errorf_Call) Return

func (*LoggingInterface_Errorf_Call) Run

func (_c *LoggingInterface_Errorf_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Errorf_Call

func (*LoggingInterface_Errorf_Call) RunAndReturn

func (_c *LoggingInterface_Errorf_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Errorf_Call

type LoggingInterface_Expecter

type LoggingInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*LoggingInterface_Expecter) Debug

func (_e *LoggingInterface_Expecter) Debug(args ...interface{}) *LoggingInterface_Debug_Call

Debug is a helper method to define mock.On call

  • args ...interface{}

func (*LoggingInterface_Expecter) Debugf

func (_e *LoggingInterface_Expecter) Debugf(format interface{}, args ...interface{}) *LoggingInterface_Debugf_Call

Debugf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*LoggingInterface_Expecter) Error

func (_e *LoggingInterface_Expecter) Error(args ...interface{}) *LoggingInterface_Error_Call

Error is a helper method to define mock.On call

  • args ...interface{}

func (*LoggingInterface_Expecter) Errorf

func (_e *LoggingInterface_Expecter) Errorf(format interface{}, args ...interface{}) *LoggingInterface_Errorf_Call

Errorf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*LoggingInterface_Expecter) Info

func (_e *LoggingInterface_Expecter) Info(args ...interface{}) *LoggingInterface_Info_Call

Info is a helper method to define mock.On call

  • args ...interface{}

func (*LoggingInterface_Expecter) Infof

func (_e *LoggingInterface_Expecter) Infof(format interface{}, args ...interface{}) *LoggingInterface_Infof_Call

Infof is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*LoggingInterface_Expecter) Trace

func (_e *LoggingInterface_Expecter) Trace(args ...interface{}) *LoggingInterface_Trace_Call

Trace is a helper method to define mock.On call

  • args ...interface{}

func (*LoggingInterface_Expecter) Tracef

func (_e *LoggingInterface_Expecter) Tracef(format interface{}, args ...interface{}) *LoggingInterface_Tracef_Call

Tracef is a helper method to define mock.On call

  • format string
  • args ...interface{}

type LoggingInterface_Info_Call

type LoggingInterface_Info_Call struct {
	*mock.Call
}

LoggingInterface_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'

func (*LoggingInterface_Info_Call) Return

func (*LoggingInterface_Info_Call) Run

func (_c *LoggingInterface_Info_Call) Run(run func(args ...interface{})) *LoggingInterface_Info_Call

func (*LoggingInterface_Info_Call) RunAndReturn

func (_c *LoggingInterface_Info_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Info_Call

type LoggingInterface_Infof_Call

type LoggingInterface_Infof_Call struct {
	*mock.Call
}

LoggingInterface_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'

func (*LoggingInterface_Infof_Call) Return

func (*LoggingInterface_Infof_Call) Run

func (_c *LoggingInterface_Infof_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Infof_Call

func (*LoggingInterface_Infof_Call) RunAndReturn

func (_c *LoggingInterface_Infof_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Infof_Call

type LoggingInterface_Trace_Call

type LoggingInterface_Trace_Call struct {
	*mock.Call
}

LoggingInterface_Trace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Trace'

func (*LoggingInterface_Trace_Call) Return

func (*LoggingInterface_Trace_Call) Run

func (_c *LoggingInterface_Trace_Call) Run(run func(args ...interface{})) *LoggingInterface_Trace_Call

func (*LoggingInterface_Trace_Call) RunAndReturn

func (_c *LoggingInterface_Trace_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Trace_Call

type LoggingInterface_Tracef_Call

type LoggingInterface_Tracef_Call struct {
	*mock.Call
}

LoggingInterface_Tracef_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tracef'

func (*LoggingInterface_Tracef_Call) Return

func (*LoggingInterface_Tracef_Call) Run

func (_c *LoggingInterface_Tracef_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Tracef_Call

func (*LoggingInterface_Tracef_Call) RunAndReturn

func (_c *LoggingInterface_Tracef_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Tracef_Call

type MdnsInterface

type MdnsInterface struct {
	mock.Mock
}

MdnsInterface is an autogenerated mock type for the MdnsInterface type

func NewMdnsInterface

func NewMdnsInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MdnsInterface

NewMdnsInterface creates a new instance of MdnsInterface. 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 (*MdnsInterface) AnnounceMdnsEntry

func (_m *MdnsInterface) AnnounceMdnsEntry() error

AnnounceMdnsEntry provides a mock function with given fields:

func (*MdnsInterface) EXPECT

func (_m *MdnsInterface) EXPECT() *MdnsInterface_Expecter

func (*MdnsInterface) RequestMdnsEntries

func (_m *MdnsInterface) RequestMdnsEntries()

RequestMdnsEntries provides a mock function with given fields:

func (*MdnsInterface) SetAutoAccept

func (_m *MdnsInterface) SetAutoAccept(_a0 bool)

SetAutoAccept provides a mock function with given fields: _a0

func (*MdnsInterface) Shutdown

func (_m *MdnsInterface) Shutdown()

Shutdown provides a mock function with given fields:

func (*MdnsInterface) Start

Start provides a mock function with given fields: cb

func (*MdnsInterface) UnannounceMdnsEntry

func (_m *MdnsInterface) UnannounceMdnsEntry()

UnannounceMdnsEntry provides a mock function with given fields:

type MdnsInterface_AnnounceMdnsEntry_Call

type MdnsInterface_AnnounceMdnsEntry_Call struct {
	*mock.Call
}

MdnsInterface_AnnounceMdnsEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AnnounceMdnsEntry'

func (*MdnsInterface_AnnounceMdnsEntry_Call) Return

func (*MdnsInterface_AnnounceMdnsEntry_Call) Run

func (*MdnsInterface_AnnounceMdnsEntry_Call) RunAndReturn

type MdnsInterface_Expecter

type MdnsInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MdnsInterface_Expecter) AnnounceMdnsEntry

AnnounceMdnsEntry is a helper method to define mock.On call

func (*MdnsInterface_Expecter) RequestMdnsEntries

RequestMdnsEntries is a helper method to define mock.On call

func (*MdnsInterface_Expecter) SetAutoAccept

func (_e *MdnsInterface_Expecter) SetAutoAccept(_a0 interface{}) *MdnsInterface_SetAutoAccept_Call

SetAutoAccept is a helper method to define mock.On call

  • _a0 bool

func (*MdnsInterface_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*MdnsInterface_Expecter) Start

func (_e *MdnsInterface_Expecter) Start(cb interface{}) *MdnsInterface_Start_Call

Start is a helper method to define mock.On call

  • cb api.MdnsReportInterface

func (*MdnsInterface_Expecter) UnannounceMdnsEntry

UnannounceMdnsEntry is a helper method to define mock.On call

type MdnsInterface_RequestMdnsEntries_Call

type MdnsInterface_RequestMdnsEntries_Call struct {
	*mock.Call
}

MdnsInterface_RequestMdnsEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestMdnsEntries'

func (*MdnsInterface_RequestMdnsEntries_Call) Return

func (*MdnsInterface_RequestMdnsEntries_Call) Run

func (*MdnsInterface_RequestMdnsEntries_Call) RunAndReturn

type MdnsInterface_SetAutoAccept_Call

type MdnsInterface_SetAutoAccept_Call struct {
	*mock.Call
}

MdnsInterface_SetAutoAccept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAutoAccept'

func (*MdnsInterface_SetAutoAccept_Call) Return

func (*MdnsInterface_SetAutoAccept_Call) Run

func (*MdnsInterface_SetAutoAccept_Call) RunAndReturn

type MdnsInterface_Shutdown_Call

type MdnsInterface_Shutdown_Call struct {
	*mock.Call
}

MdnsInterface_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*MdnsInterface_Shutdown_Call) Return

func (*MdnsInterface_Shutdown_Call) Run

func (*MdnsInterface_Shutdown_Call) RunAndReturn

func (_c *MdnsInterface_Shutdown_Call) RunAndReturn(run func()) *MdnsInterface_Shutdown_Call

type MdnsInterface_Start_Call

type MdnsInterface_Start_Call struct {
	*mock.Call
}

MdnsInterface_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*MdnsInterface_Start_Call) Return

func (*MdnsInterface_Start_Call) Run

func (*MdnsInterface_Start_Call) RunAndReturn

type MdnsInterface_UnannounceMdnsEntry_Call

type MdnsInterface_UnannounceMdnsEntry_Call struct {
	*mock.Call
}

MdnsInterface_UnannounceMdnsEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnannounceMdnsEntry'

func (*MdnsInterface_UnannounceMdnsEntry_Call) Return

func (*MdnsInterface_UnannounceMdnsEntry_Call) Run

func (*MdnsInterface_UnannounceMdnsEntry_Call) RunAndReturn

type MdnsProviderInterface

type MdnsProviderInterface struct {
	mock.Mock
}

MdnsProviderInterface is an autogenerated mock type for the MdnsProviderInterface type

func NewMdnsProviderInterface

func NewMdnsProviderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MdnsProviderInterface

NewMdnsProviderInterface creates a new instance of MdnsProviderInterface. 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 (*MdnsProviderInterface) Announce

func (_m *MdnsProviderInterface) Announce(serviceName string, port int, txt []string) error

Announce provides a mock function with given fields: serviceName, port, txt

func (*MdnsProviderInterface) EXPECT

func (*MdnsProviderInterface) Shutdown

func (_m *MdnsProviderInterface) Shutdown()

Shutdown provides a mock function with given fields:

func (*MdnsProviderInterface) Start added in v0.6.0

func (_m *MdnsProviderInterface) Start(autoReconnect bool, cb api.MdnsResolveCB) bool

Start provides a mock function with given fields: autoReconnect, cb

func (*MdnsProviderInterface) Unannounce

func (_m *MdnsProviderInterface) Unannounce()

Unannounce provides a mock function with given fields:

type MdnsProviderInterface_Announce_Call

type MdnsProviderInterface_Announce_Call struct {
	*mock.Call
}

MdnsProviderInterface_Announce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Announce'

func (*MdnsProviderInterface_Announce_Call) Return

func (*MdnsProviderInterface_Announce_Call) Run

func (_c *MdnsProviderInterface_Announce_Call) Run(run func(serviceName string, port int, txt []string)) *MdnsProviderInterface_Announce_Call

func (*MdnsProviderInterface_Announce_Call) RunAndReturn

type MdnsProviderInterface_Expecter

type MdnsProviderInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MdnsProviderInterface_Expecter) Announce

func (_e *MdnsProviderInterface_Expecter) Announce(serviceName interface{}, port interface{}, txt interface{}) *MdnsProviderInterface_Announce_Call

Announce is a helper method to define mock.On call

  • serviceName string
  • port int
  • txt []string

func (*MdnsProviderInterface_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*MdnsProviderInterface_Expecter) Start added in v0.6.0

func (_e *MdnsProviderInterface_Expecter) Start(autoReconnect interface{}, cb interface{}) *MdnsProviderInterface_Start_Call

Start is a helper method to define mock.On call

  • autoReconnect bool
  • cb api.MdnsResolveCB

func (*MdnsProviderInterface_Expecter) Unannounce

Unannounce is a helper method to define mock.On call

type MdnsProviderInterface_Shutdown_Call

type MdnsProviderInterface_Shutdown_Call struct {
	*mock.Call
}

MdnsProviderInterface_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'

func (*MdnsProviderInterface_Shutdown_Call) Return

func (*MdnsProviderInterface_Shutdown_Call) Run

func (*MdnsProviderInterface_Shutdown_Call) RunAndReturn

type MdnsProviderInterface_Start_Call added in v0.6.0

type MdnsProviderInterface_Start_Call struct {
	*mock.Call
}

MdnsProviderInterface_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*MdnsProviderInterface_Start_Call) Return added in v0.6.0

func (*MdnsProviderInterface_Start_Call) Run added in v0.6.0

func (*MdnsProviderInterface_Start_Call) RunAndReturn added in v0.6.0

type MdnsProviderInterface_Unannounce_Call

type MdnsProviderInterface_Unannounce_Call struct {
	*mock.Call
}

MdnsProviderInterface_Unannounce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unannounce'

func (*MdnsProviderInterface_Unannounce_Call) Return

func (*MdnsProviderInterface_Unannounce_Call) Run

func (*MdnsProviderInterface_Unannounce_Call) RunAndReturn

type MdnsReportInterface

type MdnsReportInterface struct {
	mock.Mock
}

MdnsReportInterface is an autogenerated mock type for the MdnsReportInterface type

func NewMdnsReportInterface

func NewMdnsReportInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MdnsReportInterface

NewMdnsReportInterface creates a new instance of MdnsReportInterface. 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 (*MdnsReportInterface) EXPECT

func (*MdnsReportInterface) ReportMdnsEntries

func (_m *MdnsReportInterface) ReportMdnsEntries(entries map[string]*api.MdnsEntry, newEntries bool)

ReportMdnsEntries provides a mock function with given fields: entries, newEntries

type MdnsReportInterface_Expecter

type MdnsReportInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MdnsReportInterface_Expecter) ReportMdnsEntries

func (_e *MdnsReportInterface_Expecter) ReportMdnsEntries(entries interface{}, newEntries interface{}) *MdnsReportInterface_ReportMdnsEntries_Call

ReportMdnsEntries is a helper method to define mock.On call

  • entries map[string]*api.MdnsEntry
  • newEntries bool

type MdnsReportInterface_ReportMdnsEntries_Call

type MdnsReportInterface_ReportMdnsEntries_Call struct {
	*mock.Call
}

MdnsReportInterface_ReportMdnsEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportMdnsEntries'

func (*MdnsReportInterface_ReportMdnsEntries_Call) Return

func (*MdnsReportInterface_ReportMdnsEntries_Call) Run

func (*MdnsReportInterface_ReportMdnsEntries_Call) RunAndReturn

type MdnsResolveCB

type MdnsResolveCB struct {
	mock.Mock
}

MdnsResolveCB is an autogenerated mock type for the MdnsResolveCB type

func NewMdnsResolveCB

func NewMdnsResolveCB(t interface {
	mock.TestingT
	Cleanup(func())
}) *MdnsResolveCB

NewMdnsResolveCB creates a new instance of MdnsResolveCB. 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 (*MdnsResolveCB) EXPECT

func (_m *MdnsResolveCB) EXPECT() *MdnsResolveCB_Expecter

func (*MdnsResolveCB) Execute

func (_m *MdnsResolveCB) Execute(elements map[string]string, name string, host string, addresses []net.IP, port int, remove bool)

Execute provides a mock function with given fields: elements, name, host, addresses, port, remove

type MdnsResolveCB_Execute_Call

type MdnsResolveCB_Execute_Call struct {
	*mock.Call
}

MdnsResolveCB_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*MdnsResolveCB_Execute_Call) Return

func (*MdnsResolveCB_Execute_Call) Run

func (_c *MdnsResolveCB_Execute_Call) Run(run func(elements map[string]string, name string, host string, addresses []net.IP, port int, remove bool)) *MdnsResolveCB_Execute_Call

func (*MdnsResolveCB_Execute_Call) RunAndReturn

type MdnsResolveCB_Expecter

type MdnsResolveCB_Expecter struct {
	// contains filtered or unexported fields
}

func (*MdnsResolveCB_Expecter) Execute

func (_e *MdnsResolveCB_Expecter) Execute(elements interface{}, name interface{}, host interface{}, addresses interface{}, port interface{}, remove interface{}) *MdnsResolveCB_Execute_Call

Execute is a helper method to define mock.On call

  • elements map[string]string
  • name string
  • host string
  • addresses []net.IP
  • port int
  • remove bool

type MockHubReaderInterface

type MockHubReaderInterface struct {
	// contains filtered or unexported fields
}

MockHubReaderInterface is a mock of HubReaderInterface interface.

func NewMockHubReaderInterface

func NewMockHubReaderInterface(ctrl *gomock.Controller) *MockHubReaderInterface

NewMockHubReaderInterface creates a new mock instance.

func (*MockHubReaderInterface) AllowWaitingForTrust

func (m *MockHubReaderInterface) AllowWaitingForTrust(arg0 string) bool

AllowWaitingForTrust mocks base method.

func (*MockHubReaderInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHubReaderInterface) RemoteSKIConnected

func (m *MockHubReaderInterface) RemoteSKIConnected(arg0 string)

RemoteSKIConnected mocks base method.

func (*MockHubReaderInterface) RemoteSKIDisconnected

func (m *MockHubReaderInterface) RemoteSKIDisconnected(arg0 string)

RemoteSKIDisconnected mocks base method.

func (*MockHubReaderInterface) ServicePairingDetailUpdate

func (m *MockHubReaderInterface) ServicePairingDetailUpdate(arg0 string, arg1 *api.ConnectionStateDetail)

ServicePairingDetailUpdate mocks base method.

func (*MockHubReaderInterface) ServiceShipIDUpdate

func (m *MockHubReaderInterface) ServiceShipIDUpdate(arg0, arg1 string)

ServiceShipIDUpdate mocks base method.

func (*MockHubReaderInterface) SetupRemoteDevice

SetupRemoteDevice mocks base method.

func (*MockHubReaderInterface) VisibleRemoteServicesUpdated

func (m *MockHubReaderInterface) VisibleRemoteServicesUpdated(arg0 []api.RemoteService)

VisibleRemoteServicesUpdated mocks base method.

type MockHubReaderInterfaceMockRecorder

type MockHubReaderInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockHubReaderInterfaceMockRecorder is the mock recorder for MockHubReaderInterface.

func (*MockHubReaderInterfaceMockRecorder) AllowWaitingForTrust

func (mr *MockHubReaderInterfaceMockRecorder) AllowWaitingForTrust(arg0 any) *gomock.Call

AllowWaitingForTrust indicates an expected call of AllowWaitingForTrust.

func (*MockHubReaderInterfaceMockRecorder) RemoteSKIConnected

func (mr *MockHubReaderInterfaceMockRecorder) RemoteSKIConnected(arg0 any) *gomock.Call

RemoteSKIConnected indicates an expected call of RemoteSKIConnected.

func (*MockHubReaderInterfaceMockRecorder) RemoteSKIDisconnected

func (mr *MockHubReaderInterfaceMockRecorder) RemoteSKIDisconnected(arg0 any) *gomock.Call

RemoteSKIDisconnected indicates an expected call of RemoteSKIDisconnected.

func (*MockHubReaderInterfaceMockRecorder) ServicePairingDetailUpdate

func (mr *MockHubReaderInterfaceMockRecorder) ServicePairingDetailUpdate(arg0, arg1 any) *gomock.Call

ServicePairingDetailUpdate indicates an expected call of ServicePairingDetailUpdate.

func (*MockHubReaderInterfaceMockRecorder) ServiceShipIDUpdate

func (mr *MockHubReaderInterfaceMockRecorder) ServiceShipIDUpdate(arg0, arg1 any) *gomock.Call

ServiceShipIDUpdate indicates an expected call of ServiceShipIDUpdate.

func (*MockHubReaderInterfaceMockRecorder) SetupRemoteDevice

func (mr *MockHubReaderInterfaceMockRecorder) SetupRemoteDevice(arg0, arg1 any) *gomock.Call

SetupRemoteDevice indicates an expected call of SetupRemoteDevice.

func (*MockHubReaderInterfaceMockRecorder) VisibleRemoteServicesUpdated

func (mr *MockHubReaderInterfaceMockRecorder) VisibleRemoteServicesUpdated(arg0 any) *gomock.Call

VisibleRemoteServicesUpdated indicates an expected call of VisibleRemoteServicesUpdated.

type MockMdnsInterface

type MockMdnsInterface struct {
	// contains filtered or unexported fields
}

MockMdnsInterface is a mock of MdnsInterface interface.

func NewMockMdnsInterface

func NewMockMdnsInterface(ctrl *gomock.Controller) *MockMdnsInterface

NewMockMdnsInterface creates a new mock instance.

func (*MockMdnsInterface) AnnounceMdnsEntry

func (m *MockMdnsInterface) AnnounceMdnsEntry() error

AnnounceMdnsEntry mocks base method.

func (*MockMdnsInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMdnsInterface) RequestMdnsEntries

func (m *MockMdnsInterface) RequestMdnsEntries()

RequestMdnsEntries mocks base method.

func (*MockMdnsInterface) SetAutoAccept

func (m *MockMdnsInterface) SetAutoAccept(arg0 bool)

SetAutoAccept mocks base method.

func (*MockMdnsInterface) Shutdown

func (m *MockMdnsInterface) Shutdown()

Shutdown mocks base method.

func (*MockMdnsInterface) Start

Start mocks base method.

func (*MockMdnsInterface) UnannounceMdnsEntry

func (m *MockMdnsInterface) UnannounceMdnsEntry()

UnannounceMdnsEntry mocks base method.

type MockMdnsInterfaceMockRecorder

type MockMdnsInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockMdnsInterfaceMockRecorder is the mock recorder for MockMdnsInterface.

func (*MockMdnsInterfaceMockRecorder) AnnounceMdnsEntry

func (mr *MockMdnsInterfaceMockRecorder) AnnounceMdnsEntry() *gomock.Call

AnnounceMdnsEntry indicates an expected call of AnnounceMdnsEntry.

func (*MockMdnsInterfaceMockRecorder) RequestMdnsEntries

func (mr *MockMdnsInterfaceMockRecorder) RequestMdnsEntries() *gomock.Call

RequestMdnsEntries indicates an expected call of RequestMdnsEntries.

func (*MockMdnsInterfaceMockRecorder) SetAutoAccept

func (mr *MockMdnsInterfaceMockRecorder) SetAutoAccept(arg0 any) *gomock.Call

SetAutoAccept indicates an expected call of SetAutoAccept.

func (*MockMdnsInterfaceMockRecorder) Shutdown

func (mr *MockMdnsInterfaceMockRecorder) Shutdown() *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*MockMdnsInterfaceMockRecorder) Start

func (mr *MockMdnsInterfaceMockRecorder) Start(arg0 any) *gomock.Call

Start indicates an expected call of Start.

func (*MockMdnsInterfaceMockRecorder) UnannounceMdnsEntry

func (mr *MockMdnsInterfaceMockRecorder) UnannounceMdnsEntry() *gomock.Call

UnannounceMdnsEntry indicates an expected call of UnannounceMdnsEntry.

type ShipConnectionDataReaderInterface

type ShipConnectionDataReaderInterface struct {
	mock.Mock
}

ShipConnectionDataReaderInterface is an autogenerated mock type for the ShipConnectionDataReaderInterface type

func NewShipConnectionDataReaderInterface

func NewShipConnectionDataReaderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShipConnectionDataReaderInterface

NewShipConnectionDataReaderInterface creates a new instance of ShipConnectionDataReaderInterface. 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 (*ShipConnectionDataReaderInterface) EXPECT

func (*ShipConnectionDataReaderInterface) HandleShipPayloadMessage

func (_m *ShipConnectionDataReaderInterface) HandleShipPayloadMessage(message []byte)

HandleShipPayloadMessage provides a mock function with given fields: message

type ShipConnectionDataReaderInterface_Expecter

type ShipConnectionDataReaderInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*ShipConnectionDataReaderInterface_Expecter) HandleShipPayloadMessage

HandleShipPayloadMessage is a helper method to define mock.On call

  • message []byte

type ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call

type ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call struct {
	*mock.Call
}

ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleShipPayloadMessage'

func (*ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) Return

func (*ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) Run

func (*ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) RunAndReturn

type ShipConnectionDataWriterInterface

type ShipConnectionDataWriterInterface struct {
	mock.Mock
}

ShipConnectionDataWriterInterface is an autogenerated mock type for the ShipConnectionDataWriterInterface type

func NewShipConnectionDataWriterInterface

func NewShipConnectionDataWriterInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShipConnectionDataWriterInterface

NewShipConnectionDataWriterInterface creates a new instance of ShipConnectionDataWriterInterface. 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 (*ShipConnectionDataWriterInterface) EXPECT

func (*ShipConnectionDataWriterInterface) WriteShipMessageWithPayload

func (_m *ShipConnectionDataWriterInterface) WriteShipMessageWithPayload(message []byte)

WriteShipMessageWithPayload provides a mock function with given fields: message

type ShipConnectionDataWriterInterface_Expecter

type ShipConnectionDataWriterInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*ShipConnectionDataWriterInterface_Expecter) WriteShipMessageWithPayload

WriteShipMessageWithPayload is a helper method to define mock.On call

  • message []byte

type ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call

type ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call struct {
	*mock.Call
}

ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteShipMessageWithPayload'

func (*ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) Return

func (*ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) Run

func (*ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) RunAndReturn

type ShipConnectionInfoProviderInterface

type ShipConnectionInfoProviderInterface struct {
	mock.Mock
}

ShipConnectionInfoProviderInterface is an autogenerated mock type for the ShipConnectionInfoProviderInterface type

func NewShipConnectionInfoProviderInterface

func NewShipConnectionInfoProviderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShipConnectionInfoProviderInterface

NewShipConnectionInfoProviderInterface creates a new instance of ShipConnectionInfoProviderInterface. 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 (*ShipConnectionInfoProviderInterface) AllowWaitingForTrust

func (_m *ShipConnectionInfoProviderInterface) AllowWaitingForTrust(_a0 string) bool

AllowWaitingForTrust provides a mock function with given fields: _a0

func (*ShipConnectionInfoProviderInterface) EXPECT

func (*ShipConnectionInfoProviderInterface) HandleConnectionClosed

func (_m *ShipConnectionInfoProviderInterface) HandleConnectionClosed(_a0 api.ShipConnectionInterface, _a1 bool)

HandleConnectionClosed provides a mock function with given fields: _a0, _a1

func (*ShipConnectionInfoProviderInterface) HandleShipHandshakeStateUpdate

func (_m *ShipConnectionInfoProviderInterface) HandleShipHandshakeStateUpdate(_a0 string, _a1 model.ShipState)

HandleShipHandshakeStateUpdate provides a mock function with given fields: _a0, _a1

func (*ShipConnectionInfoProviderInterface) IsAutoAcceptEnabled

func (_m *ShipConnectionInfoProviderInterface) IsAutoAcceptEnabled() bool

IsAutoAcceptEnabled provides a mock function with given fields:

func (*ShipConnectionInfoProviderInterface) IsRemoteServiceForSKIPaired

func (_m *ShipConnectionInfoProviderInterface) IsRemoteServiceForSKIPaired(_a0 string) bool

IsRemoteServiceForSKIPaired provides a mock function with given fields: _a0

func (*ShipConnectionInfoProviderInterface) ReportServiceShipID

func (_m *ShipConnectionInfoProviderInterface) ReportServiceShipID(_a0 string, _a1 string)

ReportServiceShipID provides a mock function with given fields: _a0, _a1

func (*ShipConnectionInfoProviderInterface) SetupRemoteDevice

SetupRemoteDevice provides a mock function with given fields: ski, writeI

type ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call

type ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call struct {
	*mock.Call
}

ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowWaitingForTrust'

func (*ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) Return

func (*ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) Run

func (*ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) RunAndReturn

type ShipConnectionInfoProviderInterface_Expecter

type ShipConnectionInfoProviderInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*ShipConnectionInfoProviderInterface_Expecter) AllowWaitingForTrust

AllowWaitingForTrust is a helper method to define mock.On call

  • _a0 string

func (*ShipConnectionInfoProviderInterface_Expecter) HandleConnectionClosed

func (_e *ShipConnectionInfoProviderInterface_Expecter) HandleConnectionClosed(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call

HandleConnectionClosed is a helper method to define mock.On call

  • _a0 api.ShipConnectionInterface
  • _a1 bool

func (*ShipConnectionInfoProviderInterface_Expecter) HandleShipHandshakeStateUpdate

func (_e *ShipConnectionInfoProviderInterface_Expecter) HandleShipHandshakeStateUpdate(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call

HandleShipHandshakeStateUpdate is a helper method to define mock.On call

  • _a0 string
  • _a1 model.ShipState

func (*ShipConnectionInfoProviderInterface_Expecter) IsAutoAcceptEnabled

IsAutoAcceptEnabled is a helper method to define mock.On call

func (*ShipConnectionInfoProviderInterface_Expecter) IsRemoteServiceForSKIPaired

IsRemoteServiceForSKIPaired is a helper method to define mock.On call

  • _a0 string

func (*ShipConnectionInfoProviderInterface_Expecter) ReportServiceShipID

ReportServiceShipID is a helper method to define mock.On call

  • _a0 string
  • _a1 string

func (*ShipConnectionInfoProviderInterface_Expecter) SetupRemoteDevice

func (_e *ShipConnectionInfoProviderInterface_Expecter) SetupRemoteDevice(ski interface{}, writeI interface{}) *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call

SetupRemoteDevice is a helper method to define mock.On call

  • ski string
  • writeI api.ShipConnectionDataWriterInterface

type ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call

type ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call struct {
	*mock.Call
}

ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleConnectionClosed'

func (*ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) Return

func (*ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) Run

func (*ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) RunAndReturn

type ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call

type ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call struct {
	*mock.Call
}

ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleShipHandshakeStateUpdate'

func (*ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) Return

func (*ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) Run

func (*ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) RunAndReturn

type ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call

type ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call struct {
	*mock.Call
}

ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoAcceptEnabled'

func (*ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) Return

func (*ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) Run

func (*ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) RunAndReturn

type ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call

type ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call struct {
	*mock.Call
}

ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsRemoteServiceForSKIPaired'

func (*ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) Return

func (*ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) Run

func (*ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) RunAndReturn

type ShipConnectionInfoProviderInterface_ReportServiceShipID_Call

type ShipConnectionInfoProviderInterface_ReportServiceShipID_Call struct {
	*mock.Call
}

ShipConnectionInfoProviderInterface_ReportServiceShipID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportServiceShipID'

func (*ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) Return

func (*ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) Run

func (*ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) RunAndReturn

type ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call

type ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call struct {
	*mock.Call
}

ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupRemoteDevice'

func (*ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call) Run

type ShipConnectionInterface

type ShipConnectionInterface struct {
	mock.Mock
}

ShipConnectionInterface is an autogenerated mock type for the ShipConnectionInterface type

func NewShipConnectionInterface

func NewShipConnectionInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ShipConnectionInterface

NewShipConnectionInterface creates a new instance of ShipConnectionInterface. 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 (*ShipConnectionInterface) AbortPendingHandshake

func (_m *ShipConnectionInterface) AbortPendingHandshake()

AbortPendingHandshake provides a mock function with given fields:

func (*ShipConnectionInterface) ApprovePendingHandshake

func (_m *ShipConnectionInterface) ApprovePendingHandshake()

ApprovePendingHandshake provides a mock function with given fields:

func (*ShipConnectionInterface) CloseConnection

func (_m *ShipConnectionInterface) CloseConnection(safe bool, code int, reason string)

CloseConnection provides a mock function with given fields: safe, code, reason

func (*ShipConnectionInterface) DataHandler

DataHandler provides a mock function with given fields:

func (*ShipConnectionInterface) EXPECT

func (*ShipConnectionInterface) RemoteSKI

func (_m *ShipConnectionInterface) RemoteSKI() string

RemoteSKI provides a mock function with given fields:

func (*ShipConnectionInterface) ShipHandshakeState

func (_m *ShipConnectionInterface) ShipHandshakeState() (model.ShipMessageExchangeState, error)

ShipHandshakeState provides a mock function with given fields:

type ShipConnectionInterface_AbortPendingHandshake_Call

type ShipConnectionInterface_AbortPendingHandshake_Call struct {
	*mock.Call
}

ShipConnectionInterface_AbortPendingHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortPendingHandshake'

func (*ShipConnectionInterface_AbortPendingHandshake_Call) Return

func (*ShipConnectionInterface_AbortPendingHandshake_Call) Run

func (*ShipConnectionInterface_AbortPendingHandshake_Call) RunAndReturn

type ShipConnectionInterface_ApprovePendingHandshake_Call

type ShipConnectionInterface_ApprovePendingHandshake_Call struct {
	*mock.Call
}

ShipConnectionInterface_ApprovePendingHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApprovePendingHandshake'

func (*ShipConnectionInterface_ApprovePendingHandshake_Call) Return

func (*ShipConnectionInterface_ApprovePendingHandshake_Call) Run

func (*ShipConnectionInterface_ApprovePendingHandshake_Call) RunAndReturn

type ShipConnectionInterface_CloseConnection_Call

type ShipConnectionInterface_CloseConnection_Call struct {
	*mock.Call
}

ShipConnectionInterface_CloseConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseConnection'

func (*ShipConnectionInterface_CloseConnection_Call) Return

func (*ShipConnectionInterface_CloseConnection_Call) Run

func (*ShipConnectionInterface_CloseConnection_Call) RunAndReturn

type ShipConnectionInterface_DataHandler_Call

type ShipConnectionInterface_DataHandler_Call struct {
	*mock.Call
}

ShipConnectionInterface_DataHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DataHandler'

func (*ShipConnectionInterface_DataHandler_Call) Return

func (*ShipConnectionInterface_DataHandler_Call) Run

func (*ShipConnectionInterface_DataHandler_Call) RunAndReturn

type ShipConnectionInterface_Expecter

type ShipConnectionInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*ShipConnectionInterface_Expecter) AbortPendingHandshake

AbortPendingHandshake is a helper method to define mock.On call

func (*ShipConnectionInterface_Expecter) ApprovePendingHandshake

ApprovePendingHandshake is a helper method to define mock.On call

func (*ShipConnectionInterface_Expecter) CloseConnection

func (_e *ShipConnectionInterface_Expecter) CloseConnection(safe interface{}, code interface{}, reason interface{}) *ShipConnectionInterface_CloseConnection_Call

CloseConnection is a helper method to define mock.On call

  • safe bool
  • code int
  • reason string

func (*ShipConnectionInterface_Expecter) DataHandler

DataHandler is a helper method to define mock.On call

func (*ShipConnectionInterface_Expecter) RemoteSKI

RemoteSKI is a helper method to define mock.On call

func (*ShipConnectionInterface_Expecter) ShipHandshakeState

ShipHandshakeState is a helper method to define mock.On call

type ShipConnectionInterface_RemoteSKI_Call

type ShipConnectionInterface_RemoteSKI_Call struct {
	*mock.Call
}

ShipConnectionInterface_RemoteSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoteSKI'

func (*ShipConnectionInterface_RemoteSKI_Call) Return

func (*ShipConnectionInterface_RemoteSKI_Call) Run

func (*ShipConnectionInterface_RemoteSKI_Call) RunAndReturn

type ShipConnectionInterface_ShipHandshakeState_Call

type ShipConnectionInterface_ShipHandshakeState_Call struct {
	*mock.Call
}

ShipConnectionInterface_ShipHandshakeState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShipHandshakeState'

func (*ShipConnectionInterface_ShipHandshakeState_Call) Return

func (*ShipConnectionInterface_ShipHandshakeState_Call) Run

func (*ShipConnectionInterface_ShipHandshakeState_Call) RunAndReturn

type WebsocketDataReaderInterface

type WebsocketDataReaderInterface struct {
	mock.Mock
}

WebsocketDataReaderInterface is an autogenerated mock type for the WebsocketDataReaderInterface type

func NewWebsocketDataReaderInterface

func NewWebsocketDataReaderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebsocketDataReaderInterface

NewWebsocketDataReaderInterface creates a new instance of WebsocketDataReaderInterface. 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 (*WebsocketDataReaderInterface) EXPECT

func (*WebsocketDataReaderInterface) HandleIncomingWebsocketMessage

func (_m *WebsocketDataReaderInterface) HandleIncomingWebsocketMessage(_a0 []byte)

HandleIncomingWebsocketMessage provides a mock function with given fields: _a0

func (*WebsocketDataReaderInterface) ReportConnectionError

func (_m *WebsocketDataReaderInterface) ReportConnectionError(_a0 error)

ReportConnectionError provides a mock function with given fields: _a0

type WebsocketDataReaderInterface_Expecter

type WebsocketDataReaderInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*WebsocketDataReaderInterface_Expecter) HandleIncomingWebsocketMessage

HandleIncomingWebsocketMessage is a helper method to define mock.On call

  • _a0 []byte

func (*WebsocketDataReaderInterface_Expecter) ReportConnectionError

ReportConnectionError is a helper method to define mock.On call

  • _a0 error

type WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call

type WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call struct {
	*mock.Call
}

WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleIncomingWebsocketMessage'

func (*WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) Return

func (*WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) Run

func (*WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) RunAndReturn

type WebsocketDataReaderInterface_ReportConnectionError_Call

type WebsocketDataReaderInterface_ReportConnectionError_Call struct {
	*mock.Call
}

WebsocketDataReaderInterface_ReportConnectionError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportConnectionError'

func (*WebsocketDataReaderInterface_ReportConnectionError_Call) Return

func (*WebsocketDataReaderInterface_ReportConnectionError_Call) Run

func (*WebsocketDataReaderInterface_ReportConnectionError_Call) RunAndReturn

type WebsocketDataWriterInterface

type WebsocketDataWriterInterface struct {
	mock.Mock
}

WebsocketDataWriterInterface is an autogenerated mock type for the WebsocketDataWriterInterface type

func NewWebsocketDataWriterInterface

func NewWebsocketDataWriterInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebsocketDataWriterInterface

NewWebsocketDataWriterInterface creates a new instance of WebsocketDataWriterInterface. 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 (*WebsocketDataWriterInterface) CloseDataConnection

func (_m *WebsocketDataWriterInterface) CloseDataConnection(closeCode int, reason string)

CloseDataConnection provides a mock function with given fields: closeCode, reason

func (*WebsocketDataWriterInterface) EXPECT

func (*WebsocketDataWriterInterface) InitDataProcessing

InitDataProcessing provides a mock function with given fields: _a0

func (*WebsocketDataWriterInterface) IsDataConnectionClosed

func (_m *WebsocketDataWriterInterface) IsDataConnectionClosed() (bool, error)

IsDataConnectionClosed provides a mock function with given fields:

func (*WebsocketDataWriterInterface) WriteMessageToWebsocketConnection

func (_m *WebsocketDataWriterInterface) WriteMessageToWebsocketConnection(_a0 []byte) error

WriteMessageToWebsocketConnection provides a mock function with given fields: _a0

type WebsocketDataWriterInterface_CloseDataConnection_Call

type WebsocketDataWriterInterface_CloseDataConnection_Call struct {
	*mock.Call
}

WebsocketDataWriterInterface_CloseDataConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseDataConnection'

func (*WebsocketDataWriterInterface_CloseDataConnection_Call) Return

func (*WebsocketDataWriterInterface_CloseDataConnection_Call) Run

func (*WebsocketDataWriterInterface_CloseDataConnection_Call) RunAndReturn

type WebsocketDataWriterInterface_Expecter

type WebsocketDataWriterInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*WebsocketDataWriterInterface_Expecter) CloseDataConnection

func (_e *WebsocketDataWriterInterface_Expecter) CloseDataConnection(closeCode interface{}, reason interface{}) *WebsocketDataWriterInterface_CloseDataConnection_Call

CloseDataConnection is a helper method to define mock.On call

  • closeCode int
  • reason string

func (*WebsocketDataWriterInterface_Expecter) InitDataProcessing

InitDataProcessing is a helper method to define mock.On call

  • _a0 api.WebsocketDataReaderInterface

func (*WebsocketDataWriterInterface_Expecter) IsDataConnectionClosed

IsDataConnectionClosed is a helper method to define mock.On call

func (*WebsocketDataWriterInterface_Expecter) WriteMessageToWebsocketConnection

WriteMessageToWebsocketConnection is a helper method to define mock.On call

  • _a0 []byte

type WebsocketDataWriterInterface_InitDataProcessing_Call

type WebsocketDataWriterInterface_InitDataProcessing_Call struct {
	*mock.Call
}

WebsocketDataWriterInterface_InitDataProcessing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitDataProcessing'

func (*WebsocketDataWriterInterface_InitDataProcessing_Call) Return

func (*WebsocketDataWriterInterface_InitDataProcessing_Call) Run

func (*WebsocketDataWriterInterface_InitDataProcessing_Call) RunAndReturn

type WebsocketDataWriterInterface_IsDataConnectionClosed_Call

type WebsocketDataWriterInterface_IsDataConnectionClosed_Call struct {
	*mock.Call
}

WebsocketDataWriterInterface_IsDataConnectionClosed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDataConnectionClosed'

func (*WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Return

func (*WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Run

func (*WebsocketDataWriterInterface_IsDataConnectionClosed_Call) RunAndReturn

type WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call

type WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call struct {
	*mock.Call
}

WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteMessageToWebsocketConnection'

func (*WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) Return

func (*WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) Run

func (*WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) RunAndReturn

Jump to

Keyboard shortcuts

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