mock_ble

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_ble is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAddr

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

MockAddr is a mock of Addr interface.

func NewMockAddr

func NewMockAddr(ctrl *gomock.Controller) *MockAddr

NewMockAddr creates a new mock instance.

func (*MockAddr) EXPECT

func (m *MockAddr) EXPECT() *MockAddrMockRecorder

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

func (*MockAddr) String

func (m *MockAddr) String() string

String mocks base method.

type MockAddrMockRecorder

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

MockAddrMockRecorder is the mock recorder for MockAddr.

func (*MockAddrMockRecorder) String

func (mr *MockAddrMockRecorder) String() *gomock.Call

String indicates an expected call of String.

type MockAdvertisement

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

MockAdvertisement is a mock of Advertisement interface.

func NewMockAdvertisement

func NewMockAdvertisement(ctrl *gomock.Controller) *MockAdvertisement

NewMockAdvertisement creates a new mock instance.

func (*MockAdvertisement) Addr

func (m *MockAdvertisement) Addr() ble.Addr

Addr mocks base method.

func (*MockAdvertisement) Connectable

func (m *MockAdvertisement) Connectable() bool

Connectable mocks base method.

func (*MockAdvertisement) EXPECT

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

func (*MockAdvertisement) LocalName

func (m *MockAdvertisement) LocalName() string

LocalName mocks base method.

func (*MockAdvertisement) ManufacturerData

func (m *MockAdvertisement) ManufacturerData() []byte

ManufacturerData mocks base method.

func (*MockAdvertisement) OverflowService

func (m *MockAdvertisement) OverflowService() []ble.UUID

OverflowService mocks base method.

func (*MockAdvertisement) RSSI

func (m *MockAdvertisement) RSSI() int

RSSI mocks base method.

func (*MockAdvertisement) ServiceData

func (m *MockAdvertisement) ServiceData() []ble.ServiceData

ServiceData mocks base method.

func (*MockAdvertisement) Services

func (m *MockAdvertisement) Services() []ble.UUID

Services mocks base method.

func (*MockAdvertisement) SolicitedService

func (m *MockAdvertisement) SolicitedService() []ble.UUID

SolicitedService mocks base method.

func (*MockAdvertisement) TxPowerLevel

func (m *MockAdvertisement) TxPowerLevel() int

TxPowerLevel mocks base method.

type MockAdvertisementMockRecorder

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

MockAdvertisementMockRecorder is the mock recorder for MockAdvertisement.

func (*MockAdvertisementMockRecorder) Addr

Addr indicates an expected call of Addr.

func (*MockAdvertisementMockRecorder) Connectable

func (mr *MockAdvertisementMockRecorder) Connectable() *gomock.Call

Connectable indicates an expected call of Connectable.

func (*MockAdvertisementMockRecorder) LocalName

func (mr *MockAdvertisementMockRecorder) LocalName() *gomock.Call

LocalName indicates an expected call of LocalName.

func (*MockAdvertisementMockRecorder) ManufacturerData

func (mr *MockAdvertisementMockRecorder) ManufacturerData() *gomock.Call

ManufacturerData indicates an expected call of ManufacturerData.

func (*MockAdvertisementMockRecorder) OverflowService

func (mr *MockAdvertisementMockRecorder) OverflowService() *gomock.Call

OverflowService indicates an expected call of OverflowService.

func (*MockAdvertisementMockRecorder) RSSI

RSSI indicates an expected call of RSSI.

func (*MockAdvertisementMockRecorder) ServiceData

func (mr *MockAdvertisementMockRecorder) ServiceData() *gomock.Call

ServiceData indicates an expected call of ServiceData.

func (*MockAdvertisementMockRecorder) Services

func (mr *MockAdvertisementMockRecorder) Services() *gomock.Call

Services indicates an expected call of Services.

func (*MockAdvertisementMockRecorder) SolicitedService

func (mr *MockAdvertisementMockRecorder) SolicitedService() *gomock.Call

SolicitedService indicates an expected call of SolicitedService.

func (*MockAdvertisementMockRecorder) TxPowerLevel

func (mr *MockAdvertisementMockRecorder) TxPowerLevel() *gomock.Call

TxPowerLevel indicates an expected call of TxPowerLevel.

type MockDevice

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

MockDevice is a mock of Device interface.

func NewMockDevice

func NewMockDevice(ctrl *gomock.Controller) *MockDevice

NewMockDevice creates a new mock instance.

func (*MockDevice) AddService

func (m *MockDevice) AddService(arg0 *ble.Service) error

AddService mocks base method.

func (*MockDevice) Advertise

func (m *MockDevice) Advertise(arg0 context.Context, arg1 ble.Advertisement) error

Advertise mocks base method.

