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 BundleReferenceConverter

type BundleReferenceConverter struct {
	mock.Mock
}

BundleReferenceConverter is an autogenerated mock type for the BundleReferenceConverter type

func NewBundleReferenceConverter

func NewBundleReferenceConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleReferenceConverter

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

FromEntity provides a mock function with given fields: in

func (*BundleReferenceConverter) ToEntity

ToEntity provides a mock function with given fields: in

type BundleReferenceRepository

type BundleReferenceRepository struct {
	mock.Mock
}

BundleReferenceRepository is an autogenerated mock type for the BundleReferenceRepository type

func NewBundleReferenceRepository

func NewBundleReferenceRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleReferenceRepository

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

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

func (*BundleReferenceRepository) DeleteByReferenceObjectID

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

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

func (*BundleReferenceRepository) GetBundleIDsForObject

func (_m *BundleReferenceRepository) GetBundleIDsForObject(ctx context.Context, objectType model.BundleReferenceObjectType, objectID *string) ([]string, error)

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

func (*BundleReferenceRepository) GetByID

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

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

func (*BundleReferenceRepository) ListByBundleIDs

func (_m *BundleReferenceRepository) 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 (*BundleReferenceRepository) Update

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

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