mocks

package
v0.0.0-...-3ccddf6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDigitalPin

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

MockDigitalPin is a mock of DigitalPin interface

func NewMockDigitalPin

func NewMockDigitalPin(ctrl *gomock.Controller) *MockDigitalPin

NewMockDigitalPin creates a new mock instance

func (*MockDigitalPin) ActiveLow

func (_m *MockDigitalPin) ActiveLow(_param0 bool) error

ActiveLow mocks base method

func (*MockDigitalPin) Close

func (_m *MockDigitalPin) Close() error

Close mocks base method

func (*MockDigitalPin) EXPECT

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

func (*MockDigitalPin) N

func (_m *MockDigitalPin) N() int

N mocks base method

func (*MockDigitalPin) PullDown

func (_m *MockDigitalPin) PullDown() error

PullDown mocks base method

func (*MockDigitalPin) PullUp

func (_m *MockDigitalPin) PullUp() error

PullUp mocks base method

func (*MockDigitalPin) Read

func (_m *MockDigitalPin) Read() (int, error)

Read mocks base method

func (*MockDigitalPin) SetDirection

func (_m *MockDigitalPin) SetDirection(_param0 embd.Direction) error

SetDirection mocks base method

func (*MockDigitalPin) StopWatching

func (_m *MockDigitalPin) StopWatching() error

StopWatching mocks base method

func (*MockDigitalPin) TimePulse

func (_m *MockDigitalPin) TimePulse(_param0 int) (time.Duration, error)

TimePulse mocks base method

func (*MockDigitalPin) Watch

func (_m *MockDigitalPin) Watch(_param0 embd.Edge, _param1 func(embd.DigitalPin)) error

Watch mocks base method

func (*MockDigitalPin) Write

func (_m *MockDigitalPin) Write(_param0 int) error

Write mocks base method

type MockDigitalPinMockRecorder

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

MockDigitalPinMockRecorder is the mock recorder for MockDigitalPin

func (*MockDigitalPinMockRecorder) ActiveLow

func (_mr *MockDigitalPinMockRecorder) ActiveLow(arg0 interface{}) *gomock.Call

ActiveLow indicates an expected call of ActiveLow

func (*MockDigitalPinMockRecorder) Close

func (_mr *MockDigitalPinMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockDigitalPinMockRecorder) N

N indicates an expected call of N

func (*MockDigitalPinMockRecorder) PullDown

func (_mr *MockDigitalPinMockRecorder) PullDown() *gomock.Call

PullDown indicates an expected call of PullDown

func (*MockDigitalPinMockRecorder) PullUp

func (_mr *MockDigitalPinMockRecorder) PullUp() *gomock.Call

PullUp indicates an expected call of PullUp

func (*MockDigitalPinMockRecorder) Read

func (_mr *MockDigitalPinMockRecorder) Read() *gomock.Call

Read indicates an expected call of Read

func (*MockDigitalPinMockRecorder) SetDirection

func (_mr *MockDigitalPinMockRecorder) SetDirection(arg0 interface{}) *gomock.Call

SetDirection indicates an expected call of SetDirection

func (*MockDigitalPinMockRecorder) StopWatching

func (_mr *MockDigitalPinMockRecorder) StopWatching() *gomock.Call

StopWatching indicates an expected call of StopWatching

func (*MockDigitalPinMockRecorder) TimePulse

func (_mr *MockDigitalPinMockRecorder) TimePulse(arg0 interface{}) *gomock.Call

TimePulse indicates an expected call of TimePulse

func (*MockDigitalPinMockRecorder) Watch

func (_mr *MockDigitalPinMockRecorder) Watch(arg0, arg1 interface{}) *gomock.Call

Watch indicates an expected call of Watch

func (*MockDigitalPinMockRecorder) Write

