gomock

package
v0.0.0-...-bc09f5d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gomock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) Close

func (m *MockStore) Close(at time.Time) error

Close mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) Get

func (m *MockStore) Get(name string) (string, error)

Get mocks base method.

func (*MockStore) Open

func (m *MockStore) Open(at time.Time) error

Open mocks base method.

func (*MockStore) Sell

func (m *MockStore) Sell(id string, quantity int) error

Sell mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) Close

func (mr *MockStoreMockRecorder) Close(at interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockStoreMockRecorder) Get

func (mr *MockStoreMockRecorder) Get(name interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockStoreMockRecorder) Open

func (mr *MockStoreMockRecorder) Open(at interface{}) *gomock.Call

Open indicates an expected call of Open.

func (*MockStoreMockRecorder) Sell

func (mr *MockStoreMockRecorder) Sell(id, quantity interface{}) *gomock.Call

Sell indicates an expected call of Sell.

Jump to

Keyboard shortcuts

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