mocks

package
v0.0.0-...-d5de6b2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 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 AddressResolverInterface

type AddressResolverInterface struct {
	mock.Mock
}

AddressResolverInterface is an autogenerated mock type for the AddressResolverInterface type

func NewAddressResolverInterface

func NewAddressResolverInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *AddressResolverInterface

NewAddressResolverInterface creates a new instance of AddressResolverInterface. 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 (*AddressResolverInterface) DispatchSignal

func (_m *AddressResolverInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*AddressResolverInterface) EXPECT

func (*AddressResolverInterface) FoundChannel

func (_m *AddressResolverInterface) FoundChannel() chan avahi.Address

FoundChannel provides a mock function with given fields:

func (*AddressResolverInterface) Free

func (_m *AddressResolverInterface) Free()

Free provides a mock function with given fields:

func (*AddressResolverInterface) GetObjectPath

func (_m *AddressResolverInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

type AddressResolverInterface_DispatchSignal_Call

type AddressResolverInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*AddressResolverInterface_DispatchSignal_Call) Return

func (*AddressResolverInterface_DispatchSignal_Call) Run

func (*AddressResolverInterface_DispatchSignal_Call) RunAndReturn

type AddressResolverInterface_Expecter

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

func (*AddressResolverInterface_Expecter) DispatchSignal

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*AddressResolverInterface_Expecter) FoundChannel

FoundChannel is a helper method to define mock.On call

func (*AddressResolverInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*AddressResolverInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

type AddressResolverInterface_FoundChannel_Call

type AddressResolverInterface_FoundChannel_Call struct {
	*mock.Call
}

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

func (*AddressResolverInterface_FoundChannel_Call) Return

func (*AddressResolverInterface_FoundChannel_Call) Run

func (*AddressResolverInterface_FoundChannel_Call) RunAndReturn

type AddressResolverInterface_Free_Call

type AddressResolverInterface_Free_Call struct {
	*mock.Call
}

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

func (*AddressResolverInterface_Free_Call) Return

func (*AddressResolverInterface_Free_Call) Run

func (*AddressResolverInterface_Free_Call) RunAndReturn

type AddressResolverInterface_GetObjectPath_Call

type AddressResolverInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*AddressResolverInterface_GetObjectPath_Call) Return

func (*AddressResolverInterface_GetObjectPath_Call) Run

func (*AddressResolverInterface_GetObjectPath_Call) RunAndReturn

type DomainBrowserInterface

type DomainBrowserInterface struct {
	mock.Mock
}

DomainBrowserInterface is an autogenerated mock type for the DomainBrowserInterface type

func NewDomainBrowserInterface

func NewDomainBrowserInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *DomainBrowserInterface

NewDomainBrowserInterface creates a new instance of DomainBrowserInterface. 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 (*DomainBrowserInterface) DispatchSignal

func (_m *DomainBrowserInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*DomainBrowserInterface) EXPECT

func (*DomainBrowserInterface) Free

func (_m *DomainBrowserInterface) Free()

Free provides a mock function with given fields:

func (*DomainBrowserInterface) GetObjectPath

func (_m *DomainBrowserInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

type DomainBrowserInterface_DispatchSignal_Call

type DomainBrowserInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*DomainBrowserInterface_DispatchSignal_Call) Return

func (*DomainBrowserInterface_DispatchSignal_Call) Run

func (*DomainBrowserInterface_DispatchSignal_Call) RunAndReturn

type DomainBrowserInterface_Expecter

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

func (*DomainBrowserInterface_Expecter) DispatchSignal

func (_e *DomainBrowserInterface_Expecter) DispatchSignal(signal interface{}) *DomainBrowserInterface_DispatchSignal_Call

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*DomainBrowserInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*DomainBrowserInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

type DomainBrowserInterface_Free_Call

type DomainBrowserInterface_Free_Call struct {
	*mock.Call
}

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

func (*DomainBrowserInterface_Free_Call) Return

func (*DomainBrowserInterface_Free_Call) Run

func (*DomainBrowserInterface_Free_Call) RunAndReturn

type DomainBrowserInterface_GetObjectPath_Call

type DomainBrowserInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*DomainBrowserInterface_GetObjectPath_Call) Return

func (*DomainBrowserInterface_GetObjectPath_Call) Run

func (*DomainBrowserInterface_GetObjectPath_Call) RunAndReturn

type EntryGroupInterface

type EntryGroupInterface struct {
	mock.Mock
}

EntryGroupInterface is an autogenerated mock type for the EntryGroupInterface type

func NewEntryGroupInterface

func NewEntryGroupInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntryGroupInterface

NewEntryGroupInterface creates a new instance of EntryGroupInterface. 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 (*EntryGroupInterface) AddAddress

func (_m *EntryGroupInterface) AddAddress(iface int32, protocol int32, flags uint32, name string, address string) error

AddAddress provides a mock function with given fields: iface, protocol, flags, name, address

func (*EntryGroupInterface) AddRecord

func (_m *EntryGroupInterface) AddRecord(iface int32, protocol int32, flags uint32, name string, class uint16, recordType uint16, ttl uint32, rdata []byte) error

AddRecord provides a mock function with given fields: iface, protocol, flags, name, class, recordType, ttl, rdata

func (*EntryGroupInterface) AddService

func (_m *EntryGroupInterface) AddService(iface int32, protocol int32, flags uint32, name string, serviceType string, domain string, host string, port uint16, txt [][]byte) error

AddService provides a mock function with given fields: iface, protocol, flags, name, serviceType, domain, host, port, txt

func (*EntryGroupInterface) AddServiceSubtype

func (_m *EntryGroupInterface) AddServiceSubtype(iface int32, protocol int32, flags uint32, name string, serviceType string, domain string, subtype string) error

AddServiceSubtype provides a mock function with given fields: iface, protocol, flags, name, serviceType, domain, subtype

func (*EntryGroupInterface) Commit

func (_m *EntryGroupInterface) Commit() error

Commit provides a mock function with given fields:

func (*EntryGroupInterface) DispatchSignal

func (_m *EntryGroupInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*EntryGroupInterface) EXPECT

func (*EntryGroupInterface) Free

func (_m *EntryGroupInterface) Free()

Free provides a mock function with given fields:

func (*EntryGroupInterface) GetObjectPath

func (_m *EntryGroupInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

func (*EntryGroupInterface) GetState

func (_m *EntryGroupInterface) GetState() (int32, error)

GetState provides a mock function with given fields:

func (*EntryGroupInterface) IsEmpty

func (_m *EntryGroupInterface) IsEmpty() (bool, error)

IsEmpty provides a mock function with given fields:

func (*EntryGroupInterface) Reset

func (_m *EntryGroupInterface) Reset() error

Reset provides a mock function with given fields:

func (*EntryGroupInterface) UpdateServiceTxt

func (_m *EntryGroupInterface) UpdateServiceTxt(iface int32, protocol int32, flags uint32, name string, serviceType string, domain string, txt [][]byte) error

UpdateServiceTxt provides a mock function with given fields: iface, protocol, flags, name, serviceType, domain, txt

type EntryGroupInterface_AddAddress_Call

type EntryGroupInterface_AddAddress_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_AddAddress_Call) Return

func (*EntryGroupInterface_AddAddress_Call) Run

func (_c *EntryGroupInterface_AddAddress_Call) Run(run func(iface int32, protocol int32, flags uint32, name string, address string)) *EntryGroupInterface_AddAddress_Call

func (*EntryGroupInterface_AddAddress_Call) RunAndReturn

type EntryGroupInterface_AddRecord_Call

type EntryGroupInterface_AddRecord_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_AddRecord_Call) Return

