mocks

package
v0.0.0-...-8339bdc Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 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 Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Create

func (_m *Repository) Create(destination *form.DestinationForm) (interface{}, error)

Create provides a mock function with given fields: destination

func (*Repository) Delete

func (_m *Repository) Delete(id string) error

Delete provides a mock function with given fields: id

func (*Repository) Find

func (_m *Repository) Find(search string) (interface{}, error)

Find provides a mock function with given fields: search

func (*Repository) FindByID

func (_m *Repository) FindByID(id string) (interface{}, error)

FindByID provides a mock function with given fields: id

func (*Repository) FindIndex

func (_m *Repository) FindIndex() (bool, error)

FindIndex provides a mock function with given fields:

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Create

func (_m *Service) Create(user *form.DestinationForm) (interface{}, int, error)

Create provides a mock function with given fields: user

func (*Service) Delete

func (_m *Service) Delete(id string) (int, error)

Delete provides a mock function with given fields: id

func (*Service) Find

func (_m *Service) Find(search string) (interface{}, int, error)

Find provides a mock function with given fields: search

func (*Service) FindByID

func (_m *Service) FindByID(id string) (interface{}, int, error)

FindByID provides a mock function with given fields: id

func (*Service) FindIndex

func (_m *Service) FindIndex() (bool, int, error)

FindIndex provides a mock function with given fields:

Jump to

Keyboard shortcuts

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