automock

package
v0.0.0-...-92e9cf4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleReferenceService

type BundleReferenceService struct {
	mock.Mock
}

BundleReferenceService is an autogenerated mock type for the BundleReferenceService type

func NewBundleReferenceService

func NewBundleReferenceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleReferenceService

NewBundleReferenceService creates a new instance of BundleReferenceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BundleReferenceService) CreateByReferenceObjectID

func (_m *BundleReferenceService) CreateByReferenceObjectID(ctx context.Context, in model.BundleReferenceInput, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) error

CreateByReferenceObjectID provides a mock function with given fields: ctx, in, objectType, objectID, bundleID

func (*BundleReferenceService) DeleteByReferenceObjectID

func (_m *BundleReferenceService) DeleteByReferenceObjectID(ctx context.Context, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) error

DeleteByReferenceObjectID provides a mock function with given fields: ctx, objectType, objectID, bundleID

func (*BundleReferenceService) GetForBundle

func (_m *BundleReferenceService) GetForBundle(ctx context.Context, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) (*model.BundleReference, error)

GetForBundle provides a mock function with given fields: ctx, objectType, objectID, bundleID

func (*BundleReferenceService) ListByBundleIDs

func (_m *BundleReferenceService) ListByBundleIDs(ctx context.Context, objectType model.BundleReferenceObjectType, bundleIDs []string, pageSize int, cursor string) ([]*model.BundleReference, map[string]int, error)

ListByBundleIDs provides a mock function with given fields: ctx, objectType, bundleIDs, pageSize, cursor

func (*BundleReferenceService) UpdateByReferenceObjectID

func (_m *BundleReferenceService) UpdateByReferenceObjectID(ctx context.Context, in model.BundleReferenceInput, objectType model.BundleReferenceObjectType, objectID *string, bundleID *string) error

UpdateByReferenceObjectID provides a mock function with given fields: ctx, in, objectType, objectID, bundleID

type BundleService

type BundleService struct {
	mock.Mock
}

BundleService is an autogenerated mock type for the BundleService type

func NewBundleService

func NewBundleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleService

NewBundleService creates a new instance of BundleService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*BundleService) Get

func (_m *BundleService) Get(ctx context.Context, id string) (*model.Bundle, error)

Get provides a mock function with given fields: ctx, id

type EventAPIDefinitionConverter

type EventAPIDefinitionConverter struct {
	mock.Mock
}

EventAPIDefinitionConverter is an autogenerated mock type for the EventAPIDefinitionConverter type

func NewEventAPIDefinitionConverter

func NewEventAPIDefinitionConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventAPIDefinitionConverter

NewEventAPIDefinitionConverter creates a new instance of EventAPIDefinitionConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventAPIDefinitionConverter) FromEntity

FromEntity provides a mock function with given fields: entity

func (*EventAPIDefinitionConverter) ToEntity

ToEntity provides a mock function with given fields: apiModel

type EventAPIRepository

type EventAPIRepository struct {
	mock.Mock
}

EventAPIRepository is an autogenerated mock type for the EventAPIRepository type

func NewEventAPIRepository

func NewEventAPIRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventAPIRepository

NewEventAPIRepository creates a new instance of EventAPIRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventAPIRepository) Create

func (_m *EventAPIRepository) Create(ctx context.Context, tenant string, item *model.EventDefinition) error

Create provides a mock function with given fields: ctx, tenant, item

func (*EventAPIRepository) CreateGlobal

func (_m *EventAPIRepository) CreateGlobal(ctx context.Context, item *model.EventDefinition) error

CreateGlobal provides a mock function with given fields: ctx, item

func (*EventAPIRepository) Delete

func (_m *EventAPIRepository) Delete(ctx context.Context, tenantID string, id string) error

Delete provides a mock function with given fields: ctx, tenantID, id

func (*EventAPIRepository) DeleteAllByBundleID

func (_m *EventAPIRepository) DeleteAllByBundleID(ctx context.Context, tenantID string, bundleID string) error

DeleteAllByBundleID provides a mock function with given fields: ctx, tenantID, bundleID

func (*EventAPIRepository) DeleteGlobal

func (_m *EventAPIRepository) DeleteGlobal(ctx context.Context, id string) error

DeleteGlobal provides a mock function with given fields: ctx, id

func (*EventAPIRepository) GetByApplicationID

func (_m *EventAPIRepository) GetByApplicationID(ctx context.Context, tenantID string, id string, appID string) (*model.EventDefinition, error)

