mocks

package
v0.0.0-...-83a780d Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Port

type Port struct {
	mock.Mock
}

Port is an autogenerated mock type for the Port type

func NewPort

func NewPort(t interface {
	mock.TestingT
	Cleanup(func())
}) *Port

NewPort creates a new instance of Port. 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 (*Port) Break

func (_m *Port) Break(_a0 time.Duration) error

Break provides a mock function with given fields: _a0

func (*Port) Close

func (_m *Port) Close() error

Close provides a mock function with given fields:

func (*Port) Drain

func (_m *Port) Drain() error

Drain provides a mock function with given fields:

func (*Port) GetModemStatusBits

func (_m *Port) GetModemStatusBits() (*serial.ModemStatusBits, error)

GetModemStatusBits provides a mock function with given fields:

func (*Port) Read

func (_m *Port) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*Port) ResetInputBuffer

func (_m *Port) ResetInputBuffer() error

ResetInputBuffer provides a mock function with given fields:

func (*Port) ResetOutputBuffer

func (_m *Port) ResetOutputBuffer() error

ResetOutputBuffer provides a mock function with given fields:

func (*Port) SetDTR

func (_m *Port) SetDTR(dtr bool) error

SetDTR provides a mock function with given fields: dtr

func (*Port) SetMode

func (_m *Port) SetMode(mode *serial.Mode) error

SetMode provides a mock function with given fields: mode

func (*Port) SetRTS

func (_m *Port) SetRTS(rts bool) error

SetRTS provides a mock function with given fields: rts

func (*Port) SetReadTimeout

func (_m *Port) SetReadTimeout(t time.Duration) error

SetReadTimeout provides a mock function with given fields: t

func (*Port) Write

func (_m *Port) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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