Documentation ¶
Overview ¶
Package repository_mock is a generated GoMock package.
Index ¶
- type MockBookRepo
- func (m *MockBookRepo) Create(arg0 context.Context, arg1 *repository.Book) (int64, error)
- func (m *MockBookRepo) Delete(arg0 context.Context, arg1 dbkit.DeleteOption) (int64, error)
- func (m *MockBookRepo) EXPECT() *MockBookRepoMockRecorder
- func (m *MockBookRepo) Find(arg0 context.Context, arg1 ...dbkit.SelectOption) ([]*repository.Book, error)
- func (m *MockBookRepo) Patch(arg0 context.Context, arg1 *repository.Book, arg2 dbkit.UpdateOption) (int64, error)
- func (m *MockBookRepo) Update(arg0 context.Context, arg1 *repository.Book, arg2 dbkit.UpdateOption) (int64, error)
- type MockBookRepoMockRecorder
- func (mr *MockBookRepoMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookRepoMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookRepoMockRecorder) Find(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockBookRepoMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBookRepoMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
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 ¶
func (m *MockBookRepo) EXPECT() *MockBookRepoMockRecorder
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
Click to show internal directories.
Click to hide internal directories.