func (_mr *MockDigitalPinMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

type MockI2CBus

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

MockI2CBus is a mock of I2CBus interface

func NewMockI2CBus

func NewMockI2CBus(ctrl *gomock.Controller) *MockI2CBus

NewMockI2CBus creates a new mock instance

func (*MockI2CBus) Close

func (_m *MockI2CBus) Close() error

Close mocks base method

func (*MockI2CBus) EXPECT

func (_m *MockI2CBus) EXPECT() *MockI2CBusMockRecorder

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

func (*MockI2CBus) ReadByte

func (_m *MockI2CBus) ReadByte(_param0 byte) (byte, error)

ReadByte mocks base method

func (*MockI2CBus) ReadByteFromReg

func (_m *MockI2CBus) ReadByteFromReg(_param0 byte, _param1 byte) (byte, error)

ReadByteFromReg mocks base method

func (*MockI2CBus) ReadBytes

func (_m *MockI2CBus) ReadBytes(_param0 byte, _param1 int) ([]byte, error)

ReadBytes mocks base method

func (*MockI2CBus) ReadFromReg

func (_m *MockI2CBus) ReadFromReg(_param0 byte, _param1 byte, _param2 []byte) error

ReadFromReg mocks base method

func (*MockI2CBus) ReadWordFromReg

func (_m *MockI2CBus) ReadWordFromReg(_param0 byte, _param1 byte) (uint16, error)

ReadWordFromReg mocks base method

func (*MockI2CBus) WriteByte

func (_m *MockI2CBus) WriteByte(_param0 byte, _param1 byte) error

WriteByte mocks base method

func (*MockI2CBus) WriteByteToReg

func (_m *MockI2CBus) WriteByteToReg(_param0 byte, _param1 byte, _param2 byte) error

WriteByteToReg mocks base method

func (*MockI2CBus) WriteBytes

func (_m *MockI2CBus) WriteBytes(_param0 byte, _param1 []byte) error

WriteBytes mocks base method

func (*MockI2CBus) WriteToReg

func (_m *MockI2CBus) WriteToReg(_param0 byte, _param1 byte, _param2 []byte) error

WriteToReg mocks base method

func (*MockI2CBus) WriteWordToReg

func (_m *MockI2CBus) WriteWordToReg(_param0 byte, _param1 byte, _param2 uint16) error

WriteWordToReg mocks base method

type MockI2CBusMockRecorder

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

MockI2CBusMockRecorder is the mock recorder for MockI2CBus

func (*MockI2CBusMockRecorder) Close

func (_mr *MockI2CBusMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockI2CBusMockRecorder) ReadByte

func (_mr *MockI2CBusMockRecorder) ReadByte(arg0 interface{}) *gomock.Call

ReadByte indicates an expected call of ReadByte

func (*MockI2CBusMockRecorder) ReadByteFromReg

func (_mr *MockI2CBusMockRecorder) ReadByteFromReg(arg0, arg1 interface{}) *gomock.Call

ReadByteFromReg indicates an expected call of ReadByteFromReg

func (*MockI2CBusMockRecorder) ReadBytes

func (_mr *MockI2CBusMockRecorder) ReadBytes(arg0, arg1 interface{}) *gomock.Call

ReadBytes indicates an expected call of ReadBytes

func (*MockI2CBusMockRecorder) ReadFromReg

func (_mr *MockI2CBusMockRecorder) ReadFromReg(arg0, arg1, arg2 interface{}) *gomock.Call

ReadFromReg indicates an expected call of ReadFromReg

func (*MockI2CBusMockRecorder) ReadWordFromReg

func (_mr *MockI2CBusMockRecorder) ReadWordFromReg(arg0, arg1 interface{}) *gomock.Call

ReadWordFromReg indicates an expected call of ReadWordFromReg

func (*MockI2CBusMockRecorder) WriteByte

func (_mr *MockI2CBusMockRecorder) WriteByte(arg0, arg1 interface{}) *gomock.Call

WriteByte indicates an expected call of WriteByte

func (*MockI2CBusMockRecorder) WriteByteToReg

func (_mr *MockI2CBusMockRecorder) WriteByteToReg(arg0, arg1, arg2 interface{}) *gomock.Call

WriteByteToReg indicates an expected call of WriteByteToReg

func (*MockI2CBusMockRecorder) WriteBytes

func (_mr *MockI2CBusMockRecorder) WriteBytes(arg0, arg1 interface{}) *gomock.Call

WriteBytes indicates an expected call of WriteBytes

func (*MockI2CBusMockRecorder) WriteToReg

func (_mr *MockI2CBusMockRecorder) WriteToReg(arg0, arg1, arg2 interface{}) *gomock.Call

WriteToReg indicates an expected call of WriteToReg

func (*MockI2CBusMockRecorder) WriteWordToReg

func (_mr *MockI2CBusMockRecorder) WriteWordToReg(arg0, arg1, arg2 interface{}) *gomock.Call

WriteWordToReg indicates an expected call of WriteWordToReg

type MockSPIBus

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

MockSPIBus is a mock of SPIBus interface

func NewMockSPIBus

func NewMockSPIBus(ctrl *gomock.Controller) *MockSPIBus

NewMockSPIBus creates a new mock instance

func (*MockSPIBus) Close

func (_m *MockSPIBus) Close() error

Close mocks base method

func (*MockSPIBus) EXPECT

func (_m *MockSPIBus) EXPECT() *MockSPIBusMockRecorder

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

func (*MockSPIBus) ReceiveByte

func (_m *MockSPIBus) ReceiveByte() (byte, error)

ReceiveByte mocks base method

func (*MockSPIBus) ReceiveData

func (_m *MockSPIBus) ReceiveData(_param0 int) ([]byte, error)

ReceiveData mocks base method

func (*MockSPIBus) TransferAndReceiveByte

func (_m *MockSPIBus) TransferAndReceiveByte(_param0 byte) (byte, error)

TransferAndReceiveByte mocks base method

func (*MockSPIBus) TransferAndReceiveData

func (_m *MockSPIBus) TransferAndReceiveData(_param0 []byte) error

TransferAndReceiveData mocks base method

func (*MockSPIBus) Write

func (_m *MockSPIBus) Write(_param0 []byte) (int, error)

Write mocks base method

type MockSPIBusMockRecorder

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

MockSPIBusMockRecorder is the mock recorder for MockSPIBus

func (*MockSPIBusMockRecorder) Close

func (_mr *MockSPIBusMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockSPIBusMockRecorder) ReceiveByte

func (_mr *MockSPIBusMockRecorder) ReceiveByte() *gomock.Call

ReceiveByte indicates an expected call of ReceiveByte

func (*MockSPIBusMockRecorder) ReceiveData

func (_mr *MockSPIBusMockRecorder) ReceiveData(arg0 interface{}) *gomock.Call

ReceiveData indicates an expected call of ReceiveData

func (*MockSPIBusMockRecorder) TransferAndReceiveByte

func (_mr *MockSPIBusMockRecorder) TransferAndReceiveByte(arg0 interface{}) *gomock.Call

TransferAndReceiveByte indicates an expected call of TransferAndReceiveByte

func (*MockSPIBusMockRecorder) TransferAndReceiveData

func (_mr *MockSPIBusMockRecorder) TransferAndReceiveData(arg0 interface{}) *gomock.Call

TransferAndReceiveData indicates an expected call of TransferAndReceiveData

func (*MockSPIBusMockRecorder) Write

func (_mr *MockSPIBusMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write

Jump to

Keyboard shortcuts

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