func (*EntryGroupInterface_AddRecord_Call) Run

func (_c *EntryGroupInterface_AddRecord_Call) Run(run func(iface int32, protocol int32, flags uint32, name string, class uint16, recordType uint16, ttl uint32, rdata []byte)) *EntryGroupInterface_AddRecord_Call

func (*EntryGroupInterface_AddRecord_Call) RunAndReturn

type EntryGroupInterface_AddServiceSubtype_Call

type EntryGroupInterface_AddServiceSubtype_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_AddServiceSubtype_Call) Return

func (*EntryGroupInterface_AddServiceSubtype_Call) Run

func (_c *EntryGroupInterface_AddServiceSubtype_Call) Run(run func(iface int32, protocol int32, flags uint32, name string, serviceType string, domain string, subtype string)) *EntryGroupInterface_AddServiceSubtype_Call

func (*EntryGroupInterface_AddServiceSubtype_Call) RunAndReturn

type EntryGroupInterface_AddService_Call

type EntryGroupInterface_AddService_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_AddService_Call) Return

func (*EntryGroupInterface_AddService_Call) Run

func (_c *EntryGroupInterface_AddService_Call) Run(run func(iface int32, protocol int32, flags uint32, name string, serviceType string, domain string, host string, port uint16, txt [][]byte)) *EntryGroupInterface_AddService_Call

func (*EntryGroupInterface_AddService_Call) RunAndReturn

type EntryGroupInterface_Commit_Call

type EntryGroupInterface_Commit_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_Commit_Call) Return

func (*EntryGroupInterface_Commit_Call) Run

func (*EntryGroupInterface_Commit_Call) RunAndReturn

type EntryGroupInterface_DispatchSignal_Call

type EntryGroupInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_DispatchSignal_Call) Return

func (*EntryGroupInterface_DispatchSignal_Call) Run

func (*EntryGroupInterface_DispatchSignal_Call) RunAndReturn

type EntryGroupInterface_Expecter

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

func (*EntryGroupInterface_Expecter) AddAddress

func (_e *EntryGroupInterface_Expecter) AddAddress(iface interface{}, protocol interface{}, flags interface{}, name interface{}, address interface{}) *EntryGroupInterface_AddAddress_Call

AddAddress is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • flags uint32
  • name string
  • address string

func (*EntryGroupInterface_Expecter) AddRecord

func (_e *EntryGroupInterface_Expecter) AddRecord(iface interface{}, protocol interface{}, flags interface{}, name interface{}, class interface{}, recordType interface{}, ttl interface{}, rdata interface{}) *EntryGroupInterface_AddRecord_Call

AddRecord is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • flags uint32
  • name string
  • class uint16
  • recordType uint16
  • ttl uint32
  • rdata []byte

func (*EntryGroupInterface_Expecter) AddService

func (_e *EntryGroupInterface_Expecter) AddService(iface interface{}, protocol interface{}, flags interface{}, name interface{}, serviceType interface{}, domain interface{}, host interface{}, port interface{}, txt interface{}) *EntryGroupInterface_AddService_Call

AddService is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • flags uint32
  • name string
  • serviceType string
  • domain string
  • host string
  • port uint16
  • txt [][]byte

func (*EntryGroupInterface_Expecter) AddServiceSubtype

func (_e *EntryGroupInterface_Expecter) AddServiceSubtype(iface interface{}, protocol interface{}, flags interface{}, name interface{}, serviceType interface{}, domain interface{}, subtype interface{}) *EntryGroupInterface_AddServiceSubtype_Call

AddServiceSubtype is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • flags uint32
  • name string
  • serviceType string
  • domain string
  • subtype string

func (*EntryGroupInterface_Expecter) Commit

Commit is a helper method to define mock.On call

func (*EntryGroupInterface_Expecter) DispatchSignal

func (_e *EntryGroupInterface_Expecter) DispatchSignal(signal interface{}) *EntryGroupInterface_DispatchSignal_Call

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*EntryGroupInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*EntryGroupInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

func (*EntryGroupInterface_Expecter) GetState

GetState is a helper method to define mock.On call

func (*EntryGroupInterface_Expecter) IsEmpty

IsEmpty is a helper method to define mock.On call

func (*EntryGroupInterface_Expecter) Reset

Reset is a helper method to define mock.On call

func (*EntryGroupInterface_Expecter) UpdateServiceTxt

func (_e *EntryGroupInterface_Expecter) UpdateServiceTxt(iface interface{}, protocol interface{}, flags interface{}, name interface{}, serviceType interface{}, domain interface{}, txt interface{}) *EntryGroupInterface_UpdateServiceTxt_Call

UpdateServiceTxt is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • flags uint32
  • name string
  • serviceType string
  • domain string
  • txt [][]byte

type EntryGroupInterface_Free_Call

type EntryGroupInterface_Free_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_Free_Call) Return

func (*EntryGroupInterface_Free_Call) Run

func (*EntryGroupInterface_Free_Call) RunAndReturn

func (_c *EntryGroupInterface_Free_Call) RunAndReturn(run func()) *EntryGroupInterface_Free_Call

type EntryGroupInterface_GetObjectPath_Call

type EntryGroupInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_GetObjectPath_Call) Return

func (*EntryGroupInterface_GetObjectPath_Call) Run

func (*EntryGroupInterface_GetObjectPath_Call) RunAndReturn

type EntryGroupInterface_GetState_Call

type EntryGroupInterface_GetState_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_GetState_Call) Return

func (*EntryGroupInterface_GetState_Call) Run

func (*EntryGroupInterface_GetState_Call) RunAndReturn

type EntryGroupInterface_IsEmpty_Call

type EntryGroupInterface_IsEmpty_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_IsEmpty_Call) Return

func (*EntryGroupInterface_IsEmpty_Call) Run

func (*EntryGroupInterface_IsEmpty_Call) RunAndReturn

type EntryGroupInterface_Reset_Call

type EntryGroupInterface_Reset_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_Reset_Call) Return

func (*EntryGroupInterface_Reset_Call) Run

func (*EntryGroupInterface_Reset_Call) RunAndReturn

type EntryGroupInterface_UpdateServiceTxt_Call

type EntryGroupInterface_UpdateServiceTxt_Call struct {
	*mock.Call
}

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

func (*EntryGroupInterface_UpdateServiceTxt_Call) Return

func (*EntryGroupInterface_UpdateServiceTxt_Call) Run

func (_c *EntryGroupInterface_UpdateServiceTxt_Call) Run(run func(iface int32, protocol int32, flags uint32, name string, serviceType string, domain string, txt [][]byte)) *EntryGroupInterface_UpdateServiceTxt_Call

func (*EntryGroupInterface_UpdateServiceTxt_Call) RunAndReturn

type EventCB

type EventCB struct {
	mock.Mock
}

EventCB is an autogenerated mock type for the EventCB type

func NewEventCB

