Documentation ¶
Index ¶
- type TransportMock
- func (_m *TransportMock) Close()
- func (_m *TransportMock) Connect() error
- func (_m *TransportMock) Disconnect() error
- func (_m *TransportMock) IsConnected() bool
- func (_m *TransportMock) Recv(count int) ([]byte, error)
- func (_m *TransportMock) Send(src []byte) error
- func (_m *TransportMock) SetAddress(client int, server int)
- func (_m *TransportMock) SetLogger(logger *log.Logger)
- func (_m *TransportMock) SetReception(dc dlms.DataChannel)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransportMock ¶
TransportMock is an autogenerated mock type for the Transport type
func NewTransportMock ¶
func NewTransportMock(t interface { mock.TestingT Cleanup(func()) }) *TransportMock
NewTransportMock creates a new instance of TransportMock. 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 (*TransportMock) Close ¶
func (_m *TransportMock) Close()
Close provides a mock function with given fields:
func (*TransportMock) Connect ¶
func (_m *TransportMock) Connect() error
Connect provides a mock function with given fields:
func (*TransportMock) Disconnect ¶
func (_m *TransportMock) Disconnect() error
Disconnect provides a mock function with given fields:
func (*TransportMock) IsConnected ¶
func (_m *TransportMock) IsConnected() bool
IsConnected provides a mock function with given fields:
func (*TransportMock) Recv ¶
func (_m *TransportMock) Recv(count int) ([]byte, error)
Recv provides a mock function with given fields: count
func (*TransportMock) Send ¶
func (_m *TransportMock) Send(src []byte) error
Send provides a mock function with given fields: src
func (*TransportMock) SetAddress ¶
func (_m *TransportMock) SetAddress(client int, server int)
SetAddress provides a mock function with given fields: client, server
func (*TransportMock) SetLogger ¶
func (_m *TransportMock) SetLogger(logger *log.Logger)
SetLogger provides a mock function with given fields: logger
func (*TransportMock) SetReception ¶
func (_m *TransportMock) SetReception(dc dlms.DataChannel)
SetReception provides a mock function with given fields: dc