fixtures

package
v0.0.79 Latest Latest
Warning

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

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

Documentation

Overview

Package fixtures contains code for creating ProviderStore 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 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

Jump to

Keyboard shortcuts

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