automock

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AspectEventResourceConverter

type AspectEventResourceConverter struct {
	mock.Mock
}

AspectEventResourceConverter is an autogenerated mock type for the AspectEventResourceConverter type

func NewAspectEventResourceConverter

func NewAspectEventResourceConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AspectEventResourceConverter

NewAspectEventResourceConverter creates a new instance of AspectEventResourceConverter. 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 (*AspectEventResourceConverter) FromEntity

FromEntity provides a mock function with given fields: entity

func (*AspectEventResourceConverter) ToEntity

func (_m *AspectEventResourceConverter) ToEntity(aspectEventResourceModel *model.AspectEventResource) *aspecteventresource.Entity

ToEntity provides a mock function with given fields: aspectEventResourceModel

type AspectEventResourceRepository

type AspectEventResourceRepository struct {
	mock.Mock
}

AspectEventResourceRepository is an autogenerated mock type for the AspectEventResourceRepository type

func NewAspectEventResourceRepository

func NewAspectEventResourceRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *AspectEventResourceRepository

NewAspectEventResourceRepository creates a new instance of AspectEventResourceRepository. 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 (*AspectEventResourceRepository) Create

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

func (*AspectEventResourceRepository) ListByApplicationIDs

func (_m *AspectEventResourceRepository) ListByApplicationIDs(ctx context.Context, tenantID string, applicationIDs []string, pageSize int, cursor string) ([]*model.AspectEventResource, map[string]int, error)

ListByApplicationIDs provides a mock function with given fields: ctx, tenantID, applicationIDs, pageSize, cursor

func (*AspectEventResourceRepository) ListByAspectID

func (_m *AspectEventResourceRepository) ListByAspectID(ctx context.Context, tenant string, aspectID string) ([]*model.AspectEventResource, error)

ListByAspectID provides a mock function with given fields: ctx, tenant, aspectID

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:

Jump to

Keyboard shortcuts

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