mocks

package
v0.0.0-...-67f085a Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookRepository

type BookRepository struct {
	mock.Mock
}

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

func (_m *BookRepository) DeleteBook(ctx context.Context, id uuid.UUID) error

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

Jump to

Keyboard shortcuts

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