mocks

package
v0.0.0-...-ded851d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 1 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) Close

func (_m *Port) Close() error

Close provides a mock function with given fields:

func (*Port) Flush

func (_m *Port) Flush() error

Flush provides a mock function with given fields:

func (*Port) Read

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

Read provides a mock function with given fields: b

func (*Port) Write

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

Write provides a mock function with given fields: b

Jump to

Keyboard shortcuts

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