mock_service

package
v0.8.21 Latest Latest
Warning

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

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

Documentation

Overview

Package mock_service is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBookService

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

MockBookService is a mock of BookService interface

func NewMockBookService

func NewMockBookService(ctrl *gomock.Controller) *MockBookService

NewMockBookService creates a new mock instance

func (*MockBookService) Create

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

Create mocks base method

func (*MockBookService) Delete

func (m *MockBookService) Delete(arg0 context.Context, arg1 int64) error

Delete mocks base method

func (*MockBookService) EXPECT

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

func (*MockBookService) Find

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

Find mocks base method

func (*MockBookService) FindOne

func (m *MockBookService) FindOne(arg0 context.Context, arg1 int64) (*repository.Book, error)

FindOne mocks base method

func (*MockBookService) Update

func (m *MockBookService) Update(arg0 context.Context, arg1 *repository.Book) (*repository.Book, error)

Update mocks base method

type MockBookServiceMockRecorder

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

MockBookServiceMockRecorder is the mock recorder for MockBookService

func (*MockBookServiceMockRecorder) Create

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

Create indicates an expected call of Create

func (*MockBookServiceMockRecorder) Delete

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

Delete indicates an expected call of Delete

func (*MockBookServiceMockRecorder) Find

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

Find indicates an expected call of Find

func (*MockBookServiceMockRecorder) FindOne

func (mr *MockBookServiceMockRecorder) FindOne(arg0, arg1 interface{}) *gomock.Call

FindOne indicates an expected call of FindOne

func (*MockBookServiceMockRecorder) Update

func (mr *MockBookServiceMockRecorder) Update(arg0, arg1 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