mocks

package
v0.0.0-...-22c49a1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockModel

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

MockModel is a mock of Model interface

func NewMockModel

func NewMockModel(ctrl *gomock.Controller) *MockModel

NewMockModel creates a new mock instance

func (*MockModel) EXPECT

func (m *MockModel) EXPECT() *MockModelMockRecorder

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

func (*MockModel) ID

func (m *MockModel) ID() string

ID mocks base method

type MockModelMockRecorder

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

MockModelMockRecorder is the mock recorder for MockModel

func (*MockModelMockRecorder) ID

func (mr *MockModelMockRecorder) ID() *gomock.Call

ID indicates an expected call of ID

type MockRepository

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

MockRepository is a mock of Repository interface

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance

func (*MockRepository) Close

func (m *MockRepository) Close() error

Close mocks base method

func (*MockRepository) Delete

func (m *MockRepository) Delete(bucketName string, model db.Model) error

Delete mocks base method

func (*MockRepository) EXPECT

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

func (*MockRepository) Fetch

func (m *MockRepository) Fetch(bucketName, name string, model db.Model) (bool, error)

Fetch mocks base method

func (*MockRepository) FetchAll

func (m *MockRepository) FetchAll(bucketName string, modelFn func([]byte) (db.Model, error)) (interface{}, error)

FetchAll mocks base method

func (*MockRepository) Save

func (m *MockRepository) Save(bucketName string, model db.Model) error

Save mocks base method

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository

func (*MockRepositoryMockRecorder) Close

func (mr *MockRepositoryMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(bucketName, model interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockRepositoryMockRecorder) Fetch

func (mr *MockRepositoryMockRecorder) Fetch(bucketName, name, model interface{}) *gomock.Call

Fetch indicates an expected call of Fetch

func (*MockRepositoryMockRecorder) FetchAll

func (mr *MockRepositoryMockRecorder) FetchAll(bucketName, modelFn interface{}) *gomock.Call

FetchAll indicates an expected call of FetchAll

func (*MockRepositoryMockRecorder) Save

func (mr *MockRepositoryMockRecorder) Save(bucketName, model interface{}) *gomock.Call

Save indicates an expected call of Save

Jump to

Keyboard shortcuts

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