mock_book

package
v0.0.0-...-d941976 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock_book is a generated GoMock package.

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

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

CreateReview 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) GetBookshelfIDByUserIDAndBookID

func (m *MockRepository) GetBookshelfIDByUserIDAndBookID(ctx context.Context, userID string, bookID int) (int, error)

GetBookshelfIDByUserIDAndBookID mocks base method

func (*MockRepository) GetIDByIsbn

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

GetIDByIsbn 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

func (m *MockRepository) List(ctx context.Context, q *domain.ListQuery) ([]*book.Book, error)

List mocks base method

func (*MockRepository) ListBookshelf

func (m *MockRepository) ListBookshelf(ctx context.Context, q *domain.ListQuery) ([]*book.Bookshelf, error)

ListBookshelf mocks base method

func (*MockRepository) ListBookshelfCount

func (m *MockRepository) ListBookshelfCount(ctx context.Context, q *domain.ListQuery) (int, error)

ListBookshelfCount mocks base method

func (*MockRepository) ListCount

func (m *MockRepository) ListCount(ctx context.Context, q *domain.ListQuery) (int, error)

ListCount mocks base method

func (*MockRepository) ListReview

func (m *MockRepository) ListReview(ctx context.Context, q *domain.ListQuery) ([]*book.Review, error)

ListReview mocks base method

func (*MockRepository) ListReviewCount

func (m *MockRepository) ListReviewCount(ctx context.Context, q *domain.ListQuery) (int, error)

ListReviewCount mocks base method

func (*MockRepository) MultipleCreate

func (m *MockRepository) MultipleCreate(ctx context.Context, bs []*book.Book) error

MultipleCreate mocks base method

func (*MockRepository) MultipleUpdate

func (m *MockRepository) MultipleUpdate(ctx context.Context, bs []*book.Book) error

MultipleUpdate mocks base method

func (*MockRepository) Show

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

Show mocks base method

func (*MockRepository) ShowBookshelfByUserIDAndBookID

func (m *MockRepository) ShowBookshelfByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)

ShowBookshelfByUserIDAndBookID mocks base method

func (*MockRepository) ShowByIsbn

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

ShowByIsbn mocks base method

func (*MockRepository) ShowOrCreateAuthor

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

ShowOrCreateAuthor mocks base method

func (*MockRepository) ShowReview

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

ShowReview mocks base method

func (*MockRepository) ShowReviewByUserIDAndBookID

func (m *MockRepository) ShowReviewByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Review, error)

ShowReviewByUserIDAndBookID 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

func (*MockRepository) UpdateReview

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

UpdateReview mocks base method

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository

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

func (mr *MockRepositoryMockRecorder) CreateReview(ctx, rv interface{}) *gomock.Call

CreateReview indicates an expected call of CreateReview

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

func (mr *MockRepositoryMockRecorder) GetBookshelfIDByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call

GetBookshelfIDByUserIDAndBookID indicates an expected call of GetBookshelfIDByUserIDAndBookID

func (*MockRepositoryMockRecorder) GetIDByIsbn

func (mr *MockRepositoryMockRecorder) GetIDByIsbn(ctx, isbn interface{}) *gomock.Call

GetIDByIsbn indicates an expected call of GetIDByIsbn

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

func (mr *MockRepositoryMockRecorder) ListBookshelfCount(ctx, q interface{}) *gomock.Call

ListBookshelfCount indicates an expected call of ListBookshelfCount

func (*MockRepositoryMockRecorder) ListCount

func (mr *MockRepositoryMockRecorder) ListCount(ctx, q interface{}) *gomock.Call

ListCount indicates an expected call of ListCount

func (*MockRepositoryMockRecorder) ListReview

func (mr *MockRepositoryMockRecorder) ListReview(ctx, q interface{}) *gomock.Call

ListReview indicates an expected call of ListReview

func (*MockRepositoryMockRecorder) ListReviewCount

func (mr *MockRepositoryMockRecorder) ListReviewCount(ctx, q interface{}) *gomock.Call

ListReviewCount indicates an expected call of ListReviewCount

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

func (mr *MockRepositoryMockRecorder) Show(ctx, bookID interface{}) *gomock.Call

Show indicates an expected call of Show

func (*MockRepositoryMockRecorder) ShowBookshelfByUserIDAndBookID

func (mr *MockRepositoryMockRecorder) ShowBookshelfByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call

ShowBookshelfByUserIDAndBookID indicates an expected call of ShowBookshelfByUserIDAndBookID

func (*MockRepositoryMockRecorder) ShowByIsbn

func (mr *MockRepositoryMockRecorder) ShowByIsbn(ctx, isbn interface{}) *gomock.Call

