Documentation ¶
Overview ¶
Package mock_application is a generated GoMock package.
Index ¶
- type MockBookApplication
- func (m *MockBookApplication) Create(ctx context.Context, b *book.Book) error
- func (m *MockBookApplication) CreateBookshelf(ctx context.Context, bs *book.Bookshelf) error
- func (m *MockBookApplication) CreateOrUpdateBookshelf(ctx context.Context, bs *book.Bookshelf) error
- func (m *MockBookApplication) Delete(ctx context.Context, b *book.Book) error
- func (m *MockBookApplication) DeleteBookshelf(ctx context.Context, bs *book.Bookshelf) error
- func (m *MockBookApplication) EXPECT() *MockBookApplicationMockRecorder
- func (m *MockBookApplication) Get(ctx context.Context, bookID int) (*book.Book, error)
- func (m *MockBookApplication) GetBookshelfByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)
- func (m *MockBookApplication) GetBookshelfByUserIDAndBookIDWithRelated(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)
- func (m *MockBookApplication) GetByIsbn(ctx context.Context, isbn string) (*book.Book, error)
- func (m *MockBookApplication) GetReview(ctx context.Context, reviewID int) (*book.Review, error)
- func (m *MockBookApplication) GetReviewByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Review, error)
- func (m *MockBookApplication) List(ctx context.Context, q *database.ListQuery) (book.Books, int, error)
- func (m *MockBookApplication) ListBookReview(ctx context.Context, bookID, limit, offset int) (book.Reviews, int, error)
- func (m *MockBookApplication) ListBookshelf(ctx context.Context, q *database.ListQuery) (book.Bookshelves, int, error)
- func (m *MockBookApplication) ListUserMonthlyResult(ctx context.Context, userID, since, until string) (book.MonthlyResults, error)
- func (m *MockBookApplication) ListUserReview(ctx context.Context, userID string, limit, offset int) (book.Reviews, int, error)
- func (m *MockBookApplication) MultiGet(ctx context.Context, bookIDs []int) (book.Books, error)
- func (m *MockBookApplication) MultipleCreate(ctx context.Context, bs book.Books) error
- func (m *MockBookApplication) MultipleUpdate(ctx context.Context, bs book.Books) error
- func (m *MockBookApplication) Update(ctx context.Context, b *book.Book) error
- func (m *MockBookApplication) UpdateBookshelf(ctx context.Context, bs *book.Bookshelf) error
- type MockBookApplicationMockRecorder
- func (mr *MockBookApplicationMockRecorder) Create(ctx, b interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) CreateBookshelf(ctx, bs interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) CreateOrUpdateBookshelf(ctx, bs interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) Delete(ctx, b interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) DeleteBookshelf(ctx, bs interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) Get(ctx, bookID interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) GetBookshelfByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) GetBookshelfByUserIDAndBookIDWithRelated(ctx, userID, bookID interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) GetByIsbn(ctx, isbn interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) GetReview(ctx, reviewID interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) GetReviewByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) List(ctx, q interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) ListBookReview(ctx, bookID, limit, offset interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) ListBookshelf(ctx, q interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) ListUserMonthlyResult(ctx, userID, since, until interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) ListUserReview(ctx, userID, limit, offset interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) MultiGet(ctx, bookIDs interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) MultipleCreate(ctx, bs interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) MultipleUpdate(ctx, bs interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) Update(ctx, b interface{}) *gomock.Call
- func (mr *MockBookApplicationMockRecorder) UpdateBookshelf(ctx, bs interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBookApplication ¶
type MockBookApplication struct {
// contains filtered or unexported fields
}
MockBookApplication is a mock of BookApplication interface.
func NewMockBookApplication ¶
func NewMockBookApplication(ctrl *gomock.Controller) *MockBookApplication
NewMockBookApplication creates a new mock instance.
func (*MockBookApplication) CreateBookshelf ¶
CreateBookshelf mocks base method.
func (*MockBookApplication) CreateOrUpdateBookshelf ¶
func (m *MockBookApplication) CreateOrUpdateBookshelf(ctx context.Context, bs *book.Bookshelf) error
CreateOrUpdateBookshelf mocks base method.
func (*MockBookApplication) DeleteBookshelf ¶
DeleteBookshelf mocks base method.
func (*MockBookApplication) EXPECT ¶
func (m *MockBookApplication) EXPECT() *MockBookApplicationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBookApplication) GetBookshelfByUserIDAndBookID ¶
func (m *MockBookApplication) GetBookshelfByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)
GetBookshelfByUserIDAndBookID mocks base method.
func (*MockBookApplication) GetBookshelfByUserIDAndBookIDWithRelated ¶
func (m *MockBookApplication) GetBookshelfByUserIDAndBookIDWithRelated(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)
GetBookshelfByUserIDAndBookIDWithRelated mocks base method.
func (*MockBookApplication) GetReviewByUserIDAndBookID ¶
func (m *MockBookApplication) GetReviewByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Review, error)
GetReviewByUserIDAndBookID mocks base method.
func (*MockBookApplication) List ¶
func (m *MockBookApplication) List(ctx context.Context, q *database.ListQuery) (book.Books, int, error)
List mocks base method.
func (*MockBookApplication) ListBookReview ¶
func (m *MockBookApplication) ListBookReview(ctx context.Context, bookID, limit, offset int) (book.Reviews, int, error)
ListBookReview mocks base method.
func (*MockBookApplication) ListBookshelf ¶
func (m *MockBookApplication) ListBookshelf(ctx context.Context, q *database.ListQuery) (book.Bookshelves, int, error)
ListBookshelf mocks base method.
func (*MockBookApplication) ListUserMonthlyResult ¶
func (m *MockBookApplication) ListUserMonthlyResult(ctx context.Context, userID, since, until string) (book.MonthlyResults, error)
ListUserMonthlyResult mocks base method.
func (*MockBookApplication) ListUserReview ¶
func (m *MockBookApplication) ListUserReview(ctx context.Context, userID string, limit, offset int) (book.Reviews, int, error)
ListUserReview mocks base method.
func (*MockBookApplication) MultipleCreate ¶
MultipleCreate mocks base method.
func (*MockBookApplication) MultipleUpdate ¶
MultipleUpdate mocks base method.
func (*MockBookApplication) UpdateBookshelf ¶
UpdateBookshelf mocks base method.
type MockBookApplicationMockRecorder ¶
type MockBookApplicationMockRecorder struct {
// contains filtered or unexported fields
}
MockBookApplicationMockRecorder is the mock recorder for MockBookApplication.
func (*MockBookApplicationMockRecorder) Create ¶
func (mr *MockBookApplicationMockRecorder) Create(ctx, b interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockBookApplicationMockRecorder) CreateBookshelf ¶
func (mr *MockBookApplicationMockRecorder) CreateBookshelf(ctx, bs interface{}) *gomock.Call
CreateBookshelf indicates an expected call of CreateBookshelf.
func (*MockBookApplicationMockRecorder) CreateOrUpdateBookshelf ¶
func (mr *MockBookApplicationMockRecorder) CreateOrUpdateBookshelf(ctx, bs interface{}) *gomock.Call
CreateOrUpdateBookshelf indicates an expected call of CreateOrUpdateBookshelf.
func (*MockBookApplicationMockRecorder) Delete ¶
func (mr *MockBookApplicationMockRecorder) Delete(ctx, b interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockBookApplicationMockRecorder) DeleteBookshelf ¶
func (mr *MockBookApplicationMockRecorder) DeleteBookshelf(ctx, bs interface{}) *gomock.Call
DeleteBookshelf indicates an expected call of DeleteBookshelf.
func (*MockBookApplicationMockRecorder) Get ¶
func (mr *MockBookApplicationMockRecorder) Get(ctx, bookID interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockBookApplicationMockRecorder) GetBookshelfByUserIDAndBookID ¶
func (mr *MockBookApplicationMockRecorder) GetBookshelfByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
GetBookshelfByUserIDAndBookID indicates an expected call of GetBookshelfByUserIDAndBookID.
func (*MockBookApplicationMockRecorder) GetBookshelfByUserIDAndBookIDWithRelated ¶
func (mr *MockBookApplicationMockRecorder) GetBookshelfByUserIDAndBookIDWithRelated(ctx, userID, bookID interface{}) *gomock.Call
GetBookshelfByUserIDAndBookIDWithRelated indicates an expected call of GetBookshelfByUserIDAndBookIDWithRelated.
func (*MockBookApplicationMockRecorder) GetByIsbn ¶
func (mr *MockBookApplicationMockRecorder) GetByIsbn(ctx, isbn interface{}) *gomock.Call
GetByIsbn indicates an expected call of GetByIsbn.
func (*MockBookApplicationMockRecorder) GetReview ¶
func (mr *MockBookApplicationMockRecorder) GetReview(ctx, reviewID interface{}) *gomock.Call
GetReview indicates an expected call of GetReview.
func (*MockBookApplicationMockRecorder) GetReviewByUserIDAndBookID ¶
func (mr *MockBookApplicationMockRecorder) GetReviewByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
GetReviewByUserIDAndBookID indicates an expected call of GetReviewByUserIDAndBookID.
func (*MockBookApplicationMockRecorder) List ¶
func (mr *MockBookApplicationMockRecorder) List(ctx, q interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockBookApplicationMockRecorder) ListBookReview ¶
func (mr *MockBookApplicationMockRecorder) ListBookReview(ctx, bookID, limit, offset interface{}) *gomock.Call
ListBookReview indicates an expected call of ListBookReview.
func (*MockBookApplicationMockRecorder) ListBookshelf ¶
func (mr *MockBookApplicationMockRecorder) ListBookshelf(ctx, q interface{}) *gomock.Call
ListBookshelf indicates an expected call of ListBookshelf.
func (*MockBookApplicationMockRecorder) ListUserMonthlyResult ¶
func (mr *MockBookApplicationMockRecorder) ListUserMonthlyResult(ctx, userID, since, until interface{}) *gomock.Call
ListUserMonthlyResult indicates an expected call of ListUserMonthlyResult.
func (*MockBookApplicationMockRecorder) ListUserReview ¶
func (mr *MockBookApplicationMockRecorder) ListUserReview(ctx, userID, limit, offset interface{}) *gomock.Call
ListUserReview indicates an expected call of ListUserReview.
func (*MockBookApplicationMockRecorder) MultiGet ¶
func (mr *MockBookApplicationMockRecorder) MultiGet(ctx, bookIDs interface{}) *gomock.Call
MultiGet indicates an expected call of MultiGet.
func (*MockBookApplicationMockRecorder) MultipleCreate ¶
func (mr *MockBookApplicationMockRecorder) MultipleCreate(ctx, bs interface{}) *gomock.Call
MultipleCreate indicates an expected call of MultipleCreate.
func (*MockBookApplicationMockRecorder) MultipleUpdate ¶
func (mr *MockBookApplicationMockRecorder) MultipleUpdate(ctx, bs interface{}) *gomock.Call
MultipleUpdate indicates an expected call of MultipleUpdate.
func (*MockBookApplicationMockRecorder) Update ¶
func (mr *MockBookApplicationMockRecorder) Update(ctx, b interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockBookApplicationMockRecorder) UpdateBookshelf ¶
func (mr *MockBookApplicationMockRecorder) UpdateBookshelf(ctx, bs interface{}) *gomock.Call
UpdateBookshelf indicates an expected call of UpdateBookshelf.