repository_mock

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package repository_mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBookRepo

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

MockBookRepo is a mock of BookRepo interface

func NewMockBookRepo

func NewMockBookRepo(ctrl *gomock.Controller) *MockBookRepo

NewMockBookRepo creates a new mock instance

func (*MockBookRepo) Create

func (m *MockBookRepo) Create(arg0 context.Context, arg1 *repository.Book) (int64, error)

Create mocks base method

func (*MockBookRepo) Delete

func (m *MockBookRepo) Delete(arg0 context.Context, arg1 dbkit.DeleteOption) (int64, error)

Delete mocks base method

func (*MockBookRepo) EXPECT

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

func (*MockBookRepo) Find added in v0.9.1

func (m *MockBookRepo) Find(arg0 context.Context, arg1 ...dbkit.SelectOption) ([]*repository.Book, error)

Find mocks base method

func (*MockBookRepo) Patch

func (m *MockBookRepo) Patch(arg0 context.Context, arg1 *repository.Book, arg2 dbkit.UpdateOption) (int64, error)

Patch mocks base method

func (*MockBookRepo) Update

func (m *MockBookRepo) Update(arg0 context.Context, arg1 *repository.Book, arg2 dbkit.UpdateOption) (int64, error)

Update mocks base method

type MockBookRepoMockRecorder

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

MockBookRepoMockRecorder is the mock recorder for MockBookRepo

func (*MockBookRepoMockRecorder) Create

func (mr *MockBookRepoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockBookRepoMockRecorder) Delete

func (mr *MockBookRepoMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockBookRepoMockRecorder) Find added in v0.9.1

func (mr *MockBookRepoMockRecorder) Find(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Find indicates an expected call of Find

func (*MockBookRepoMockRecorder) Patch

func (mr *MockBookRepoMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call

Patch indicates an expected call of Patch

func (*MockBookRepoMockRecorder) Update

func (mr *MockBookRepoMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update

Jump to

Keyboard shortcuts

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