fixtures

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fixtures contains code for creating DataSourceService fixtures and is used in various parts of the code. For testing use only.

Index

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

Jump to

Keyboard shortcuts

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