mocks

package
v0.0.0-...-a32083c Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 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 IBookRepository

type IBookRepository struct {
	mock.Mock
}

IBookRepository is an autogenerated mock type for the IBookRepository type

func (*IBookRepository) BookCtx

func (_m *IBookRepository) BookCtx(next http.Handler) http.Handler

BookCtx provides a mock function with given fields: next

func (*IBookRepository) Create

func (_m *IBookRepository) Create(book *model.Book) (*model.Book, error)

Create provides a mock function with given fields: book

func (*IBookRepository) Delete

func (_m *IBookRepository) Delete(ID objectid.ObjectID) (int64, error)

Delete provides a mock function with given fields: ID

func (*IBookRepository) Get

func (_m *IBookRepository) Get(ID string) (*model.Book, error)

Get provides a mock function with given fields: ID

func (*IBookRepository) List

func (_m *IBookRepository) List(filters *model.BookFilter, sorting *model.Sorting) ([]model.Book, error)

List provides a mock function with given fields: filters, sorting

func (*IBookRepository) Update

func (_m *IBookRepository) Update(book *model.Book) (*model.Book, error)

Update provides a mock function with given fields: book

Jump to

Keyboard shortcuts

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