Documentation ¶
Index ¶
- type RepositoryMock
- func (m *RepositoryMock) FindAll() ([]*project.Project, error)
- func (m *RepositoryMock) FindByID(ID string) (project.Project, error)
- func (m *RepositoryMock) FindByName(name string) (project.Project, error)
- func (m *RepositoryMock) Persist(project *project.Project) error
- func (m *RepositoryMock) Remove(ID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryMock ¶
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"
Click to show internal directories.
Click to hide internal directories.