Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDatastore
- func (m *MockDatastore) CreateBadge(id, badgeType string, enabled bool) error
- func (m *MockDatastore) DeleteBadge(id string) error
- func (m *MockDatastore) DisableBadge(id string) error
- func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
- func (m *MockDatastore) EnableBadge(id string) error
- func (m *MockDatastore) GetBadge(id string) (*datastore.Badge, error)
- func (m *MockDatastore) HasAccess(id string) (bool, error)
- func (m *MockDatastore) ListBadges() ([]datastore.Badge, error)
- type MockDatastoreMockRecorder
- func (mr *MockDatastoreMockRecorder) CreateBadge(id, badgeType, enabled interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) DeleteBadge(id interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) DisableBadge(id interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) EnableBadge(id interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) GetBadge(id interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) HasAccess(id interface{}) *gomock.Call
- func (mr *MockDatastoreMockRecorder) ListBadges() *gomock.Call
- type MockLibNFCDevice
- type MockLibNFCDeviceMockRecorder
- type MockPinIO
- func (m *MockPinIO) DefaultPull() gpio.Pull
- func (m *MockPinIO) EXPECT() *MockPinIOMockRecorder
- func (m *MockPinIO) Function() string
- func (m *MockPinIO) Halt() error
- func (m *MockPinIO) In(pull gpio.Pull, edge gpio.Edge) error
- func (m *MockPinIO) Name() string
- func (m *MockPinIO) Number() int
- func (m *MockPinIO) Out(l gpio.Level) error
- func (m *MockPinIO) PWM(duty gpio.Duty, f physic.Frequency) error
- func (m *MockPinIO) Pull() gpio.Pull
- func (m *MockPinIO) Read() gpio.Level
- func (m *MockPinIO) String() string
- func (m *MockPinIO) WaitForEdge(timeout time.Duration) bool
- type MockPinIOMockRecorder
- func (mr *MockPinIOMockRecorder) DefaultPull() *gomock.Call
- func (mr *MockPinIOMockRecorder) Function() *gomock.Call
- func (mr *MockPinIOMockRecorder) Halt() *gomock.Call
- func (mr *MockPinIOMockRecorder) In(pull, edge interface{}) *gomock.Call
- func (mr *MockPinIOMockRecorder) Name() *gomock.Call
- func (mr *MockPinIOMockRecorder) Number() *gomock.Call
- func (mr *MockPinIOMockRecorder) Out(l interface{}) *gomock.Call
- func (mr *MockPinIOMockRecorder) PWM(duty, f interface{}) *gomock.Call
- func (mr *MockPinIOMockRecorder) Pull() *gomock.Call
- func (mr *MockPinIOMockRecorder) Read() *gomock.Call
- func (mr *MockPinIOMockRecorder) String() *gomock.Call
- func (mr *MockPinIOMockRecorder) WaitForEdge(timeout interface{}) *gomock.Call
- type MockPinIn
- func (m *MockPinIn) DefaultPull() gpio.Pull
- func (m *MockPinIn) EXPECT() *MockPinInMockRecorder
- func (m *MockPinIn) Function() string
- func (m *MockPinIn) Halt() error
- func (m *MockPinIn) In(pull gpio.Pull, edge gpio.Edge) error
- func (m *MockPinIn) Name() string
- func (m *MockPinIn) Number() int
- func (m *MockPinIn) Pull() gpio.Pull
- func (m *MockPinIn) Read() gpio.Level
- func (m *MockPinIn) String() string
- func (m *MockPinIn) WaitForEdge(timeout time.Duration) bool
- type MockPinInMockRecorder
- func (mr *MockPinInMockRecorder) DefaultPull() *gomock.Call
- func (mr *MockPinInMockRecorder) Function() *gomock.Call
- func (mr *MockPinInMockRecorder) Halt() *gomock.Call
- func (mr *MockPinInMockRecorder) In(pull, edge interface{}) *gomock.Call
- func (mr *MockPinInMockRecorder) Name() *gomock.Call
- func (mr *MockPinInMockRecorder) Number() *gomock.Call
- func (mr *MockPinInMockRecorder) Pull() *gomock.Call
- func (mr *MockPinInMockRecorder) Read() *gomock.Call
- func (mr *MockPinInMockRecorder) String() *gomock.Call
- func (mr *MockPinInMockRecorder) WaitForEdge(timeout interface{}) *gomock.Call
- type MockPinOut
- func (m *MockPinOut) EXPECT() *MockPinOutMockRecorder
- func (m *MockPinOut) Function() string
- func (m *MockPinOut) Halt() error
- func (m *MockPinOut) Name() string
- func (m *MockPinOut) Number() int
- func (m *MockPinOut) Out(l gpio.Level) error
- func (m *MockPinOut) PWM(duty gpio.Duty, f physic.Frequency) error
- func (m *MockPinOut) String() string
- type MockPinOutMockRecorder
- func (mr *MockPinOutMockRecorder) Function() *gomock.Call
- func (mr *MockPinOutMockRecorder) Halt() *gomock.Call
- func (mr *MockPinOutMockRecorder) Name() *gomock.Call
- func (mr *MockPinOutMockRecorder) Number() *gomock.Call
- func (mr *MockPinOutMockRecorder) Out(l interface{}) *gomock.Call
- func (mr *MockPinOutMockRecorder) PWM(duty, f interface{}) *gomock.Call
- func (mr *MockPinOutMockRecorder) String() *gomock.Call
- type MockRealPin
- type MockRealPinMockRecorder
- type MockScanner
- type MockScannerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatastore ¶
type MockDatastore struct {
// contains filtered or unexported fields
}
MockDatastore is a mock of Datastore interface
func NewMockDatastore ¶
func NewMockDatastore(ctrl *gomock.Controller) *MockDatastore
NewMockDatastore creates a new mock instance
func (*MockDatastore) CreateBadge ¶
func (m *MockDatastore) CreateBadge(id, badgeType string, enabled bool) error
CreateBadge mocks base method
func (*MockDatastore) DeleteBadge ¶
func (m *MockDatastore) DeleteBadge(id string) error
DeleteBadge mocks base method
func (*MockDatastore) DisableBadge ¶
func (m *MockDatastore) DisableBadge(id string) error
DisableBadge mocks base method
func (*MockDatastore) EXPECT ¶
func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatastore) EnableBadge ¶
func (m *MockDatastore) EnableBadge(id string) error
EnableBadge mocks base method
func (*MockDatastore) GetBadge ¶
func (m *MockDatastore) GetBadge(id string) (*datastore.Badge, error)
GetBadge mocks base method
func (*MockDatastore) HasAccess ¶
func (m *MockDatastore) HasAccess(id string) (bool, error)
HasAccess mocks base method
func (*MockDatastore) ListBadges ¶
func (m *MockDatastore) ListBadges() ([]datastore.Badge, error)
ListBadges mocks base method
type MockDatastoreMockRecorder ¶
type MockDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDatastoreMockRecorder is the mock recorder for MockDatastore
func (*MockDatastoreMockRecorder) CreateBadge ¶
func (mr *MockDatastoreMockRecorder) CreateBadge(id, badgeType, enabled interface{}) *gomock.Call
CreateBadge indicates an expected call of CreateBadge
func (*MockDatastoreMockRecorder) DeleteBadge ¶
func (mr *MockDatastoreMockRecorder) DeleteBadge(id interface{}) *gomock.Call
DeleteBadge indicates an expected call of DeleteBadge
func (*MockDatastoreMockRecorder) DisableBadge ¶
func (mr *MockDatastoreMockRecorder) DisableBadge(id interface{}) *gomock.Call
DisableBadge indicates an expected call of DisableBadge
func (*MockDatastoreMockRecorder) EnableBadge ¶
func (mr *MockDatastoreMockRecorder) EnableBadge(id interface{}) *gomock.Call
EnableBadge indicates an expected call of EnableBadge
func (*MockDatastoreMockRecorder) GetBadge ¶
func (mr *MockDatastoreMockRecorder) GetBadge(id interface{}) *gomock.Call
GetBadge indicates an expected call of GetBadge
func (*MockDatastoreMockRecorder) HasAccess ¶
func (mr *MockDatastoreMockRecorder) HasAccess(id interface{}) *gomock.Call
HasAccess indicates an expected call of HasAccess
func (*MockDatastoreMockRecorder) ListBadges ¶
func (mr *MockDatastoreMockRecorder) ListBadges() *gomock.Call
ListBadges indicates an expected call of ListBadges
type MockLibNFCDevice ¶
type MockLibNFCDevice struct {
// contains filtered or unexported fields
}
MockLibNFCDevice is a mock of LibNFCDevice interface
func NewMockLibNFCDevice ¶
func NewMockLibNFCDevice(ctrl *gomock.Controller) *MockLibNFCDevice
NewMockLibNFCDevice creates a new mock instance
func (*MockLibNFCDevice) EXPECT ¶
func (m *MockLibNFCDevice) EXPECT() *MockLibNFCDeviceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockLibNFCDevice) InitiatorInit ¶
func (m *MockLibNFCDevice) InitiatorInit() error
InitiatorInit mocks base method
func (*MockLibNFCDevice) InitiatorListPassiveTargets ¶
func (m *MockLibNFCDevice) InitiatorListPassiveTargets(mod nfc.Modulation) ([]nfc.Target, error)
InitiatorListPassiveTargets mocks base method
type MockLibNFCDeviceMockRecorder ¶
type MockLibNFCDeviceMockRecorder struct {
// contains filtered or unexported fields
}
MockLibNFCDeviceMockRecorder is the mock recorder for MockLibNFCDevice
func (*MockLibNFCDeviceMockRecorder) Close ¶
func (mr *MockLibNFCDeviceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockLibNFCDeviceMockRecorder) InitiatorInit ¶
func (mr *MockLibNFCDeviceMockRecorder) InitiatorInit() *gomock.Call
InitiatorInit indicates an expected call of InitiatorInit
func (*MockLibNFCDeviceMockRecorder) InitiatorListPassiveTargets ¶
func (mr *MockLibNFCDeviceMockRecorder) InitiatorListPassiveTargets(mod interface{}) *gomock.Call
InitiatorListPassiveTargets indicates an expected call of InitiatorListPassiveTargets
type MockPinIO ¶
type MockPinIO struct {
// contains filtered or unexported fields
}
MockPinIO is a mock of PinIO interface
func NewMockPinIO ¶
func NewMockPinIO(ctrl *gomock.Controller) *MockPinIO
NewMockPinIO creates a new mock instance
func (*MockPinIO) DefaultPull ¶
DefaultPull mocks base method
func (*MockPinIO) EXPECT ¶
func (m *MockPinIO) EXPECT() *MockPinIOMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPinIOMockRecorder ¶
type MockPinIOMockRecorder struct {
// contains filtered or unexported fields
}
MockPinIOMockRecorder is the mock recorder for MockPinIO
func (*MockPinIOMockRecorder) DefaultPull ¶
func (mr *MockPinIOMockRecorder) DefaultPull() *gomock.Call
DefaultPull indicates an expected call of DefaultPull
func (*MockPinIOMockRecorder) Function ¶
func (mr *MockPinIOMockRecorder) Function() *gomock.Call
Function indicates an expected call of Function
func (*MockPinIOMockRecorder) Halt ¶
func (mr *MockPinIOMockRecorder) Halt() *gomock.Call
Halt indicates an expected call of Halt
func (*MockPinIOMockRecorder) In ¶
func (mr *MockPinIOMockRecorder) In(pull, edge interface{}) *gomock.Call
In indicates an expected call of In
func (*MockPinIOMockRecorder) Name ¶
func (mr *MockPinIOMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockPinIOMockRecorder) Number ¶
func (mr *MockPinIOMockRecorder) Number() *gomock.Call
Number indicates an expected call of Number
func (*MockPinIOMockRecorder) Out ¶
func (mr *MockPinIOMockRecorder) Out(l interface{}) *gomock.Call
Out indicates an expected call of Out
func (*MockPinIOMockRecorder) PWM ¶
func (mr *MockPinIOMockRecorder) PWM(duty, f interface{}) *gomock.Call
PWM indicates an expected call of PWM
func (*MockPinIOMockRecorder) Pull ¶
func (mr *MockPinIOMockRecorder) Pull() *gomock.Call
Pull indicates an expected call of Pull
func (*MockPinIOMockRecorder) Read ¶
func (mr *MockPinIOMockRecorder) Read() *gomock.Call
Read indicates an expected call of Read
func (*MockPinIOMockRecorder) String ¶
func (mr *MockPinIOMockRecorder) String() *gomock.Call
String indicates an expected call of String
func (*MockPinIOMockRecorder) WaitForEdge ¶
func (mr *MockPinIOMockRecorder) WaitForEdge(timeout interface{}) *gomock.Call
WaitForEdge indicates an expected call of WaitForEdge
type MockPinIn ¶
type MockPinIn struct {
// contains filtered or unexported fields
}
MockPinIn is a mock of PinIn interface
func NewMockPinIn ¶
func NewMockPinIn(ctrl *gomock.Controller) *MockPinIn
NewMockPinIn creates a new mock instance
func (*MockPinIn) DefaultPull ¶
DefaultPull mocks base method
func (*MockPinIn) EXPECT ¶
func (m *MockPinIn) EXPECT() *MockPinInMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPinInMockRecorder ¶
type MockPinInMockRecorder struct {
// contains filtered or unexported fields
}
MockPinInMockRecorder is the mock recorder for MockPinIn
func (*MockPinInMockRecorder) DefaultPull ¶
func (mr *MockPinInMockRecorder) DefaultPull() *gomock.Call
DefaultPull indicates an expected call of DefaultPull
func (*MockPinInMockRecorder) Function ¶
func (mr *MockPinInMockRecorder) Function() *gomock.Call
Function indicates an expected call of Function
func (*MockPinInMockRecorder) Halt ¶
func (mr *MockPinInMockRecorder) Halt() *gomock.Call
Halt indicates an expected call of Halt
func (*MockPinInMockRecorder) In ¶
func (mr *MockPinInMockRecorder) In(pull, edge interface{}) *gomock.Call
In indicates an expected call of In
func (*MockPinInMockRecorder) Name ¶
func (mr *MockPinInMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockPinInMockRecorder) Number ¶
func (mr *MockPinInMockRecorder) Number() *gomock.Call
Number indicates an expected call of Number
func (*MockPinInMockRecorder) Pull ¶
func (mr *MockPinInMockRecorder) Pull() *gomock.Call
Pull indicates an expected call of Pull
func (*MockPinInMockRecorder) Read ¶
func (mr *MockPinInMockRecorder) Read() *gomock.Call
Read indicates an expected call of Read
func (*MockPinInMockRecorder) String ¶
func (mr *MockPinInMockRecorder) String() *gomock.Call
String indicates an expected call of String
func (*MockPinInMockRecorder) WaitForEdge ¶
func (mr *MockPinInMockRecorder) WaitForEdge(timeout interface{}) *gomock.Call
WaitForEdge indicates an expected call of WaitForEdge
type MockPinOut ¶
type MockPinOut struct {
// contains filtered or unexported fields
}
MockPinOut is a mock of PinOut interface
func NewMockPinOut ¶
func NewMockPinOut(ctrl *gomock.Controller) *MockPinOut
NewMockPinOut creates a new mock instance
func (*MockPinOut) EXPECT ¶
func (m *MockPinOut) EXPECT() *MockPinOutMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPinOutMockRecorder ¶
type MockPinOutMockRecorder struct {
// contains filtered or unexported fields
}
MockPinOutMockRecorder is the mock recorder for MockPinOut
func (*MockPinOutMockRecorder) Function ¶
func (mr *MockPinOutMockRecorder) Function() *gomock.Call
Function indicates an expected call of Function
func (*MockPinOutMockRecorder) Halt ¶
func (mr *MockPinOutMockRecorder) Halt() *gomock.Call
Halt indicates an expected call of Halt
func (*MockPinOutMockRecorder) Name ¶
func (mr *MockPinOutMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name
func (*MockPinOutMockRecorder) Number ¶
func (mr *MockPinOutMockRecorder) Number() *gomock.Call
Number indicates an expected call of Number
func (*MockPinOutMockRecorder) Out ¶
func (mr *MockPinOutMockRecorder) Out(l interface{}) *gomock.Call
Out indicates an expected call of Out
func (*MockPinOutMockRecorder) PWM ¶
func (mr *MockPinOutMockRecorder) PWM(duty, f interface{}) *gomock.Call
PWM indicates an expected call of PWM
func (*MockPinOutMockRecorder) String ¶
func (mr *MockPinOutMockRecorder) String() *gomock.Call
String indicates an expected call of String
type MockRealPin ¶
type MockRealPin struct {
// contains filtered or unexported fields
}
MockRealPin is a mock of RealPin interface
func NewMockRealPin ¶
func NewMockRealPin(ctrl *gomock.Controller) *MockRealPin
NewMockRealPin creates a new mock instance
func (*MockRealPin) EXPECT ¶
func (m *MockRealPin) EXPECT() *MockRealPinMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRealPinMockRecorder ¶
type MockRealPinMockRecorder struct {
// contains filtered or unexported fields
}
MockRealPinMockRecorder is the mock recorder for MockRealPin
func (*MockRealPinMockRecorder) Real ¶
func (mr *MockRealPinMockRecorder) Real() *gomock.Call
Real indicates an expected call of Real
type MockScanner ¶
type MockScanner struct {
// contains filtered or unexported fields
}
MockScanner is a mock of Scanner interface
func NewMockScanner ¶
func NewMockScanner(ctrl *gomock.Controller) *MockScanner
NewMockScanner creates a new mock instance
func (*MockScanner) EXPECT ¶
func (m *MockScanner) EXPECT() *MockScannerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockScannerMockRecorder ¶
type MockScannerMockRecorder struct {
// contains filtered or unexported fields
}
MockScannerMockRecorder is the mock recorder for MockScanner
func (*MockScannerMockRecorder) Done ¶
func (mr *MockScannerMockRecorder) Done() *gomock.Call
Done indicates an expected call of Done
func (*MockScannerMockRecorder) Scan ¶
func (mr *MockScannerMockRecorder) Scan() *gomock.Call
Scan indicates an expected call of Scan