mocks

package
v0.0.0-...-9474aff Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package. CGO_ENABLED=0 GOPATH=/usr/lib/gopath:/mnt/host/source/src/platform/tast-tests:/mnt/host/source/src/platform/tast mockgen -destination=mock_port.go -self_package=chromiumos/tast/common/firmware/serial/mocks -package mocks chromiumos/tast/common/firmware/serial Port

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPort

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

MockPort is a mock of Port interface.

func NewMockPort

func NewMockPort(ctrl *gomock.Controller) *MockPort

NewMockPort creates a new mock instance.

func (*MockPort) Close

func (m *MockPort) Close(arg0 context.Context) error

Close mocks base method.

func (*MockPort) EXPECT

func (m *MockPort) EXPECT() *MockPortMockRecorder

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

func (*MockPort) Flush

func (m *MockPort) Flush(arg0 context.Context) error

Flush mocks base method.

func (*MockPort) Read

func (m *MockPort) Read(arg0 context.Context, arg1 []byte) (int, error)

Read mocks base method.

func (*MockPort) Write

func (m *MockPort) Write(arg0 context.Context, arg1 []byte) (int, error)

Write mocks base method.

type MockPortMockRecorder

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

MockPortMockRecorder is the mock recorder for MockPort.

func (*MockPortMockRecorder) Close

func (mr *MockPortMockRecorder) Close(arg0 interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockPortMockRecorder) Flush

func (mr *MockPortMockRecorder) Flush(arg0 interface{}) *gomock.Call

Flush indicates an expected call of Flush.

func (*MockPortMockRecorder) Read

func (mr *MockPortMockRecorder) Read(arg0, arg1 interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockPortMockRecorder) Write

func (mr *MockPortMockRecorder) Write(arg0, arg1 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