func NewEventCB(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventCB

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

func (_m *EventCB) EXPECT() *EventCB_Expecter

func (*EventCB) Execute

func (_m *EventCB) Execute(event avahi.Event)

Execute provides a mock function with given fields: event

type EventCB_Execute_Call

type EventCB_Execute_Call struct {
	*mock.Call
}

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

func (*EventCB_Execute_Call) Return

func (*EventCB_Execute_Call) Run

func (_c *EventCB_Execute_Call) Run(run func(event avahi.Event)) *EventCB_Execute_Call

func (*EventCB_Execute_Call) RunAndReturn

func (_c *EventCB_Execute_Call) RunAndReturn(run func(avahi.Event)) *EventCB_Execute_Call

type EventCB_Expecter

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

func (*EventCB_Expecter) Execute

func (_e *EventCB_Expecter) Execute(event interface{}) *EventCB_Execute_Call

Execute is a helper method to define mock.On call

  • event avahi.Event

type HostNameResolverInterface

type HostNameResolverInterface struct {
	mock.Mock
}

HostNameResolverInterface is an autogenerated mock type for the HostNameResolverInterface type

func NewHostNameResolverInterface

func NewHostNameResolverInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *HostNameResolverInterface

NewHostNameResolverInterface creates a new instance of HostNameResolverInterface. 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 (*HostNameResolverInterface) DispatchSignal

func (_m *HostNameResolverInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*HostNameResolverInterface) EXPECT

func (*HostNameResolverInterface) FoundChannel

func (_m *HostNameResolverInterface) FoundChannel() chan avahi.HostName

FoundChannel provides a mock function with given fields:

func (*HostNameResolverInterface) Free

func (_m *HostNameResolverInterface) Free()

Free provides a mock function with given fields:

func (*HostNameResolverInterface) GetObjectPath

func (_m *HostNameResolverInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

type HostNameResolverInterface_DispatchSignal_Call

type HostNameResolverInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*HostNameResolverInterface_DispatchSignal_Call) Return

func (*HostNameResolverInterface_DispatchSignal_Call) Run

func (*HostNameResolverInterface_DispatchSignal_Call) RunAndReturn

type HostNameResolverInterface_Expecter

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

func (*HostNameResolverInterface_Expecter) DispatchSignal

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*HostNameResolverInterface_Expecter) FoundChannel

FoundChannel is a helper method to define mock.On call

func (*HostNameResolverInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*HostNameResolverInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

type HostNameResolverInterface_FoundChannel_Call

type HostNameResolverInterface_FoundChannel_Call struct {
	*mock.Call
}

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

func (*HostNameResolverInterface_FoundChannel_Call) Return

func (*HostNameResolverInterface_FoundChannel_Call) Run

func (*HostNameResolverInterface_FoundChannel_Call) RunAndReturn

type HostNameResolverInterface_Free_Call

type HostNameResolverInterface_Free_Call struct {
	*mock.Call
}

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

func (*HostNameResolverInterface_Free_Call) Return

func (*HostNameResolverInterface_Free_Call) Run

func (*HostNameResolverInterface_Free_Call) RunAndReturn

type HostNameResolverInterface_GetObjectPath_Call

type HostNameResolverInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*HostNameResolverInterface_GetObjectPath_Call) Return

func (*HostNameResolverInterface_GetObjectPath_Call) Run

func (*HostNameResolverInterface_GetObjectPath_Call) RunAndReturn

type RecordBrowserInterface

type RecordBrowserInterface struct {
	mock.Mock
}

RecordBrowserInterface is an autogenerated mock type for the RecordBrowserInterface type

func NewRecordBrowserInterface

func NewRecordBrowserInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *RecordBrowserInterface

NewRecordBrowserInterface creates a new instance of RecordBrowserInterface. 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 (*RecordBrowserInterface) AddChannel

func (_m *RecordBrowserInterface) AddChannel() chan avahi.Record

AddChannel provides a mock function with given fields:

func (*RecordBrowserInterface) DispatchSignal

func (_m *RecordBrowserInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*RecordBrowserInterface) EXPECT

func (*RecordBrowserInterface) Free

func (_m *RecordBrowserInterface) Free()

Free provides a mock function with given fields:

func (*RecordBrowserInterface) GetObjectPath

func (_m *RecordBrowserInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

func (*RecordBrowserInterface) RemoveChannel

func (_m *RecordBrowserInterface) RemoveChannel() chan avahi.Record

RemoveChannel provides a mock function with given fields:

type RecordBrowserInterface_AddChannel_Call

type RecordBrowserInterface_AddChannel_Call struct {
	*mock.Call
}

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

func (*RecordBrowserInterface_AddChannel_Call) Return

func (*RecordBrowserInterface_AddChannel_Call) Run

func (*RecordBrowserInterface_AddChannel_Call) RunAndReturn

type RecordBrowserInterface_DispatchSignal_Call

type RecordBrowserInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*RecordBrowserInterface_DispatchSignal_Call) Return

func (*RecordBrowserInterface_DispatchSignal_Call) Run

func (*RecordBrowserInterface_DispatchSignal_Call) RunAndReturn

type RecordBrowserInterface_Expecter

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

func (*RecordBrowserInterface_Expecter) AddChannel

AddChannel is a helper method to define mock.On call

func (*RecordBrowserInterface_Expecter) DispatchSignal

func (_e *RecordBrowserInterface_Expecter) DispatchSignal(signal interface{}) *RecordBrowserInterface_DispatchSignal_Call

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*RecordBrowserInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*RecordBrowserInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

func (*RecordBrowserInterface_Expecter) RemoveChannel

RemoveChannel is a helper method to define mock.On call

type RecordBrowserInterface_Free_Call

type RecordBrowserInterface_Free_Call struct {
	*mock.Call
}

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

func (*RecordBrowserInterface_Free_Call) Return

func (*RecordBrowserInterface_Free_Call) Run

func (*RecordBrowserInterface_Free_Call) RunAndReturn

type RecordBrowserInterface_GetObjectPath_Call

type RecordBrowserInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*RecordBrowserInterface_GetObjectPath_Call) Return

func (*RecordBrowserInterface_GetObjectPath_Call) Run

func (*RecordBrowserInterface_GetObjectPath_Call) RunAndReturn

type RecordBrowserInterface_RemoveChannel_Call

type RecordBrowserInterface_RemoveChannel_Call struct {
	*mock.Call
}

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

func (*RecordBrowserInterface_RemoveChannel_Call) Return

func (*RecordBrowserInterface_RemoveChannel_Call) Run

func (*RecordBrowserInterface_RemoveChannel_Call) RunAndReturn

type ServerInterface

type ServerInterface struct {
	mock.Mock
}

ServerInterface is an autogenerated mock type for the ServerInterface type

func NewServerInterface

func NewServerInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServerInterface

NewServerInterface creates a new instance of ServerInterface. 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 (*ServerInterface) AddressResolverFree

func (_m *ServerInterface) AddressResolverFree(r avahi.AddressResolverInterface)

AddressResolverFree provides a mock function with given fields: r

func (*ServerInterface) AddressResolverNew

func (_m *ServerInterface) AddressResolverNew(iface int32, protocol int32, address string, flags uint32) (avahi.AddressResolverInterface, error)

AddressResolverNew provides a mock function with given fields: iface, protocol, address, flags

func (*ServerInterface) DomainBrowserFree

func (_m *ServerInterface) DomainBrowserFree(r avahi.DomainBrowserInterface)

DomainBrowserFree provides a mock function with given fields: r

func (*ServerInterface) DomainBrowserNew

func (_m *ServerInterface) DomainBrowserNew(iface int32, protocol int32, domain string, btype int32, flags uint32) (avahi.DomainBrowserInterface, error)

DomainBrowserNew provides a mock function with given fields: iface, protocol, domain, btype, flags

func (*ServerInterface) EXPECT

func (*ServerInterface) EntryGroupFree

func (_m *ServerInterface) EntryGroupFree(r avahi.EntryGroupInterface)

EntryGroupFree provides a mock function with given fields: r

func (*ServerInterface) EntryGroupNew

func (_m *ServerInterface) EntryGroupNew() (avahi.EntryGroupInterface, error)

EntryGroupNew provides a mock function with given fields:

func (*ServerInterface) GetAPIVersion

func (_m *ServerInterface) GetAPIVersion() (int32, error)

GetAPIVersion provides a mock function with given fields:

func (*ServerInterface) GetAlternativeHostName

func (_m *ServerInterface) GetAlternativeHostName(name string) (string, error)