ShowByIsbn indicates an expected call of ShowByIsbn

func (*MockRepositoryMockRecorder) ShowOrCreateAuthor

func (mr *MockRepositoryMockRecorder) ShowOrCreateAuthor(ctx, a interface{}) *gomock.Call

ShowOrCreateAuthor indicates an expected call of ShowOrCreateAuthor

func (*MockRepositoryMockRecorder) ShowReview

func (mr *MockRepositoryMockRecorder) ShowReview(ctx, reviewID interface{}) *gomock.Call

ShowReview indicates an expected call of ShowReview

func (*MockRepositoryMockRecorder) ShowReviewByUserIDAndBookID

func (mr *MockRepositoryMockRecorder) ShowReviewByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call

ShowReviewByUserIDAndBookID indicates an expected call of ShowReviewByUserIDAndBookID

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

func (*MockRepositoryMockRecorder) UpdateReview

func (mr *MockRepositoryMockRecorder) UpdateReview(ctx, rv interface{}) *gomock.Call

UpdateReview indicates an expected call of UpdateReview

type MockService

type MockService struct {
	// contains filtered or unexported fields
}

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) Create

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

Create mocks base method

func (*MockService) CreateBookshelf

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

CreateBookshelf mocks base method

func (*MockService) Delete

func (m *MockService) Delete(ctx context.Context, bookID int) error

Delete mocks base method

func (*MockService) DeleteBookshelf

func (m *MockService) DeleteBookshelf(ctx context.Context, bookshelfID int) error

DeleteBookshelf mocks base method

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) List

func (m *MockService) List(ctx context.Context, q *domain.ListQuery) ([]*book.Book, error)

List mocks base method

func (*MockService) ListBookshelf

func (m *MockService) ListBookshelf(ctx context.Context, q *domain.ListQuery) ([]*book.Bookshelf, error)

ListBookshelf mocks base method

func (*MockService) ListBookshelfCount

func (m *MockService) ListBookshelfCount(ctx context.Context, q *domain.ListQuery) (int, error)

ListBookshelfCount mocks base method

func (*MockService) ListCount

func (m *MockService) ListCount(ctx context.Context, q *domain.ListQuery) (int, error)

ListCount mocks base method

func (*MockService) ListReview

func (m *MockService) ListReview(ctx context.Context, q *domain.ListQuery) ([]*book.Review, error)

ListReview mocks base method

func (*MockService) ListReviewCount

func (m *MockService) ListReviewCount(ctx context.Context, q *domain.ListQuery) (int, error)

ListReviewCount mocks base method

func (*MockService) MultipleCreate

func (m *MockService) MultipleCreate(ctx context.Context, bs []*book.Book) error

MultipleCreate mocks base method

func (*MockService) MultipleUpdate

func (m *MockService) MultipleUpdate(ctx context.Context, bs []*book.Book) error

MultipleUpdate mocks base method

func (*MockService) Show

func (m *MockService) Show(ctx context.Context, bookID int) (*book.Book, error)

Show mocks base method

func (*MockService) ShowBookshelfByUserIDAndBookID

func (m *MockService) ShowBookshelfByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Bookshelf, error)

ShowBookshelfByUserIDAndBookID mocks base method

func (*MockService) ShowByIsbn

func (m *MockService) ShowByIsbn(ctx context.Context, isbn string) (*book.Book, error)

ShowByIsbn mocks base method

func (*MockService) ShowReview

func (m *MockService) ShowReview(ctx context.Context, reviewID int) (*book.Review, error)

ShowReview mocks base method

func (*MockService) ShowReviewByUserIDAndBookID

func (m *MockService) ShowReviewByUserIDAndBookID(ctx context.Context, userID string, bookID int) (*book.Review, error)

ShowReviewByUserIDAndBookID mocks base method

func (*MockService) Update

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

Update mocks base method

func (*MockService) UpdateBookshelf

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

UpdateBookshelf mocks base method

func (*MockService) Validation

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

Validation mocks base method

func (*MockService) ValidationAuthor

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

ValidationAuthor mocks base method

func (*MockService) ValidationBookshelf

func (m *MockService) ValidationBookshelf(ctx context.Context, b *book.Bookshelf) error

ValidationBookshelf mocks base method

func (*MockService) ValidationReview

func (m *MockService) ValidationReview(ctx context.Context, b *book.Review) error

ValidationReview mocks base method

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) Create

func (mr *MockServiceMockRecorder) Create(ctx, b interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockServiceMockRecorder) CreateBookshelf

func (mr *MockServiceMockRecorder) CreateBookshelf(ctx, b interface{}) *gomock.Call

CreateBookshelf indicates an expected call of CreateBookshelf

