Documentation ¶
Overview ¶
Package repository is a generated GoMock package.
Index ¶
- type MockAuthor
- type MockAuthorMockRecorder
- type MockAuthorization
- type MockAuthorizationMockRecorder
- type MockBook
- func (m *MockBook) CreateBook(arg0 models.Book) (int, error)
- func (m *MockBook) DeleteBook(arg0 int) error
- func (m *MockBook) EXPECT() *MockBookMockRecorder
- func (m *MockBook) GetAllBook() ([]models.Book, error)
- func (m *MockBook) GetBookById(arg0 int) (models.Book, error)
- func (m *MockBook) UpdateBook(arg0 int, arg1 models.Book) error
- type MockBookMockRecorder
- func (mr *MockBookMockRecorder) CreateBook(arg0 interface{}) *gomock.Call
- func (mr *MockBookMockRecorder) DeleteBook(arg0 interface{}) *gomock.Call
- func (mr *MockBookMockRecorder) GetAllBook() *gomock.Call
- func (mr *MockBookMockRecorder) GetBookById(arg0 interface{}) *gomock.Call
- func (mr *MockBookMockRecorder) UpdateBook(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthor ¶
type MockAuthor struct {
// contains filtered or unexported fields
}
MockAuthor is a mock of Author interface.
func NewMockAuthor ¶
func NewMockAuthor(ctrl *gomock.Controller) *MockAuthor
NewMockAuthor creates a new mock instance.
func (*MockAuthor) EXPECT ¶
func (m *MockAuthor) EXPECT() *MockAuthorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthorMockRecorder ¶
type MockAuthorMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorMockRecorder is the mock recorder for MockAuthor.
type MockAuthorization ¶
type MockAuthorization struct {
// contains filtered or unexported fields
}
MockAuthorization is a mock of Authorization interface.
func NewMockAuthorization ¶
func NewMockAuthorization(ctrl *gomock.Controller) *MockAuthorization
NewMockAuthorization creates a new mock instance.
func (*MockAuthorization) CreateUser ¶
func (m *MockAuthorization) CreateUser(arg0 models.User) (int, error)
CreateUser mocks base method.
func (*MockAuthorization) EXPECT ¶
func (m *MockAuthorization) EXPECT() *MockAuthorizationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAuthorizationMockRecorder ¶
type MockAuthorizationMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationMockRecorder is the mock recorder for MockAuthorization.
func (*MockAuthorizationMockRecorder) CreateUser ¶
func (mr *MockAuthorizationMockRecorder) CreateUser(arg0 interface{}) *gomock.Call
CreateUser indicates an expected call of CreateUser.
func (*MockAuthorizationMockRecorder) GetUser ¶
func (mr *MockAuthorizationMockRecorder) GetUser(arg0, arg1 interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
type MockBook ¶
type MockBook struct {
// contains filtered or unexported fields
}
MockBook is a mock of Book interface.
func NewMockBook ¶
func NewMockBook(ctrl *gomock.Controller) *MockBook
NewMockBook creates a new mock instance.
func (*MockBook) CreateBook ¶
CreateBook mocks base method.
func (*MockBook) DeleteBook ¶
DeleteBook mocks base method.
func (*MockBook) EXPECT ¶
func (m *MockBook) EXPECT() *MockBookMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBook) GetAllBook ¶
GetAllBook mocks base method.
func (*MockBook) GetBookById ¶
GetBookById mocks base method.
type MockBookMockRecorder ¶
type MockBookMockRecorder struct {
// contains filtered or unexported fields
}
MockBookMockRecorder is the mock recorder for MockBook.
func (*MockBookMockRecorder) CreateBook ¶
func (mr *MockBookMockRecorder) CreateBook(arg0 interface{}) *gomock.Call
CreateBook indicates an expected call of CreateBook.
func (*MockBookMockRecorder) DeleteBook ¶
func (mr *MockBookMockRecorder) DeleteBook(arg0 interface{}) *gomock.Call
DeleteBook indicates an expected call of DeleteBook.
func (*MockBookMockRecorder) GetAllBook ¶
func (mr *MockBookMockRecorder) GetAllBook() *gomock.Call
GetAllBook indicates an expected call of GetAllBook.
func (*MockBookMockRecorder) GetBookById ¶
func (mr *MockBookMockRecorder) GetBookById(arg0 interface{}) *gomock.Call
GetBookById indicates an expected call of GetBookById.
func (*MockBookMockRecorder) UpdateBook ¶
func (mr *MockBookMockRecorder) UpdateBook(arg0, arg1 interface{}) *gomock.Call
UpdateBook indicates an expected call of UpdateBook.