Documentation ¶
Overview ¶
Package fixtures contains code for creating DataSourceService fixtures and is used in various parts of the code. For testing use only.
Index ¶
- func WithFailedGetByName() func(DataSourcesSvcMock)
- func WithFailedListDataSources() func(DataSourcesSvcMock)
- func WithNotFoundGetByName(projectID uuid.UUID) func(DataSourcesSvcMock)
- func WithSuccessfulGetByName(projectID uuid.UUID, datasource *minderv1.DataSource) func(DataSourcesSvcMock)
- func WithSuccessfulListDataSources(datasources ...*minderv1.DataSource) func(DataSourcesSvcMock)
- type DataSourcesSvcMock
- type DataSourcesSvcMockBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithFailedGetByName ¶
func WithFailedGetByName() func(DataSourcesSvcMock)
func WithFailedListDataSources ¶
func WithFailedListDataSources() func(DataSourcesSvcMock)
func WithNotFoundGetByName ¶
func WithNotFoundGetByName(projectID uuid.UUID) func(DataSourcesSvcMock)
func WithSuccessfulGetByName ¶
func WithSuccessfulGetByName(projectID uuid.UUID, datasource *minderv1.DataSource) func(DataSourcesSvcMock)
func WithSuccessfulListDataSources ¶
func WithSuccessfulListDataSources(datasources ...*minderv1.DataSource) func(DataSourcesSvcMock)
Types ¶
type DataSourcesSvcMock ¶
type DataSourcesSvcMock = *mockdssvc.MockDataSourcesService
type DataSourcesSvcMockBuilder ¶
type DataSourcesSvcMockBuilder = func(*gomock.Controller) DataSourcesSvcMock
func NewDataSourcesServiceMock ¶
func NewDataSourcesServiceMock(opts ...func(mock DataSourcesSvcMock)) DataSourcesSvcMockBuilder
Click to show internal directories.
Click to hide internal directories.