mock_book

package
v0.0.0-...-7efc56f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_book is a generated GoMock package.

Package mock_book is a generated GoMock package.

Index

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) Count

func (m *MockRepository) Count(ctx context.Context, q *database.ListQuery) (int, error)

Count mocks base method.

func (*MockRepository) CountBookshelf

func (m *MockRepository) CountBookshelf(ctx context.Context, q *database.ListQuery) (int, error)

CountBookshelf mocks base method.

func (*MockRepository) CountReview

func (m *MockRepository) CountReview(ctx context.Context, q *database.ListQuery) (int, error)

CountReview mocks base method.

func (*MockRepository) Create

func (m *MockRepository) Create(ctx context.Context, b *book.Book) error

Create mocks base method.

func (*MockRepository) CreateBookshelf

func (m *MockRepository) CreateBookshelf(ctx context.Context, b *book.Bookshelf) error

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, bookID int) (*book.Book, error)

Get mocks base method.

func (*MockRepository) GetAuthorByName

func (m *MockRepository) GetAuthorByName(ctx context.Context, name string) (*book.Author, error)

GetAuthorByName mocks base method.

func (*MockRepository) GetAuthorIDByName

func (m *MockRepository) GetAuthorIDByName(ctx context.Context, name string) (int, error)

GetAuthorIDByName mocks base method.

func (*MockRepository) GetBookIDByIsbn

func (m *MockRepository) GetBookIDByIsbn(ctx context.Context, isbn string) (int, error)

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) GetByIsbn

func (m *MockRepository) GetByIsbn(ctx context.Context, isbn string) (*book.Book, error)

GetByIsbn mocks base method.

func (*MockRepository) GetReview

func (m *MockRepository) GetReview(ctx context.Context, reviewID int) (*book.Review, error)

GetReview 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) List

List 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) MultiGet

func (m *MockRepository) MultiGet(ctx context.Context, bookIDs []int) (book.Books, error)

MultiGet mocks base method.

func (*MockRepository) MultipleCreate

func (m *MockRepository) MultipleCreate(ctx context.Context, bs book.Books) error

MultipleCreate mocks base method.

func (*MockRepository) MultipleUpdate

func (m *MockRepository) MultipleUpdate(ctx context.Context, bs book.Books) error

MultipleUpdate mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, b *book.Book) error

Update mocks base method.

func (*MockRepository) UpdateBookshelf

func (m *MockRepository) UpdateBookshelf(ctx context.Context, b *book.Bookshelf) error

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) Author

func (m *MockValidation) Author(ctx context.Context, a *book.Author) error

Author mocks base method.

func (*MockValidation) Book

func (m *MockValidation) Book(ctx context.Context, b *book.Book) error

Book mocks base method.

func (*MockValidation) Bookshelf

func (m *MockValidation) Bookshelf(ctx context.Context, bs *book.Bookshelf) error

Bookshelf mocks base method.

func (*MockValidation) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidation) Review

func (m *MockValidation) Review(ctx context.Context, rv *book.Review) error

Review mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL