mocks

package
v0.0.0-...-07c0d0d Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 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 TransportMock

type TransportMock struct {
	mock.Mock
}

TransportMock is an autogenerated mock type for the Transport type

func NewTransportMock

func NewTransportMock(t mockConstructorTestingTNewTransportMock) *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.

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) 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

Jump to

Keyboard shortcuts

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