Documentation ¶
Overview ¶
Package service_mock is a generated GoMock package.
Index ¶
- type MockBookSvc
- func (m *MockBookSvc) Create(arg0 context.Context, arg1 *postgresdb.Book) (*postgresdb.Book, error)
- func (m *MockBookSvc) Delete(arg0 context.Context, arg1 string) error
- func (m *MockBookSvc) EXPECT() *MockBookSvcMockRecorder
- func (m *MockBookSvc) Find(arg0 context.Context) ([]*postgresdb.Book, error)
- func (m *MockBookSvc) FindOne(arg0 context.Context, arg1 string) (*postgresdb.Book, error)
- func (m *MockBookSvc) Patch(arg0 context.Context, arg1 string, arg2 *postgresdb.Book) (*postgresdb.Book, error)
- func (m *MockBookSvc) Update(arg0 context.Context, arg1 string, arg2 *postgresdb.Book) (*postgresdb.Book, error)
- type MockBookSvcMockRecorder
- func (mr *MockBookSvcMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookSvcMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookSvcMockRecorder) Find(arg0 interface{}) *gomock.Call
- func (mr *MockBookSvcMockRecorder) FindOne(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockBookSvcMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBookSvcMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBookSvc ¶
type MockBookSvc struct {
// contains filtered or unexported fields
}
MockBookSvc is a mock of BookSvc interface
func NewMockBookSvc ¶
func NewMockBookSvc(ctrl *gomock.Controller) *MockBookSvc
NewMockBookSvc creates a new mock instance
func (*MockBookSvc) Create ¶
func (m *MockBookSvc) Create(arg0 context.Context, arg1 *postgresdb.Book) (*postgresdb.Book, error)
Create mocks base method
func (*MockBookSvc) Delete ¶
func (m *MockBookSvc) Delete(arg0 context.Context, arg1 string) error
Delete mocks base method
func (*MockBookSvc) EXPECT ¶
func (m *MockBookSvc) EXPECT() *MockBookSvcMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockBookSvc) Find ¶
func (m *MockBookSvc) Find(arg0 context.Context) ([]*postgresdb.Book, error)
Find mocks base method
func (*MockBookSvc) FindOne ¶
func (m *MockBookSvc) FindOne(arg0 context.Context, arg1 string) (*postgresdb.Book, error)
FindOne mocks base method
func (*MockBookSvc) Patch ¶
func (m *MockBookSvc) Patch(arg0 context.Context, arg1 string, arg2 *postgresdb.Book) (*postgresdb.Book, error)
Patch mocks base method
func (*MockBookSvc) Update ¶
func (m *MockBookSvc) Update(arg0 context.Context, arg1 string, arg2 *postgresdb.Book) (*postgresdb.Book, error)
Update mocks base method
type MockBookSvcMockRecorder ¶
type MockBookSvcMockRecorder struct {
// contains filtered or unexported fields
}
MockBookSvcMockRecorder is the mock recorder for MockBookSvc
func (*MockBookSvcMockRecorder) Create ¶
func (mr *MockBookSvcMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockBookSvcMockRecorder) Delete ¶
func (mr *MockBookSvcMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockBookSvcMockRecorder) Find ¶
func (mr *MockBookSvcMockRecorder) Find(arg0 interface{}) *gomock.Call
Find indicates an expected call of Find
func (*MockBookSvcMockRecorder) FindOne ¶
func (mr *MockBookSvcMockRecorder) FindOne(arg0, arg1 interface{}) *gomock.Call
FindOne indicates an expected call of FindOne
func (*MockBookSvcMockRecorder) Patch ¶
func (mr *MockBookSvcMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call
Patch indicates an expected call of Patch
func (*MockBookSvcMockRecorder) Update ¶
func (mr *MockBookSvcMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call
Update indicates an expected call of Update