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 ¶
- type MockPort
- func (m *MockPort) Close(arg0 context.Context) error
- func (m *MockPort) EXPECT() *MockPortMockRecorder
- func (m *MockPort) Flush(arg0 context.Context) error
- func (m *MockPort) Read(arg0 context.Context, arg1 []byte) (int, error)
- func (m *MockPort) Write(arg0 context.Context, arg1 []byte) (int, error)
- type MockPortMockRecorder
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) EXPECT ¶
func (m *MockPort) EXPECT() *MockPortMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.