GetAlternativeHostName provides a mock function with given fields: name

func (*ServerInterface) GetAlternativeServiceName

func (_m *ServerInterface) GetAlternativeServiceName(name string) (string, error)

GetAlternativeServiceName provides a mock function with given fields: name

func (*ServerInterface) GetDomainName

func (_m *ServerInterface) GetDomainName() (string, error)

GetDomainName provides a mock function with given fields:

func (*ServerInterface) GetHostName

func (_m *ServerInterface) GetHostName() (string, error)

GetHostName provides a mock function with given fields:

func (*ServerInterface) GetHostNameFqdn

func (_m *ServerInterface) GetHostNameFqdn() (string, error)

GetHostNameFqdn provides a mock function with given fields:

func (*ServerInterface) GetLocalServiceCookie

func (_m *ServerInterface) GetLocalServiceCookie() (int32, error)

GetLocalServiceCookie provides a mock function with given fields:

func (*ServerInterface) GetNetworkInterfaceIndexByName

func (_m *ServerInterface) GetNetworkInterfaceIndexByName(name string) (int32, error)

GetNetworkInterfaceIndexByName provides a mock function with given fields: name

func (*ServerInterface) GetNetworkInterfaceNameByIndex

func (_m *ServerInterface) GetNetworkInterfaceNameByIndex(index int32) (string, error)

GetNetworkInterfaceNameByIndex provides a mock function with given fields: index

func (*ServerInterface) GetState

func (_m *ServerInterface) GetState() (int32, error)

GetState provides a mock function with given fields:

func (*ServerInterface) GetVersionString

func (_m *ServerInterface) GetVersionString() (string, error)

GetVersionString provides a mock function with given fields:

func (*ServerInterface) HostNameResolverNew

func (_m *ServerInterface) HostNameResolverNew(iface int32, protocol int32, name string, aprotocol int32, flags uint32) (avahi.HostNameResolverInterface, error)

HostNameResolverNew provides a mock function with given fields: iface, protocol, name, aprotocol, flags

func (*ServerInterface) IsNSSSupportAvailable

func (_m *ServerInterface) IsNSSSupportAvailable() (bool, error)

IsNSSSupportAvailable provides a mock function with given fields:

func (*ServerInterface) RecordBrowserFree

func (_m *ServerInterface) RecordBrowserFree(r avahi.RecordBrowserInterface)

RecordBrowserFree provides a mock function with given fields: r

func (*ServerInterface) RecordBrowserNew

func (_m *ServerInterface) RecordBrowserNew(iface int32, protocol int32, name string, class uint16, recordType uint16, flags uint32) (avahi.RecordBrowserInterface, error)

RecordBrowserNew provides a mock function with given fields: iface, protocol, name, class, recordType, flags

func (*ServerInterface) ResolveAddress

func (_m *ServerInterface) ResolveAddress(iface int32, protocol int32, address string, flags uint32) (avahi.Address, error)

ResolveAddress provides a mock function with given fields: iface, protocol, address, flags

func (*ServerInterface) ResolveHostName

func (_m *ServerInterface) ResolveHostName(iface int32, protocol int32, name string, aprotocol int32, flags uint32) (avahi.HostName, error)

ResolveHostName provides a mock function with given fields: iface, protocol, name, aprotocol, flags

func (*ServerInterface) ResolveService

func (_m *ServerInterface) ResolveService(iface int32, protocol int32, name string, serviceType string, domain string, aprotocol int32, flags uint32) (avahi.Service, error)

ResolveService provides a mock function with given fields: iface, protocol, name, serviceType, domain, aprotocol, flags

func (*ServerInterface) ServiceBrowserFree

func (_m *ServerInterface) ServiceBrowserFree(r avahi.ServiceBrowserInterface)

ServiceBrowserFree provides a mock function with given fields: r

func (*ServerInterface) ServiceBrowserNew

func (_m *ServerInterface) ServiceBrowserNew(addChan chan avahi.Service, removeChan chan avahi.Service, iface int32, protocol int32, serviceType string, domain string, flags uint32) (avahi.ServiceBrowserInterface, error)

ServiceBrowserNew provides a mock function with given fields: addChan, removeChan, iface, protocol, serviceType, domain, flags

func (*ServerInterface) ServiceResolverFree

func (_m *ServerInterface) ServiceResolverFree(r avahi.ServiceResolverInterface)

ServiceResolverFree provides a mock function with given fields: r

func (*ServerInterface) ServiceResolverNew

func (_m *ServerInterface) ServiceResolverNew(iface int32, protocol int32, name string, serviceType string, domain string, aprotocol int32, flags uint32) (avahi.ServiceResolverInterface, error)

ServiceResolverNew provides a mock function with given fields: iface, protocol, name, serviceType, domain, aprotocol, flags

func (*ServerInterface) ServiceTypeBrowserFree

func (_m *ServerInterface) ServiceTypeBrowserFree(r avahi.ServiceTypeBrowserInterface)

ServiceTypeBrowserFree provides a mock function with given fields: r

func (*ServerInterface) ServiceTypeBrowserNew

func (_m *ServerInterface) ServiceTypeBrowserNew(iface int32, protocol int32, domain string, flags uint32) (avahi.ServiceTypeBrowserInterface, error)

ServiceTypeBrowserNew provides a mock function with given fields: iface, protocol, domain, flags

func (*ServerInterface) SetServerName

func (_m *ServerInterface) SetServerName(name string) error

SetServerName provides a mock function with given fields: name

func (*ServerInterface) Setup

func (_m *ServerInterface) Setup(eventCB avahi.EventCB) error

Setup provides a mock function with given fields: eventCB

func (*ServerInterface) Shutdown

func (_m *ServerInterface) Shutdown()

Shutdown provides a mock function with given fields:

func (*ServerInterface) Start

func (_m *ServerInterface) Start()

Start provides a mock function with given fields:

type ServerInterface_AddressResolverFree_Call

type ServerInterface_AddressResolverFree_Call struct {
	*mock.Call
}

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

func (*ServerInterface_AddressResolverFree_Call) Return

func (*ServerInterface_AddressResolverFree_Call) Run

func (*ServerInterface_AddressResolverFree_Call) RunAndReturn

type ServerInterface_AddressResolverNew_Call

type ServerInterface_AddressResolverNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_AddressResolverNew_Call) Return

func (*ServerInterface_AddressResolverNew_Call) Run

func (*ServerInterface_AddressResolverNew_Call) RunAndReturn

type ServerInterface_DomainBrowserFree_Call

type ServerInterface_DomainBrowserFree_Call struct {
	*mock.Call
}

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

func (*ServerInterface_DomainBrowserFree_Call) Return

func (*ServerInterface_DomainBrowserFree_Call) Run

func (*ServerInterface_DomainBrowserFree_Call) RunAndReturn

type ServerInterface_DomainBrowserNew_Call

type ServerInterface_DomainBrowserNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_DomainBrowserNew_Call) Return

func (*ServerInterface_DomainBrowserNew_Call) Run

func (_c *ServerInterface_DomainBrowserNew_Call) Run(run func(iface int32, protocol int32, domain string, btype int32, flags uint32)) *ServerInterface_DomainBrowserNew_Call

func (*ServerInterface_DomainBrowserNew_Call) RunAndReturn

type ServerInterface_EntryGroupFree_Call

type ServerInterface_EntryGroupFree_Call struct {
	*mock.Call
}

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

func (*ServerInterface_EntryGroupFree_Call) Return

func (*ServerInterface_EntryGroupFree_Call) Run

func (*ServerInterface_EntryGroupFree_Call) RunAndReturn

type ServerInterface_EntryGroupNew_Call

type ServerInterface_EntryGroupNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_EntryGroupNew_Call) Return

