Documentation ¶
Index ¶
- type BookRepository
- func (_m *BookRepository) DeleteBook(ctx context.Context, id uuid.UUID) error
- func (_m *BookRepository) GetBook(ctx context.Context, id uuid.UUID) (book_model.Book, error)
- func (_m *BookRepository) SaveBook(ctx context.Context, book book_model.Book) (book_model.Book, error)
- func (_m *BookRepository) SearchBooks(ctx context.Context) (book_model.Books, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookRepository ¶
BookRepository is an autogenerated mock type for the BookRepository type
func NewBookRepository ¶
func NewBookRepository(t mockConstructorTestingTNewBookRepository) *BookRepository
NewBookRepository creates a new instance of BookRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BookRepository) DeleteBook ¶
DeleteBook provides a mock function with given fields: ctx, id
func (*BookRepository) GetBook ¶
func (_m *BookRepository) GetBook(ctx context.Context, id uuid.UUID) (book_model.Book, error)
GetBook provides a mock function with given fields: ctx, id
func (*BookRepository) SaveBook ¶
func (_m *BookRepository) SaveBook(ctx context.Context, book book_model.Book) (book_model.Book, error)
SaveBook provides a mock function with given fields: ctx, book
func (*BookRepository) SearchBooks ¶
func (_m *BookRepository) SearchBooks(ctx context.Context) (book_model.Books, error)
SearchBooks provides a mock function with given fields: ctx
Click to show internal directories.
Click to hide internal directories.