device

package
v0.0.0-...-1cef543 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package device is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	Read(ctx context.Context, data []byte) (n int, err error)
	Write(ctx context.Context, data []byte) (n int, err error)
}

func NewLedgerDevice

func NewLedgerDevice(hidDevice hid.Device) Device

type MockDevice

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

MockDevice is a mock of Device interface.

func NewMockDevice

func NewMockDevice(ctrl *gomock.Controller) *MockDevice

NewMockDevice creates a new mock instance.

func (*MockDevice) EXPECT

func (m *MockDevice) EXPECT() *MockDeviceMockRecorder

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

func (*MockDevice) Read

func (m *MockDevice) Read(ctx context.Context, data []byte) (int, error)

Read mocks base method.

func (*MockDevice) Write

func (m *MockDevice) Write(ctx context.Context, data []byte) (int, error)

Write mocks base method.

type MockDeviceMockRecorder

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

MockDeviceMockRecorder is the mock recorder for MockDevice.

func (*MockDeviceMockRecorder) Read

func (mr *MockDeviceMockRecorder) Read(ctx, data any) *gomock.Call

Read indicates an expected call of Read.

func (*MockDeviceMockRecorder) Write

func (mr *MockDeviceMockRecorder) Write(ctx, data any) *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