func (*ServerInterface_EntryGroupNew_Call) Run

func (*ServerInterface_EntryGroupNew_Call) RunAndReturn

type ServerInterface_Expecter

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

func (*ServerInterface_Expecter) AddressResolverFree

func (_e *ServerInterface_Expecter) AddressResolverFree(r interface{}) *ServerInterface_AddressResolverFree_Call

AddressResolverFree is a helper method to define mock.On call

  • r avahi.AddressResolverInterface

func (*ServerInterface_Expecter) AddressResolverNew

func (_e *ServerInterface_Expecter) AddressResolverNew(iface interface{}, protocol interface{}, address interface{}, flags interface{}) *ServerInterface_AddressResolverNew_Call

AddressResolverNew is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • address string
  • flags uint32

func (*ServerInterface_Expecter) DomainBrowserFree

func (_e *ServerInterface_Expecter) DomainBrowserFree(r interface{}) *ServerInterface_DomainBrowserFree_Call

DomainBrowserFree is a helper method to define mock.On call

  • r avahi.DomainBrowserInterface

func (*ServerInterface_Expecter) DomainBrowserNew

func (_e *ServerInterface_Expecter) DomainBrowserNew(iface interface{}, protocol interface{}, domain interface{}, btype interface{}, flags interface{}) *ServerInterface_DomainBrowserNew_Call

DomainBrowserNew is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • domain string
  • btype int32
  • flags uint32

func (*ServerInterface_Expecter) EntryGroupFree

func (_e *ServerInterface_Expecter) EntryGroupFree(r interface{}) *ServerInterface_EntryGroupFree_Call

EntryGroupFree is a helper method to define mock.On call

  • r avahi.EntryGroupInterface

func (*ServerInterface_Expecter) EntryGroupNew

EntryGroupNew is a helper method to define mock.On call

func (*ServerInterface_Expecter) GetAPIVersion

GetAPIVersion is a helper method to define mock.On call

func (*ServerInterface_Expecter) GetAlternativeHostName

func (_e *ServerInterface_Expecter) GetAlternativeHostName(name interface{}) *ServerInterface_GetAlternativeHostName_Call

GetAlternativeHostName is a helper method to define mock.On call

  • name string

func (*ServerInterface_Expecter) GetAlternativeServiceName

func (_e *ServerInterface_Expecter) GetAlternativeServiceName(name interface{}) *ServerInterface_GetAlternativeServiceName_Call

GetAlternativeServiceName is a helper method to define mock.On call

  • name string

func (*ServerInterface_Expecter) GetDomainName

GetDomainName is a helper method to define mock.On call

func (*ServerInterface_Expecter) GetHostName

GetHostName is a helper method to define mock.On call

func (*ServerInterface_Expecter) GetHostNameFqdn

GetHostNameFqdn is a helper method to define mock.On call

func (*ServerInterface_Expecter) GetLocalServiceCookie

GetLocalServiceCookie is a helper method to define mock.On call

func (*ServerInterface_Expecter) GetNetworkInterfaceIndexByName

func (_e *ServerInterface_Expecter) GetNetworkInterfaceIndexByName(name interface{}) *ServerInterface_GetNetworkInterfaceIndexByName_Call

GetNetworkInterfaceIndexByName is a helper method to define mock.On call

  • name string

func (*ServerInterface_Expecter) GetNetworkInterfaceNameByIndex

func (_e *ServerInterface_Expecter) GetNetworkInterfaceNameByIndex(index interface{}) *ServerInterface_GetNetworkInterfaceNameByIndex_Call

GetNetworkInterfaceNameByIndex is a helper method to define mock.On call

  • index int32

func (*ServerInterface_Expecter) GetState

GetState is a helper method to define mock.On call

func (*ServerInterface_Expecter) GetVersionString

GetVersionString is a helper method to define mock.On call

func (*ServerInterface_Expecter) HostNameResolverNew

func (_e *ServerInterface_Expecter) HostNameResolverNew(iface interface{}, protocol interface{}, name interface{}, aprotocol interface{}, flags interface{}) *ServerInterface_HostNameResolverNew_Call

HostNameResolverNew is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • name string
  • aprotocol int32
  • flags uint32

func (*ServerInterface_Expecter) IsNSSSupportAvailable

IsNSSSupportAvailable is a helper method to define mock.On call

func (*ServerInterface_Expecter) RecordBrowserFree

func (_e *ServerInterface_Expecter) RecordBrowserFree(r interface{}) *ServerInterface_RecordBrowserFree_Call

RecordBrowserFree is a helper method to define mock.On call

  • r avahi.RecordBrowserInterface

func (*ServerInterface_Expecter) RecordBrowserNew

func (_e *ServerInterface_Expecter) RecordBrowserNew(iface interface{}, protocol interface{}, name interface{}, class interface{}, recordType interface{}, flags interface{}) *ServerInterface_RecordBrowserNew_Call

RecordBrowserNew is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • name string
  • class uint16
  • recordType uint16
  • flags uint32

func (*ServerInterface_Expecter) ResolveAddress

func (_e *ServerInterface_Expecter) ResolveAddress(iface interface{}, protocol interface{}, address interface{}, flags interface{}) *ServerInterface_ResolveAddress_Call

ResolveAddress is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • address string
  • flags uint32

func (*ServerInterface_Expecter) ResolveHostName

func (_e *ServerInterface_Expecter) ResolveHostName(iface interface{}, protocol interface{}, name interface{}, aprotocol interface{}, flags interface{}) *ServerInterface_ResolveHostName_Call

ResolveHostName is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • name string
  • aprotocol int32
  • flags uint32

func (*ServerInterface_Expecter) ResolveService

func (_e *ServerInterface_Expecter) ResolveService(iface interface{}, protocol interface{}, name interface{}, serviceType interface{}, domain interface{}, aprotocol interface{}, flags interface{}) *ServerInterface_ResolveService_Call

ResolveService is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • name string
  • serviceType string
  • domain string
  • aprotocol int32
  • flags uint32

func (*ServerInterface_Expecter) ServiceBrowserFree

func (_e *ServerInterface_Expecter) ServiceBrowserFree(r interface{}) *ServerInterface_ServiceBrowserFree_Call

ServiceBrowserFree is a helper method to define mock.On call

  • r avahi.ServiceBrowserInterface

func (*ServerInterface_Expecter) ServiceBrowserNew

func (_e *ServerInterface_Expecter) ServiceBrowserNew(addChan interface{}, removeChan interface{}, iface interface{}, protocol interface{}, serviceType interface{}, domain interface{}, flags interface{}) *ServerInterface_ServiceBrowserNew_Call

ServiceBrowserNew is a helper method to define mock.On call

  • addChan chan avahi.Service
  • removeChan chan avahi.Service
  • iface int32
  • protocol int32
  • serviceType string
  • domain string
  • flags uint32

func (*ServerInterface_Expecter) ServiceResolverFree

func (_e *ServerInterface_Expecter) ServiceResolverFree(r interface{}) *ServerInterface_ServiceResolverFree_Call

ServiceResolverFree is a helper method to define mock.On call

  • r avahi.ServiceResolverInterface

func (*ServerInterface_Expecter) ServiceResolverNew

func (_e *ServerInterface_Expecter) ServiceResolverNew(iface interface{}, protocol interface{}, name interface{}, serviceType interface{}, domain interface{}, aprotocol interface{}, flags interface{}) *ServerInterface_ServiceResolverNew_Call

ServiceResolverNew is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • name string
  • serviceType string
  • domain string
  • aprotocol int32
  • flags uint32

func (*ServerInterface_Expecter) ServiceTypeBrowserFree

func (_e *ServerInterface_Expecter) ServiceTypeBrowserFree(r interface{}) *ServerInterface_ServiceTypeBrowserFree_Call