func (*MockServiceMockRecorder) Delete

func (mr *MockServiceMockRecorder) Delete(ctx, bookID interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockServiceMockRecorder) DeleteBookshelf

func (mr *MockServiceMockRecorder) DeleteBookshelf(ctx, bookshelfID interface{}) *gomock.Call

DeleteBookshelf indicates an expected call of DeleteBookshelf

func (*MockServiceMockRecorder) List

func (mr *MockServiceMockRecorder) List(ctx, q interface{}) *gomock.Call

List indicates an expected call of List

func (*MockServiceMockRecorder) ListBookshelf

func (mr *MockServiceMockRecorder) ListBookshelf(ctx, q interface{}) *gomock.Call

ListBookshelf indicates an expected call of ListBookshelf

func (*MockServiceMockRecorder) ListBookshelfCount

func (mr *MockServiceMockRecorder) ListBookshelfCount(ctx, q interface{}) *gomock.Call

ListBookshelfCount indicates an expected call of ListBookshelfCount

func (*MockServiceMockRecorder) ListCount

func (mr *MockServiceMockRecorder) ListCount(ctx, q interface{}) *gomock.Call

ListCount indicates an expected call of ListCount

func (*MockServiceMockRecorder) ListReview

func (mr *MockServiceMockRecorder) ListReview(ctx, q interface{}) *gomock.Call

ListReview indicates an expected call of ListReview

func (*MockServiceMockRecorder) ListReviewCount

func (mr *MockServiceMockRecorder) ListReviewCount(ctx, q interface{}) *gomock.Call

ListReviewCount indicates an expected call of ListReviewCount

func (*MockServiceMockRecorder) MultipleCreate

func (mr *MockServiceMockRecorder) MultipleCreate(ctx, bs interface{}) *gomock.Call

MultipleCreate indicates an expected call of MultipleCreate

func (*MockServiceMockRecorder) MultipleUpdate

func (mr *MockServiceMockRecorder) MultipleUpdate(ctx, bs interface{}) *gomock.Call

MultipleUpdate indicates an expected call of MultipleUpdate

func (*MockServiceMockRecorder) Show

func (mr *MockServiceMockRecorder) Show(ctx, bookID interface{}) *gomock.Call

Show indicates an expected call of Show

func (*MockServiceMockRecorder) ShowBookshelfByUserIDAndBookID

func (mr *MockServiceMockRecorder) ShowBookshelfByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call

ShowBookshelfByUserIDAndBookID indicates an expected call of ShowBookshelfByUserIDAndBookID

func (*MockServiceMockRecorder) ShowByIsbn

func (mr *MockServiceMockRecorder) ShowByIsbn(ctx, isbn interface{}) *gomock.Call

ShowByIsbn indicates an expected call of ShowByIsbn

func (*MockServiceMockRecorder) ShowReview

func (mr *MockServiceMockRecorder) ShowReview(ctx, reviewID interface{}) *gomock.Call

ShowReview indicates an expected call of ShowReview

func (*MockServiceMockRecorder) ShowReviewByUserIDAndBookID

func (mr *MockServiceMockRecorder) ShowReviewByUserIDAndBookID(ctx, userID, bookID interface{}) *gomock.Call

ShowReviewByUserIDAndBookID indicates an expected call of ShowReviewByUserIDAndBookID

func (*MockServiceMockRecorder) Update

func (mr *MockServiceMockRecorder) Update(ctx, b interface{}) *gomock.Call

Update indicates an expected call of Update

func (*MockServiceMockRecorder) UpdateBookshelf

func (mr *MockServiceMockRecorder) UpdateBookshelf(ctx, b interface{}) *gomock.Call

UpdateBookshelf indicates an expected call of UpdateBookshelf

func (*MockServiceMockRecorder) Validation

func (mr *MockServiceMockRecorder) Validation(ctx, b interface{}) *gomock.Call

Validation indicates an expected call of Validation

func (*MockServiceMockRecorder) ValidationAuthor

func (mr *MockServiceMockRecorder) ValidationAuthor(ctx, a interface{}) *gomock.Call

ValidationAuthor indicates an expected call of ValidationAuthor

func (*MockServiceMockRecorder) ValidationBookshelf

func (mr *MockServiceMockRecorder) ValidationBookshelf(ctx, b interface{}) *gomock.Call

ValidationBookshelf indicates an expected call of ValidationBookshelf

func (*MockServiceMockRecorder) ValidationReview

func (mr *MockServiceMockRecorder) ValidationReview(ctx, b interface{}) *gomock.Call

ValidationReview indicates an expected call of ValidationReview

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, b *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, b *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, b 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, b 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