mock

package
v0.0.0-...-0bb9bcb Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2018 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 RepositoryMock

type RepositoryMock struct {
	mock.Mock
}

RepositoryMock the struct fake for testing the Project callings to dbs

func (*RepositoryMock) FindAll

func (m *RepositoryMock) FindAll() ([]*project.Project, error)

FindAll function mock to simulate the calling on "FindAll"

func (*RepositoryMock) FindByID

func (m *RepositoryMock) FindByID(ID string) (project.Project, error)

FindByID function mock to simulate the calling on "FindByID"

func (*RepositoryMock) FindByName

func (m *RepositoryMock) FindByName(name string) (project.Project, error)

FindByName function mock to simulate the calling on "FindByName"

func (*RepositoryMock) Persist

func (m *RepositoryMock) Persist(project *project.Project) error

Persist function mock to simulate the calling on "Persist"

func (*RepositoryMock) Remove

func (m *RepositoryMock) Remove(ID string) error

Remove function mock to simulate the calling on "Remove"

Jump to

Keyboard shortcuts

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