fixtures

package
v0.0.68 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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

This section is empty.

Types

type MockPropertyServiceBuilder

type MockPropertyServiceBuilder = func(*gomock.Controller) *mockSvc.MockPropertiesService

func NewMockPropertiesService

func NewMockPropertiesService(
	funcs ...MockPropertyServiceOption,
) MockPropertyServiceBuilder

type MockPropertyServiceOption

type MockPropertyServiceOption = func(*mockSvc.MockPropertiesService)

func WithFailedEntityByUpstreamHint

func WithFailedEntityByUpstreamHint(
	err error,
) MockPropertyServiceOption

func WithFailedEntityWithPropertiesAsProto

func WithFailedEntityWithPropertiesAsProto(
	err error,
) MockPropertyServiceOption

func WithFailedGetEntityWithPropertiesByID

func WithFailedGetEntityWithPropertiesByID(
	err error,
) MockPropertyServiceOption

func WithFailedRetrieveAllPropertiesForEntity

func WithFailedRetrieveAllPropertiesForEntity(
	err error,
) MockPropertyServiceOption

func WithFailedSaveAllProperties

func WithFailedSaveAllProperties(
	err error,
) MockPropertyServiceOption

func WithSuccessfulEntityWithPropertiesAsProto

func WithSuccessfulEntityWithPropertiesAsProto(
	message protoreflect.ProtoMessage,
) MockPropertyServiceOption

func WithSuccessfulEntityWithPropertiesByID

func WithSuccessfulEntityWithPropertiesByID(
	entityID uuid.UUID,
	ewp *models.EntityWithProperties,
) MockPropertyServiceOption

func WithSuccessfulRetrieveAllProperties

func WithSuccessfulRetrieveAllProperties(
	expProject uuid.UUID,
	expProvider uuid.UUID,
	expEntityType minder.Entity,
	retProps *properties.Properties,
) MockPropertyServiceOption

func WithSuccessfulRetrieveAllPropertiesForEntity

func WithSuccessfulRetrieveAllPropertiesForEntity() MockPropertyServiceOption

func WithSuccessfulSaveAllProperties

func WithSuccessfulSaveAllProperties() MockPropertyServiceOption

Jump to

Keyboard shortcuts

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