Documentation ¶
Overview ¶
Package mock_book is a generated GoMock package.
Package mock_book is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) AggregateReadTotal(ctx context.Context, userID string, since, until time.Time) (book.MonthlyResults, error)
- func (m *MockRepository) Count(ctx context.Context, q *database.ListQuery) (int, error)
- func (m *MockRepository) CountBookshelf(ctx context.Context, q *database.ListQuery) (int, error)
- func (m *MockRepository) CountReview(ctx context.Context, q *database.ListQuery) (int, error)
- func (m *MockRepository) Create(ctx context.Context, b *book.Book) error
- func (m *MockRepository) CreateBookshelf(ctx context.Context, b *book.Bookshelf) error
- func (m *MockRepository) Delete(ctx context.Context, bookID int) error
- func (m *MockRepository) DeleteBookshelf(ctx context.Context, bookshelfID int) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, bookID int) (*book.Book, error)
- func (m *MockRepository) GetAuthorByName(ctx context.Context, name string) (*book.Author, error)
- func (m *MockRepository) GetAuthorIDByName(ctx context.Context, name string) (int, error)
- func (m *MockRepository) GetBookIDByIsbn(ctx context.Context, isbn string) (int, error)
- func (m *MockRepository) GetBookshelfByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)
- func (m *MockRepository) GetBookshelfIDByUserIDAndBookID(ctx context.Context, userID string, bookID int) (int, error)
- func (m *MockRepository) GetByIsbn(ctx context.Context, isbn string) (*book.Book, error)
- func (m *MockRepository) GetReview(ctx context.Context, reviewID int) (*book.Review, error)
- func (m *MockRepository) GetReviewByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Review, error)
- func (m *MockRepository) GetReviewIDByUserIDAndBookID(ctx context.Context, userID string, bookID int) (int, error)
- func (m *MockRepository) List(ctx context.Context, q *database.ListQuery) (book.Books, error)
- func (m *MockRepository) ListBookshelf(ctx context.Context, q *database.ListQuery) (book.Bookshelves, error)
- func (m *MockRepository) ListReview(ctx context.Context, q *database.ListQuery) (book.Reviews, error)
- func (m *MockRepository) MultiGet(ctx context.Context, bookIDs []int) (book.Books, error)
- func (m *MockRepository) MultipleCreate(ctx context.Context, bs book.Books) error
- func (m *MockRepository) MultipleUpdate(ctx context.Context, bs book.Books) error
- func (m *MockRepository) Update(ctx context.Context, b *book.Book) error
- func (m *MockRepository) UpdateBookshelf(ctx context.Context, b *book.Bookshelf) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) AggregateReadTotal(ctx, userID, since, until interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Count(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CountBookshelf(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CountReview(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Create(ctx, b interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateBookshelf(ctx, b interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(ctx, bookID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) DeleteBookshelf(ctx, bookshelfID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Get(ctx, bookID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAuthorByName(ctx, name interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAuthorIDByName(ctx, name interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetBookIDByIsbn(ctx, isbn interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetBookshelfByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetBookshelfIDByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByIsbn(ctx, isbn interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetReview(ctx, reviewID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetReviewByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetReviewIDByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) List(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListBookshelf(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListReview(ctx, q interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) MultiGet(ctx, bookIDs interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) MultipleCreate(ctx, bs interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) MultipleUpdate(ctx, bs interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Update(ctx, b interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateBookshelf(ctx, b interface{}) *gomock.Call
- type MockValidation
- func (m *MockValidation) Author(ctx context.Context, a *book.Author) error
- func (m *MockValidation) Book(ctx context.Context, b *book.Book) error
- func (m *MockValidation) Bookshelf(ctx context.Context, bs *book.Bookshelf) error
- func (m *MockValidation) EXPECT() *MockValidationMockRecorder
- func (m *MockValidation) Review(ctx context.Context, rv *book.Review) error
- type MockValidationMockRecorder
- func (mr *MockValidationMockRecorder) Author(ctx, a interface{}) *gomock.Call
- func (mr *MockValidationMockRecorder) Book(ctx, b interface{}) *gomock.Call
- func (mr *MockValidationMockRecorder) Bookshelf(ctx, bs interface{}) *gomock.Call
- func (mr *MockValidationMockRecorder) Review(ctx, rv interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) AggregateReadTotal ¶
func (m *MockRepository) AggregateReadTotal(ctx context.Context, userID string, since, until time.Time) (book.MonthlyResults, error)
AggregateReadTotal mocks base method.
func (*MockRepository) CountBookshelf ¶
CountBookshelf mocks base method.
func (*MockRepository) CountReview ¶
CountReview mocks base method.
func (*MockRepository) CreateBookshelf ¶
CreateBookshelf mocks base method.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(ctx context.Context, bookID int) error
Delete mocks base method.
func (*MockRepository) DeleteBookshelf ¶
func (m *MockRepository) DeleteBookshelf(ctx context.Context, bookshelfID int) error
DeleteBookshelf mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) GetAuthorByName ¶
GetAuthorByName mocks base method.
func (*MockRepository) GetAuthorIDByName ¶
GetAuthorIDByName mocks base method.
func (*MockRepository) GetBookIDByIsbn ¶
GetBookIDByIsbn mocks base method.
func (*MockRepository) GetBookshelfByUserIDAndBookID ¶
func (m *MockRepository) GetBookshelfByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)
GetBookshelfByUserIDAndBookID mocks base method.
func (*MockRepository) GetBookshelfIDByUserIDAndBookID ¶
func (m *MockRepository) GetBookshelfIDByUserIDAndBookID(ctx context.Context, userID string, bookID int) (int, error)
GetBookshelfIDByUserIDAndBookID mocks base method.
func (*MockRepository) GetReviewByUserIDAndBookID ¶
func (m *MockRepository) GetReviewByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Review, error)
GetReviewByUserIDAndBookID mocks base method.
func (*MockRepository) GetReviewIDByUserIDAndBookID ¶
func (m *MockRepository) GetReviewIDByUserIDAndBookID(ctx context.Context, userID string, bookID int) (int, error)
GetReviewIDByUserIDAndBookID mocks base method.
func (*MockRepository) ListBookshelf ¶
func (m *MockRepository) ListBookshelf(ctx context.Context, q *database.ListQuery) (book.Bookshelves, error)
ListBookshelf mocks base method.
func (*MockRepository) ListReview ¶
func (m *MockRepository) ListReview(ctx context.Context, q *database.ListQuery) (book.Reviews, error)
ListReview mocks base method.
func (*MockRepository) MultipleCreate ¶
MultipleCreate mocks base method.
func (*MockRepository) MultipleUpdate ¶
MultipleUpdate mocks base method.
func (*MockRepository) UpdateBookshelf ¶
UpdateBookshelf mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) AggregateReadTotal ¶
func (mr *MockRepositoryMockRecorder) AggregateReadTotal(ctx, userID, since, until interface{}) *gomock.Call
AggregateReadTotal indicates an expected call of AggregateReadTotal.
func (*MockRepositoryMockRecorder) Count ¶
func (mr *MockRepositoryMockRecorder) Count(ctx, q interface{}) *gomock.Call
Count indicates an expected call of Count.
func (*MockRepositoryMockRecorder) CountBookshelf ¶
func (mr *MockRepositoryMockRecorder) CountBookshelf(ctx, q interface{}) *gomock.Call
CountBookshelf indicates an expected call of CountBookshelf.
func (*MockRepositoryMockRecorder) CountReview ¶
func (mr *MockRepositoryMockRecorder) CountReview(ctx, q interface{}) *gomock.Call
CountReview indicates an expected call of CountReview.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, b interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) CreateBookshelf ¶
func (mr *MockRepositoryMockRecorder) CreateBookshelf(ctx, b interface{}) *gomock.Call
CreateBookshelf indicates an expected call of CreateBookshelf.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(ctx, bookID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) DeleteBookshelf ¶
func (mr *MockRepositoryMockRecorder) DeleteBookshelf(ctx, bookshelfID interface{}) *gomock.Call
DeleteBookshelf indicates an expected call of DeleteBookshelf.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, bookID interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) GetAuthorByName ¶
func (mr *MockRepositoryMockRecorder) GetAuthorByName(ctx, name interface{}) *gomock.Call
GetAuthorByName indicates an expected call of GetAuthorByName.
func (*MockRepositoryMockRecorder) GetAuthorIDByName ¶
func (mr *MockRepositoryMockRecorder) GetAuthorIDByName(ctx, name interface{}) *gomock.Call
GetAuthorIDByName indicates an expected call of GetAuthorIDByName.
func (*MockRepositoryMockRecorder) GetBookIDByIsbn ¶
func (mr *MockRepositoryMockRecorder) GetBookIDByIsbn(ctx, isbn interface{}) *gomock.Call
GetBookIDByIsbn indicates an expected call of GetBookIDByIsbn.
func (*MockRepositoryMockRecorder) GetBookshelfByUserIDAndBookID ¶
func (mr *MockRepositoryMockRecorder) GetBookshelfByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
GetBookshelfByUserIDAndBookID indicates an expected call of GetBookshelfByUserIDAndBookID.
func (*MockRepositoryMockRecorder) GetBookshelfIDByUserIDAndBookID ¶
func (mr *MockRepositoryMockRecorder) GetBookshelfIDByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
GetBookshelfIDByUserIDAndBookID indicates an expected call of GetBookshelfIDByUserIDAndBookID.
func (*MockRepositoryMockRecorder) GetByIsbn ¶
func (mr *MockRepositoryMockRecorder) GetByIsbn(ctx, isbn interface{}) *gomock.Call
GetByIsbn indicates an expected call of GetByIsbn.
func (*MockRepositoryMockRecorder) GetReview ¶
func (mr *MockRepositoryMockRecorder) GetReview(ctx, reviewID interface{}) *gomock.Call
GetReview indicates an expected call of GetReview.
func (*MockRepositoryMockRecorder) GetReviewByUserIDAndBookID ¶
func (mr *MockRepositoryMockRecorder) GetReviewByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
GetReviewByUserIDAndBookID indicates an expected call of GetReviewByUserIDAndBookID.
func (*MockRepositoryMockRecorder) GetReviewIDByUserIDAndBookID ¶
func (mr *MockRepositoryMockRecorder) GetReviewIDByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call
GetReviewIDByUserIDAndBookID indicates an expected call of GetReviewIDByUserIDAndBookID.
func (*MockRepositoryMockRecorder) List ¶
func (mr *MockRepositoryMockRecorder) List(ctx, q interface{}) *gomock.Call
List indicates an expected call of List.
func (*MockRepositoryMockRecorder) ListBookshelf ¶
func (mr *MockRepositoryMockRecorder) ListBookshelf(ctx, q interface{}) *gomock.Call
ListBookshelf indicates an expected call of ListBookshelf.
func (*MockRepositoryMockRecorder) ListReview ¶
func (mr *MockRepositoryMockRecorder) ListReview(ctx, q interface{}) *gomock.Call
ListReview indicates an expected call of ListReview.
func (*MockRepositoryMockRecorder) MultiGet ¶
func (mr *MockRepositoryMockRecorder) MultiGet(ctx, bookIDs interface{}) *gomock.Call
MultiGet indicates an expected call of MultiGet.
func (*MockRepositoryMockRecorder) MultipleCreate ¶
func (mr *MockRepositoryMockRecorder) MultipleCreate(ctx, bs interface{}) *gomock.Call
MultipleCreate indicates an expected call of MultipleCreate.
func (*MockRepositoryMockRecorder) MultipleUpdate ¶
func (mr *MockRepositoryMockRecorder) MultipleUpdate(ctx, bs interface{}) *gomock.Call
MultipleUpdate indicates an expected call of MultipleUpdate.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, b interface{}) *gomock.Call
Update indicates an expected call of Update.
func (*MockRepositoryMockRecorder) UpdateBookshelf ¶
func (mr *MockRepositoryMockRecorder) UpdateBookshelf(ctx, b interface{}) *gomock.Call
UpdateBookshelf indicates an expected call of UpdateBookshelf.
type MockValidation ¶
type MockValidation struct {
// contains filtered or unexported fields
}
MockValidation is a mock of Validation interface.
func NewMockValidation ¶
func NewMockValidation(ctrl *gomock.Controller) *MockValidation
NewMockValidation creates a new mock instance.
func (*MockValidation) EXPECT ¶
func (m *MockValidation) EXPECT() *MockValidationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockValidationMockRecorder ¶
type MockValidationMockRecorder struct {
// contains filtered or unexported fields
}
MockValidationMockRecorder is the mock recorder for MockValidation.
func (*MockValidationMockRecorder) Author ¶
func (mr *MockValidationMockRecorder) Author(ctx, a interface{}) *gomock.Call
Author indicates an expected call of Author.
func (*MockValidationMockRecorder) Book ¶
func (mr *MockValidationMockRecorder) Book(ctx, b interface{}) *gomock.Call
Book indicates an expected call of Book.
func (*MockValidationMockRecorder) Bookshelf ¶
func (mr *MockValidationMockRecorder) Bookshelf(ctx, bs interface{}) *gomock.Call
Bookshelf indicates an expected call of Bookshelf.
func (*MockValidationMockRecorder) Review ¶
func (mr *MockValidationMockRecorder) Review(ctx, rv interface{}) *gomock.Call
Review indicates an expected call of Review.