GetByApplicationID provides a mock function with given fields: ctx, tenantID, id, appID

func (*EventAPIRepository) GetByID

func (_m *EventAPIRepository) GetByID(ctx context.Context, tenantID string, id string) (*model.EventDefinition, error)

GetByID provides a mock function with given fields: ctx, tenantID, id

func (*EventAPIRepository) GetByIDGlobal

func (_m *EventAPIRepository) GetByIDGlobal(ctx context.Context, id string) (*model.EventDefinition, error)

GetByIDGlobal provides a mock function with given fields: ctx, id

func (*EventAPIRepository) GetForBundle

func (_m *EventAPIRepository) GetForBundle(ctx context.Context, tenant string, id string, bundleID string) (*model.EventDefinition, error)

GetForBundle provides a mock function with given fields: ctx, tenant, id, bundleID

func (*EventAPIRepository) ListByApplicationIDPage

func (_m *EventAPIRepository) ListByApplicationIDPage(ctx context.Context, tenantID string, appID string, pageSize int, cursor string) (*model.EventDefinitionPage, error)

ListByApplicationIDPage provides a mock function with given fields: ctx, tenantID, appID, pageSize, cursor

func (*EventAPIRepository) ListByBundleIDs

func (_m *EventAPIRepository) ListByBundleIDs(ctx context.Context, tenantID string, bundleIDs []string, bundleRefs []*model.BundleReference, totalCounts map[string]int, pageSize int, cursor string) ([]*model.EventDefinitionPage, error)

ListByBundleIDs provides a mock function with given fields: ctx, tenantID, bundleIDs, bundleRefs, totalCounts, pageSize, cursor

func (*EventAPIRepository) ListByResourceID

func (_m *EventAPIRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, resourceType resource.Type) ([]*model.EventDefinition, error)

ListByResourceID provides a mock function with given fields: ctx, tenantID, resourceID, resourceType

func (*EventAPIRepository) Update

func (_m *EventAPIRepository) Update(ctx context.Context, tenant string, item *model.EventDefinition) error

Update provides a mock function with given fields: ctx, tenant, item

func (*EventAPIRepository) UpdateGlobal

func (_m *EventAPIRepository) UpdateGlobal(ctx context.Context, item *model.EventDefinition) error

UpdateGlobal provides a mock function with given fields: ctx, item

type EventDefConverter

type EventDefConverter struct {
	mock.Mock
}

EventDefConverter is an autogenerated mock type for the EventDefConverter type

func NewEventDefConverter

func NewEventDefConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventDefConverter

NewEventDefConverter creates a new instance of EventDefConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventDefConverter) InputFromGraphQL

InputFromGraphQL provides a mock function with given fields: in

func (*EventDefConverter) ToGraphQL

func (_m *EventDefConverter) ToGraphQL(in *model.EventDefinition, spec *model.Spec, bundleReference *model.BundleReference) (*graphql.EventDefinition, error)

ToGraphQL provides a mock function with given fields: in, spec, bundleReference

type EventDefService

type EventDefService struct {
	mock.Mock
}

EventDefService is an autogenerated mock type for the EventDefService type

func NewEventDefService

func NewEventDefService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventDefService

NewEventDefService creates a new instance of EventDefService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EventDefService) CreateInApplication

func (_m *EventDefService) CreateInApplication(ctx context.Context, appID string, in model.EventDefinitionInput, spec *model.SpecInput) (string, error)

CreateInApplication provides a mock function with given fields: ctx, appID, in, spec

func (*EventDefService) CreateInBundle

func (_m *EventDefService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, bundleID string, in model.EventDefinitionInput, spec *model.SpecInput) (string, error)

CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, in, spec

func (*EventDefService) Delete

func (_m *EventDefService) Delete(ctx context.Context, resourceType resource.Type, id string) error

Delete provides a mock function with given fields: ctx, resourceType, id

func (*EventDefService) Get

Get provides a mock function with given fields: ctx, id

func (*EventDefService) ListByApplicationIDPage

func (_m *EventDefService) ListByApplicationIDPage(ctx context.Context, appID string, pageSize int, cursor string) (*model.EventDefinitionPage, error)

ListByApplicationIDPage provides a mock function with given fields: ctx, appID, pageSize, cursor

func (*EventDefService) ListFetchRequests

func (_m *EventDefService) ListFetchRequests(ctx context.Context, eventDefIDs []string) ([]*model.FetchRequest, error)

ListFetchRequests provides a mock function with given fields: ctx, eventDefIDs