ServiceTypeBrowserFree is a helper method to define mock.On call

  • r avahi.ServiceTypeBrowserInterface

func (*ServerInterface_Expecter) ServiceTypeBrowserNew

func (_e *ServerInterface_Expecter) ServiceTypeBrowserNew(iface interface{}, protocol interface{}, domain interface{}, flags interface{}) *ServerInterface_ServiceTypeBrowserNew_Call

ServiceTypeBrowserNew is a helper method to define mock.On call

  • iface int32
  • protocol int32
  • domain string
  • flags uint32

func (*ServerInterface_Expecter) SetServerName

func (_e *ServerInterface_Expecter) SetServerName(name interface{}) *ServerInterface_SetServerName_Call

SetServerName is a helper method to define mock.On call

  • name string

func (*ServerInterface_Expecter) Setup

func (_e *ServerInterface_Expecter) Setup(eventCB interface{}) *ServerInterface_Setup_Call

Setup is a helper method to define mock.On call

  • eventCB avahi.EventCB

func (*ServerInterface_Expecter) Shutdown

Shutdown is a helper method to define mock.On call

func (*ServerInterface_Expecter) Start

Start is a helper method to define mock.On call

type ServerInterface_GetAPIVersion_Call

type ServerInterface_GetAPIVersion_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetAPIVersion_Call) Return

func (*ServerInterface_GetAPIVersion_Call) Run

func (*ServerInterface_GetAPIVersion_Call) RunAndReturn

type ServerInterface_GetAlternativeHostName_Call

type ServerInterface_GetAlternativeHostName_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetAlternativeHostName_Call) Return

func (*ServerInterface_GetAlternativeHostName_Call) Run

func (*ServerInterface_GetAlternativeHostName_Call) RunAndReturn

type ServerInterface_GetAlternativeServiceName_Call

type ServerInterface_GetAlternativeServiceName_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetAlternativeServiceName_Call) Return

func (*ServerInterface_GetAlternativeServiceName_Call) Run

func (*ServerInterface_GetAlternativeServiceName_Call) RunAndReturn

type ServerInterface_GetDomainName_Call

type ServerInterface_GetDomainName_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetDomainName_Call) Return

func (*ServerInterface_GetDomainName_Call) Run

func (*ServerInterface_GetDomainName_Call) RunAndReturn

type ServerInterface_GetHostNameFqdn_Call

type ServerInterface_GetHostNameFqdn_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetHostNameFqdn_Call) Return

func (*ServerInterface_GetHostNameFqdn_Call) Run

func (*ServerInterface_GetHostNameFqdn_Call) RunAndReturn

type ServerInterface_GetHostName_Call

type ServerInterface_GetHostName_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetHostName_Call) Return

func (*ServerInterface_GetHostName_Call) Run

func (*ServerInterface_GetHostName_Call) RunAndReturn

type ServerInterface_GetLocalServiceCookie_Call

type ServerInterface_GetLocalServiceCookie_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetLocalServiceCookie_Call) Return

func (*ServerInterface_GetLocalServiceCookie_Call) Run

func (*ServerInterface_GetLocalServiceCookie_Call) RunAndReturn

type ServerInterface_GetNetworkInterfaceIndexByName_Call

type ServerInterface_GetNetworkInterfaceIndexByName_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetNetworkInterfaceIndexByName_Call) Return

func (*ServerInterface_GetNetworkInterfaceIndexByName_Call) Run

func (*ServerInterface_GetNetworkInterfaceIndexByName_Call) RunAndReturn

type ServerInterface_GetNetworkInterfaceNameByIndex_Call

type ServerInterface_GetNetworkInterfaceNameByIndex_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetNetworkInterfaceNameByIndex_Call) Return

func (*ServerInterface_GetNetworkInterfaceNameByIndex_Call) Run

func (*ServerInterface_GetNetworkInterfaceNameByIndex_Call) RunAndReturn

type ServerInterface_GetState_Call

type ServerInterface_GetState_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetState_Call) Return

func (*ServerInterface_GetState_Call) Run

func (*ServerInterface_GetState_Call) RunAndReturn

type ServerInterface_GetVersionString_Call

type ServerInterface_GetVersionString_Call struct {
	*mock.Call
}

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

func (*ServerInterface_GetVersionString_Call) Return

func (*ServerInterface_GetVersionString_Call) Run

func (*ServerInterface_GetVersionString_Call) RunAndReturn

type ServerInterface_HostNameResolverNew_Call

type ServerInterface_HostNameResolverNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_HostNameResolverNew_Call) Return

func (*ServerInterface_HostNameResolverNew_Call) Run

func (_c *ServerInterface_HostNameResolverNew_Call) Run(run func(iface int32, protocol int32, name string, aprotocol int32, flags uint32)) *ServerInterface_HostNameResolverNew_Call

func (*ServerInterface_HostNameResolverNew_Call) RunAndReturn

type ServerInterface_IsNSSSupportAvailable_Call

type ServerInterface_IsNSSSupportAvailable_Call struct {
	*mock.Call
}

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

func (*ServerInterface_IsNSSSupportAvailable_Call) Return

func (*ServerInterface_IsNSSSupportAvailable_Call) Run

func (*ServerInterface_IsNSSSupportAvailable_Call) RunAndReturn

type ServerInterface_RecordBrowserFree_Call

type ServerInterface_RecordBrowserFree_Call struct {
	*mock.Call
}

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

func (*ServerInterface_RecordBrowserFree_Call) Return

func (*ServerInterface_RecordBrowserFree_Call) Run

func (*ServerInterface_RecordBrowserFree_Call) RunAndReturn

type ServerInterface_RecordBrowserNew_Call

type ServerInterface_RecordBrowserNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_RecordBrowserNew_Call) Return

func (*ServerInterface_RecordBrowserNew_Call) Run

func (_c *ServerInterface_RecordBrowserNew_Call) Run(run func(iface int32, protocol int32, name string, class uint16, recordType uint16, flags uint32)) *ServerInterface_RecordBrowserNew_Call

func (*ServerInterface_RecordBrowserNew_Call) RunAndReturn

type ServerInterface_ResolveAddress_Call

type ServerInterface_ResolveAddress_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ResolveAddress_Call) Return

func (*ServerInterface_ResolveAddress_Call) Run

func (_c *ServerInterface_ResolveAddress_Call) Run(run func(iface int32, protocol int32, address string, flags uint32)) *ServerInterface_ResolveAddress_Call

func (*ServerInterface_ResolveAddress_Call) RunAndReturn

type ServerInterface_ResolveHostName_Call

type ServerInterface_ResolveHostName_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ResolveHostName_Call) Return

func (*ServerInterface_ResolveHostName_Call) Run

func (_c *ServerInterface_ResolveHostName_Call) Run(run func(iface int32, protocol int32, name string, aprotocol int32, flags uint32)) *ServerInterface_ResolveHostName_Call

func (*ServerInterface_ResolveHostName_Call) RunAndReturn

type ServerInterface_ResolveService_Call

type ServerInterface_ResolveService_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ResolveService_Call) Return

func (*ServerInterface_ResolveService_Call) Run

func (_c *ServerInterface_ResolveService_Call) Run(run func(iface int32, protocol int32, name string, serviceType string, domain string, aprotocol int32, flags uint32)) *ServerInterface_ResolveService_Call

func (*ServerInterface_ResolveService_Call) RunAndReturn

type ServerInterface_ServiceBrowserFree_Call

type ServerInterface_ServiceBrowserFree_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ServiceBrowserFree_Call) Return

func (*ServerInterface_ServiceBrowserFree_Call) Run

func (*ServerInterface_ServiceBrowserFree_Call) RunAndReturn

