Documentation ¶
Overview ¶
Package fixtures contains code for creating ProviderStore fixtures and is used in various parts of the code. For testing use only.
Index ¶
- func WithFailedDelete(mock ProviderStoreMock)
- func WithFailedGetByID(mock ProviderStoreMock)
- func WithFailedGetByIDProject(mock ProviderStoreMock)
- func WithFailedGetByName(mock ProviderStoreMock)
- func WithFailedGetByNameInSpecificProject(mock ProviderStoreMock)
- func WithFailedGetByTraitInHierarchy(mock ProviderStoreMock)
- func WithSuccessfulDelete(provider *db.Provider) func(mock ProviderStoreMock)
- func WithSuccessfulGetByID(provider *db.Provider) func(mock ProviderStoreMock)
- func WithSuccessfulGetByIDProject(provider *db.Provider) func(mock ProviderStoreMock)
- func WithSuccessfulGetByName(provider *db.Provider) func(mock ProviderStoreMock)
- func WithSuccessfulGetByNameInSpecificProject(provider *db.Provider) func(mock ProviderStoreMock)
- func WithSuccessfulGetByTraitInHierarchy(provider *db.Provider) func(mock ProviderStoreMock)
- type ProviderStoreMock
- type ProviderStoreMockBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithFailedDelete ¶
func WithFailedDelete(mock ProviderStoreMock)
func WithFailedGetByID ¶
func WithFailedGetByID(mock ProviderStoreMock)
func WithFailedGetByIDProject ¶
func WithFailedGetByIDProject(mock ProviderStoreMock)
func WithFailedGetByName ¶
func WithFailedGetByName(mock ProviderStoreMock)
func WithFailedGetByNameInSpecificProject ¶
func WithFailedGetByNameInSpecificProject(mock ProviderStoreMock)
func WithFailedGetByTraitInHierarchy ¶
func WithFailedGetByTraitInHierarchy(mock ProviderStoreMock)
func WithSuccessfulDelete ¶
func WithSuccessfulDelete(provider *db.Provider) func(mock ProviderStoreMock)
func WithSuccessfulGetByID ¶
func WithSuccessfulGetByID(provider *db.Provider) func(mock ProviderStoreMock)
func WithSuccessfulGetByIDProject ¶
func WithSuccessfulGetByIDProject(provider *db.Provider) func(mock ProviderStoreMock)
func WithSuccessfulGetByName ¶
func WithSuccessfulGetByName(provider *db.Provider) func(mock ProviderStoreMock)
func WithSuccessfulGetByNameInSpecificProject ¶
func WithSuccessfulGetByNameInSpecificProject(provider *db.Provider) func(mock ProviderStoreMock)
func WithSuccessfulGetByTraitInHierarchy ¶
func WithSuccessfulGetByTraitInHierarchy(provider *db.Provider) func(mock ProviderStoreMock)
Types ¶
type ProviderStoreMock ¶
type ProviderStoreMock = *mockprov.MockProviderStore
type ProviderStoreMockBuilder ¶
type ProviderStoreMockBuilder = func(*gomock.Controller) ProviderStoreMock
func NewProviderStoreMock ¶
func NewProviderStoreMock(opts ...func(mock ProviderStoreMock)) ProviderStoreMockBuilder
Click to show internal directories.
Click to hide internal directories.