func (*MockDevice) AdvertiseIBeacon

func (m *MockDevice) AdvertiseIBeacon(arg0 context.Context, arg1 ble.UUID, arg2, arg3 uint16, arg4 int8) error

AdvertiseIBeacon mocks base method.

func (*MockDevice) AdvertiseIBeaconData

func (m *MockDevice) AdvertiseIBeaconData(arg0 context.Context, arg1 []byte) error

AdvertiseIBeaconData mocks base method.

func (*MockDevice) AdvertiseMfgData

func (m *MockDevice) AdvertiseMfgData(arg0 context.Context, arg1 uint16, arg2 []byte) error

AdvertiseMfgData mocks base method.

func (*MockDevice) AdvertiseNameAndServices

func (m *MockDevice) AdvertiseNameAndServices(arg0 context.Context, arg1 string, arg2 ...ble.UUID) error

AdvertiseNameAndServices mocks base method.

func (*MockDevice) AdvertiseServiceData16

func (m *MockDevice) AdvertiseServiceData16(arg0 context.Context, arg1 uint16, arg2 []byte) error

AdvertiseServiceData16 mocks base method.

func (*MockDevice) Dial

func (m *MockDevice) Dial(arg0 context.Context, arg1 ble.Addr) (ble.Client, error)

Dial mocks base method.

func (*MockDevice) EXPECT

func (m *MockDevice) EXPECT() *MockDeviceMockRecorder

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

func (*MockDevice) RemoveAllServices

func (m *MockDevice) RemoveAllServices() error

RemoveAllServices mocks base method.

func (*MockDevice) Scan

func (m *MockDevice) Scan(arg0 context.Context, arg1 bool, arg2 ble.AdvHandler) error

Scan mocks base method.

func (*MockDevice) SetServices

func (m *MockDevice) SetServices(arg0 []*ble.Service) error

SetServices mocks base method.

func (*MockDevice) Stop

func (m *MockDevice) Stop() error

Stop mocks base method.

type MockDeviceMockRecorder

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

MockDeviceMockRecorder is the mock recorder for MockDevice.

func (*MockDeviceMockRecorder) AddService

func (mr *MockDeviceMockRecorder) AddService(arg0 interface{}) *gomock.Call

AddService indicates an expected call of AddService.

func (*MockDeviceMockRecorder) Advertise

func (mr *MockDeviceMockRecorder) Advertise(arg0, arg1 interface{}) *gomock.Call

Advertise indicates an expected call of Advertise.

func (*MockDeviceMockRecorder) AdvertiseIBeacon

func (mr *MockDeviceMockRecorder) AdvertiseIBeacon(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

AdvertiseIBeacon indicates an expected call of AdvertiseIBeacon.

func (*MockDeviceMockRecorder) AdvertiseIBeaconData

func (mr *MockDeviceMockRecorder) AdvertiseIBeaconData(arg0, arg1 interface{}) *gomock.Call

AdvertiseIBeaconData indicates an expected call of AdvertiseIBeaconData.

func (*MockDeviceMockRecorder) AdvertiseMfgData

func (mr *MockDeviceMockRecorder) AdvertiseMfgData(arg0, arg1, arg2 interface{}) *gomock.Call

AdvertiseMfgData indicates an expected call of AdvertiseMfgData.

func (*MockDeviceMockRecorder) AdvertiseNameAndServices

func (mr *MockDeviceMockRecorder) AdvertiseNameAndServices(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

AdvertiseNameAndServices indicates an expected call of AdvertiseNameAndServices.

func (*MockDeviceMockRecorder) AdvertiseServiceData16

func (mr *MockDeviceMockRecorder) AdvertiseServiceData16(arg0, arg1, arg2 interface{}) *gomock.Call

AdvertiseServiceData16 indicates an expected call of AdvertiseServiceData16.

func (*MockDeviceMockRecorder) Dial

func (mr *MockDeviceMockRecorder) Dial(arg0, arg1 interface{}) *gomock.Call

Dial indicates an expected call of Dial.

func (*MockDeviceMockRecorder) RemoveAllServices

func (mr *MockDeviceMockRecorder) RemoveAllServices() *gomock.Call

RemoveAllServices indicates an expected call of RemoveAllServices.

func (*MockDeviceMockRecorder) Scan

func (mr *MockDeviceMockRecorder) Scan(arg0, arg1, arg2 interface{}) *gomock.Call

Scan indicates an expected call of Scan.

func (*MockDeviceMockRecorder) SetServices

func (mr *MockDeviceMockRecorder) SetServices(arg0 interface{}) *gomock.Call

SetServices indicates an expected call of SetServices.

func (*MockDeviceMockRecorder) Stop

func (mr *MockDeviceMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

Jump to

Keyboard shortcuts

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