type ServerInterface_ServiceBrowserNew_Call

type ServerInterface_ServiceBrowserNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ServiceBrowserNew_Call) Return

func (*ServerInterface_ServiceBrowserNew_Call) Run

func (_c *ServerInterface_ServiceBrowserNew_Call) Run(run func(addChan chan avahi.Service, removeChan chan avahi.Service, iface int32, protocol int32, serviceType string, domain string, flags uint32)) *ServerInterface_ServiceBrowserNew_Call

func (*ServerInterface_ServiceBrowserNew_Call) RunAndReturn

type ServerInterface_ServiceResolverFree_Call

type ServerInterface_ServiceResolverFree_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ServiceResolverFree_Call) Return

func (*ServerInterface_ServiceResolverFree_Call) Run

func (*ServerInterface_ServiceResolverFree_Call) RunAndReturn

type ServerInterface_ServiceResolverNew_Call

type ServerInterface_ServiceResolverNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ServiceResolverNew_Call) Return

func (*ServerInterface_ServiceResolverNew_Call) Run

func (_c *ServerInterface_ServiceResolverNew_Call) Run(run func(iface int32, protocol int32, name string, serviceType string, domain string, aprotocol int32, flags uint32)) *ServerInterface_ServiceResolverNew_Call

type ServerInterface_ServiceTypeBrowserFree_Call

type ServerInterface_ServiceTypeBrowserFree_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ServiceTypeBrowserFree_Call) Return

func (*ServerInterface_ServiceTypeBrowserFree_Call) Run

func (*ServerInterface_ServiceTypeBrowserFree_Call) RunAndReturn

type ServerInterface_ServiceTypeBrowserNew_Call

type ServerInterface_ServiceTypeBrowserNew_Call struct {
	*mock.Call
}

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

func (*ServerInterface_ServiceTypeBrowserNew_Call) Return

func (*ServerInterface_ServiceTypeBrowserNew_Call) Run

func (*ServerInterface_ServiceTypeBrowserNew_Call) RunAndReturn

type ServerInterface_SetServerName_Call

type ServerInterface_SetServerName_Call struct {
	*mock.Call
}

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

func (*ServerInterface_SetServerName_Call) Return

func (*ServerInterface_SetServerName_Call) Run

func (*ServerInterface_SetServerName_Call) RunAndReturn

type ServerInterface_Setup_Call

type ServerInterface_Setup_Call struct {
	*mock.Call
}

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

func (*ServerInterface_Setup_Call) Return

func (*ServerInterface_Setup_Call) Run

func (*ServerInterface_Setup_Call) RunAndReturn

type ServerInterface_Shutdown_Call

type ServerInterface_Shutdown_Call struct {
	*mock.Call
}

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

func (*ServerInterface_Shutdown_Call) Return

func (*ServerInterface_Shutdown_Call) Run

func (*ServerInterface_Shutdown_Call) RunAndReturn

func (_c *ServerInterface_Shutdown_Call) RunAndReturn(run func()) *ServerInterface_Shutdown_Call

type ServerInterface_Start_Call

type ServerInterface_Start_Call struct {
	*mock.Call
}

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

func (*ServerInterface_Start_Call) Return

func (*ServerInterface_Start_Call) Run

func (*ServerInterface_Start_Call) RunAndReturn

func (_c *ServerInterface_Start_Call) RunAndReturn(run func()) *ServerInterface_Start_Call

type ServiceBrowserInterface

type ServiceBrowserInterface struct {
	mock.Mock
}

ServiceBrowserInterface is an autogenerated mock type for the ServiceBrowserInterface type

func NewServiceBrowserInterface

func NewServiceBrowserInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceBrowserInterface

NewServiceBrowserInterface creates a new instance of ServiceBrowserInterface. 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 (*ServiceBrowserInterface) AddChannel

func (_m *ServiceBrowserInterface) AddChannel() chan avahi.Service

AddChannel provides a mock function with given fields:

func (*ServiceBrowserInterface) DispatchSignal

func (_m *ServiceBrowserInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*ServiceBrowserInterface) EXPECT

func (*ServiceBrowserInterface) Free

func (_m *ServiceBrowserInterface) Free()

Free provides a mock function with given fields:

func (*ServiceBrowserInterface) GetObjectPath

func (_m *ServiceBrowserInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

func (*ServiceBrowserInterface) RemoveChannel

func (_m *ServiceBrowserInterface) RemoveChannel() chan avahi.Service

RemoveChannel provides a mock function with given fields:

type ServiceBrowserInterface_AddChannel_Call

type ServiceBrowserInterface_AddChannel_Call struct {
	*mock.Call
}

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

func (*ServiceBrowserInterface_AddChannel_Call) Return

func (*ServiceBrowserInterface_AddChannel_Call) Run

func (*ServiceBrowserInterface_AddChannel_Call) RunAndReturn

type ServiceBrowserInterface_DispatchSignal_Call

type ServiceBrowserInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*ServiceBrowserInterface_DispatchSignal_Call) Return

func (*ServiceBrowserInterface_DispatchSignal_Call) Run

func (*ServiceBrowserInterface_DispatchSignal_Call) RunAndReturn

type ServiceBrowserInterface_Expecter

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

func (*ServiceBrowserInterface_Expecter) AddChannel

AddChannel is a helper method to define mock.On call

func (*ServiceBrowserInterface_Expecter) DispatchSignal

func (_e *ServiceBrowserInterface_Expecter) DispatchSignal(signal interface{}) *ServiceBrowserInterface_DispatchSignal_Call

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*ServiceBrowserInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*ServiceBrowserInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

func (*ServiceBrowserInterface_Expecter) RemoveChannel

RemoveChannel is a helper method to define mock.On call

type ServiceBrowserInterface_Free_Call

type ServiceBrowserInterface_Free_Call struct {
	*mock.Call
}

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

func (*ServiceBrowserInterface_Free_Call) Return

func (*ServiceBrowserInterface_Free_Call) Run

func (*ServiceBrowserInterface_Free_Call) RunAndReturn

type ServiceBrowserInterface_GetObjectPath_Call

type ServiceBrowserInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*ServiceBrowserInterface_GetObjectPath_Call) Return

func (*ServiceBrowserInterface_GetObjectPath_Call) Run

func (*ServiceBrowserInterface_GetObjectPath_Call) RunAndReturn

type ServiceBrowserInterface_RemoveChannel_Call

type ServiceBrowserInterface_RemoveChannel_Call struct {
	*mock.Call
}

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

func (*ServiceBrowserInterface_RemoveChannel_Call) Return

func (*ServiceBrowserInterface_RemoveChannel_Call) Run

func (*ServiceBrowserInterface_RemoveChannel_Call) RunAndReturn

type ServiceResolverInterface

type ServiceResolverInterface struct {
	mock.Mock
}

ServiceResolverInterface is an autogenerated mock type for the ServiceResolverInterface type

func NewServiceResolverInterface

func NewServiceResolverInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceResolverInterface

NewServiceResolverInterface creates a new instance of ServiceResolverInterface. 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 (*ServiceResolverInterface) DispatchSignal

func (_m *ServiceResolverInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*ServiceResolverInterface) EXPECT

func (*ServiceResolverInterface) FoundChannel

func (_m *ServiceResolverInterface) FoundChannel() chan avahi.Service

FoundChannel provides a mock function with given fields:

func (*ServiceResolverInterface) Free

func (_m *ServiceResolverInterface) Free()

Free provides a mock function with given fields:

func (*ServiceResolverInterface) GetObjectPath

func (_m *ServiceResolverInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

type ServiceResolverInterface_DispatchSignal_Call

type ServiceResolverInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*ServiceResolverInterface_DispatchSignal_Call) Return