func (*EventDefService) Update

func (_m *EventDefService) Update(ctx context.Context, resourceType resource.Type, id string, in model.EventDefinitionInput, spec *model.SpecInput) error

Update provides a mock function with given fields: ctx, resourceType, id, in, spec

func (*EventDefService) UpdateForApplication

func (_m *EventDefService) UpdateForApplication(ctx context.Context, id string, in model.EventDefinitionInput, specIn *model.SpecInput) error

UpdateForApplication provides a mock function with given fields: ctx, id, in, specIn

type FetchRequestConverter

type FetchRequestConverter struct {
	mock.Mock
}

FetchRequestConverter is an autogenerated mock type for the FetchRequestConverter type

func NewFetchRequestConverter

func NewFetchRequestConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestConverter

NewFetchRequestConverter creates a new instance of FetchRequestConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FetchRequestConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type SpecConverter

type SpecConverter struct {
	mock.Mock
}

SpecConverter is an autogenerated mock type for the SpecConverter type

func NewSpecConverter

func NewSpecConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpecConverter

NewSpecConverter creates a new instance of SpecConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SpecConverter) InputFromGraphQLEventSpec

func (_m *SpecConverter) InputFromGraphQLEventSpec(in *graphql.EventSpecInput) (*model.SpecInput, error)

InputFromGraphQLEventSpec provides a mock function with given fields: in

func (*SpecConverter) ToGraphQLEventSpec

func (_m *SpecConverter) ToGraphQLEventSpec(in *model.Spec) (*graphql.EventSpec, error)

ToGraphQLEventSpec provides a mock function with given fields: in

type SpecService

type SpecService struct {
	mock.Mock
}

SpecService is an autogenerated mock type for the SpecService type

func NewSpecService

func NewSpecService(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpecService

NewSpecService creates a new instance of SpecService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SpecService) CreateByReferenceObjectID

func (_m *SpecService) CreateByReferenceObjectID(ctx context.Context, in model.SpecInput, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) (string, error)

CreateByReferenceObjectID provides a mock function with given fields: ctx, in, resourceType, objectType, objectID

func (*SpecService) GetByReferenceObjectID

func (_m *SpecService) GetByReferenceObjectID(ctx context.Context, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) (*model.Spec, error)

GetByReferenceObjectID provides a mock function with given fields: ctx, resourceType, objectType, objectID

func (*SpecService) ListFetchRequestsByReferenceObjectIDs

func (_m *SpecService) ListFetchRequestsByReferenceObjectIDs(ctx context.Context, tenant string, objectIDs []string, objectType model.SpecReferenceObjectType) ([]*model.FetchRequest, error)

ListFetchRequestsByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectIDs, objectType

func (*SpecService) RefetchSpec

func (_m *SpecService) RefetchSpec(ctx context.Context, id string, objectType model.SpecReferenceObjectType) (*model.Spec, error)

RefetchSpec provides a mock function with given fields: ctx, id, objectType

func (*SpecService) UpdateByReferenceObjectID

func (_m *SpecService) UpdateByReferenceObjectID(ctx context.Context, id string, in model.SpecInput, resourceType resource.Type, objectType model.SpecReferenceObjectType, objectID string) error

UpdateByReferenceObjectID provides a mock function with given fields: ctx, id, in, resourceType, objectType, objectID

type UIDService

type UIDService struct {
	mock.Mock
}

UIDService is an autogenerated mock type for the UIDService type

func NewUIDService

func NewUIDService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UIDService

NewUIDService creates a new instance of UIDService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UIDService) Generate

func (_m *UIDService) Generate() string

Generate provides a mock function with given fields:

type VersionConverter

type VersionConverter struct {
	mock.Mock
}

VersionConverter is an autogenerated mock type for the VersionConverter type

func NewVersionConverter

func NewVersionConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *VersionConverter

NewVersionConverter creates a new instance of VersionConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*VersionConverter) FromEntity

func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version

FromEntity provides a mock function with given fields: _a0

func (*VersionConverter) InputFromGraphQL

func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput

InputFromGraphQL provides a mock function with given fields: in

func (*VersionConverter) ToEntity

func (_m *VersionConverter) ToEntity(_a0 model.Version) version.Version

ToEntity provides a mock function with given fields: _a0

func (*VersionConverter) ToGraphQL

func (_m *VersionConverter) ToGraphQL(in *model.Version) *graphql.Version

ToGraphQL provides a mock function with given fields: in

Jump to

Keyboard shortcuts

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