mocks

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookOperationsService

type BookOperationsService struct {
	mock.Mock
}

BookOperationsService is an autogenerated mock type for the BookOperationsService type

func NewBookOperationsService

func NewBookOperationsService(t mockConstructorTestingTNewBookOperationsService) *BookOperationsService

NewBookOperationsService creates a new instance of BookOperationsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BookOperationsService) ListByUser

func (_m *BookOperationsService) ListByUser(userID string) ([]db.Book, error)

ListByUser provides a mock function with given fields: userID

type MagazineOperationsService

type MagazineOperationsService struct {
	mock.Mock
}

MagazineOperationsService is an autogenerated mock type for the MagazineOperationsService type

func NewMagazineOperationsService

func NewMagazineOperationsService(t mockConstructorTestingTNewMagazineOperationsService) *MagazineOperationsService

NewMagazineOperationsService creates a new instance of MagazineOperationsService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MagazineOperationsService) ListByUser

func (_m *MagazineOperationsService) ListByUser(userID string) ([]db.Magazine, error)

ListByUser provides a mock function with given fields: userID

type Number

type Number struct {
	mock.Mock
}

Number is an autogenerated mock type for the Number type

func NewNumber

func NewNumber(t mockConstructorTestingTNewNumber) *Number

NewNumber creates a new instance of Number. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

type PostingService

type PostingService struct {
	mock.Mock
}

PostingService is an autogenerated mock type for the PostingService type

func NewPostingService

func NewPostingService(t mockConstructorTestingTNewPostingService) *PostingService

NewPostingService creates a new instance of PostingService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*PostingService) NewBookOrder

func (_m *PostingService) NewBookOrder(b db.Book) error

NewBookOrder provides a mock function with given fields: b

func (*PostingService) NewMagazineOrder

func (_m *PostingService) NewMagazineOrder(m db.Magazine) error

NewMagazineOrder provides a mock function with given fields: m

type ResponseItemType

type ResponseItemType struct {
	mock.Mock
}

ResponseItemType is an autogenerated mock type for the ResponseItemType type

func NewResponseItemType

func NewResponseItemType(t mockConstructorTestingTNewResponseItemType) *ResponseItemType

NewResponseItemType creates a new instance of ResponseItemType. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

Jump to

Keyboard shortcuts

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