func (*ServiceResolverInterface_DispatchSignal_Call) Run

func (*ServiceResolverInterface_DispatchSignal_Call) RunAndReturn

type ServiceResolverInterface_Expecter

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

func (*ServiceResolverInterface_Expecter) DispatchSignal

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*ServiceResolverInterface_Expecter) FoundChannel

FoundChannel is a helper method to define mock.On call

func (*ServiceResolverInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*ServiceResolverInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

type ServiceResolverInterface_FoundChannel_Call

type ServiceResolverInterface_FoundChannel_Call struct {
	*mock.Call
}

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

func (*ServiceResolverInterface_FoundChannel_Call) Return

func (*ServiceResolverInterface_FoundChannel_Call) Run

func (*ServiceResolverInterface_FoundChannel_Call) RunAndReturn

type ServiceResolverInterface_Free_Call

type ServiceResolverInterface_Free_Call struct {
	*mock.Call
}

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

func (*ServiceResolverInterface_Free_Call) Return

func (*ServiceResolverInterface_Free_Call) Run

func (*ServiceResolverInterface_Free_Call) RunAndReturn

type ServiceResolverInterface_GetObjectPath_Call

type ServiceResolverInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*ServiceResolverInterface_GetObjectPath_Call) Return

func (*ServiceResolverInterface_GetObjectPath_Call) Run

func (*ServiceResolverInterface_GetObjectPath_Call) RunAndReturn

type ServiceTypeBrowserInterface

type ServiceTypeBrowserInterface struct {
	mock.Mock
}

ServiceTypeBrowserInterface is an autogenerated mock type for the ServiceTypeBrowserInterface type

func NewServiceTypeBrowserInterface

func NewServiceTypeBrowserInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceTypeBrowserInterface

NewServiceTypeBrowserInterface creates a new instance of ServiceTypeBrowserInterface. 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 (*ServiceTypeBrowserInterface) AddChannel

func (_m *ServiceTypeBrowserInterface) AddChannel() chan avahi.ServiceType

AddChannel provides a mock function with given fields:

func (*ServiceTypeBrowserInterface) DispatchSignal

func (_m *ServiceTypeBrowserInterface) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*ServiceTypeBrowserInterface) EXPECT

func (*ServiceTypeBrowserInterface) Free

func (_m *ServiceTypeBrowserInterface) Free()

Free provides a mock function with given fields:

func (*ServiceTypeBrowserInterface) GetObjectPath

func (_m *ServiceTypeBrowserInterface) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

func (*ServiceTypeBrowserInterface) RemoveChannel

func (_m *ServiceTypeBrowserInterface) RemoveChannel() chan avahi.ServiceType

RemoveChannel provides a mock function with given fields:

type ServiceTypeBrowserInterface_AddChannel_Call

type ServiceTypeBrowserInterface_AddChannel_Call struct {
	*mock.Call
}

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

func (*ServiceTypeBrowserInterface_AddChannel_Call) Return

func (*ServiceTypeBrowserInterface_AddChannel_Call) Run

func (*ServiceTypeBrowserInterface_AddChannel_Call) RunAndReturn

type ServiceTypeBrowserInterface_DispatchSignal_Call

type ServiceTypeBrowserInterface_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*ServiceTypeBrowserInterface_DispatchSignal_Call) Return

func (*ServiceTypeBrowserInterface_DispatchSignal_Call) Run

func (*ServiceTypeBrowserInterface_DispatchSignal_Call) RunAndReturn

type ServiceTypeBrowserInterface_Expecter

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

func (*ServiceTypeBrowserInterface_Expecter) AddChannel

AddChannel is a helper method to define mock.On call

func (*ServiceTypeBrowserInterface_Expecter) DispatchSignal

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*ServiceTypeBrowserInterface_Expecter) Free

Free is a helper method to define mock.On call

func (*ServiceTypeBrowserInterface_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

func (*ServiceTypeBrowserInterface_Expecter) RemoveChannel

RemoveChannel is a helper method to define mock.On call

type ServiceTypeBrowserInterface_Free_Call

type ServiceTypeBrowserInterface_Free_Call struct {
	*mock.Call
}

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

func (*ServiceTypeBrowserInterface_Free_Call) Return

func (*ServiceTypeBrowserInterface_Free_Call) Run

func (*ServiceTypeBrowserInterface_Free_Call) RunAndReturn

type ServiceTypeBrowserInterface_GetObjectPath_Call

type ServiceTypeBrowserInterface_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*ServiceTypeBrowserInterface_GetObjectPath_Call) Return

func (*ServiceTypeBrowserInterface_GetObjectPath_Call) Run

func (*ServiceTypeBrowserInterface_GetObjectPath_Call) RunAndReturn

type ServiceTypeBrowserInterface_RemoveChannel_Call

type ServiceTypeBrowserInterface_RemoveChannel_Call struct {
	*mock.Call
}

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

func (*ServiceTypeBrowserInterface_RemoveChannel_Call) Return

func (*ServiceTypeBrowserInterface_RemoveChannel_Call) Run

func (*ServiceTypeBrowserInterface_RemoveChannel_Call) RunAndReturn

type SignalEmitter

type SignalEmitter struct {
	mock.Mock
}

SignalEmitter is an autogenerated mock type for the SignalEmitter type

func NewSignalEmitter

func NewSignalEmitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SignalEmitter

NewSignalEmitter creates a new instance of SignalEmitter. 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 (*SignalEmitter) DispatchSignal

func (_m *SignalEmitter) DispatchSignal(signal *dbus.Signal) error

DispatchSignal provides a mock function with given fields: signal

func (*SignalEmitter) EXPECT

func (_m *SignalEmitter) EXPECT() *SignalEmitter_Expecter

func (*SignalEmitter) Free

func (_m *SignalEmitter) Free()

Free provides a mock function with given fields:

func (*SignalEmitter) GetObjectPath

func (_m *SignalEmitter) GetObjectPath() dbus.ObjectPath

GetObjectPath provides a mock function with given fields:

type SignalEmitter_DispatchSignal_Call

type SignalEmitter_DispatchSignal_Call struct {
	*mock.Call
}

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

func (*SignalEmitter_DispatchSignal_Call) Return

func (*SignalEmitter_DispatchSignal_Call) Run

func (*SignalEmitter_DispatchSignal_Call) RunAndReturn

type SignalEmitter_Expecter

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

func (*SignalEmitter_Expecter) DispatchSignal

func (_e *SignalEmitter_Expecter) DispatchSignal(signal interface{}) *SignalEmitter_DispatchSignal_Call

DispatchSignal is a helper method to define mock.On call

  • signal *dbus.Signal

func (*SignalEmitter_Expecter) Free

Free is a helper method to define mock.On call

func (*SignalEmitter_Expecter) GetObjectPath

GetObjectPath is a helper method to define mock.On call

type SignalEmitter_Free_Call

type SignalEmitter_Free_Call struct {
	*mock.Call
}

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

func (*SignalEmitter_Free_Call) Return

func (*SignalEmitter_Free_Call) Run

func (_c *SignalEmitter_Free_Call) Run(run func()) *SignalEmitter_Free_Call

func (*SignalEmitter_Free_Call) RunAndReturn

func (_c *SignalEmitter_Free_Call) RunAndReturn(run func()) *SignalEmitter_Free_Call

type SignalEmitter_GetObjectPath_Call

type SignalEmitter_GetObjectPath_Call struct {
	*mock.Call
}

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

func (*SignalEmitter_GetObjectPath_Call) Return

func (*SignalEmitter_GetObjectPath_Call) Run

func (*SignalEmitter_GetObjectPath_Call) RunAndReturn

Jump to

Keyboard shortcuts

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