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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationTemplateService

type ApplicationTemplateService struct {
	mock.Mock
}

ApplicationTemplateService is an autogenerated mock type for the ApplicationTemplateService type

func NewApplicationTemplateService

func NewApplicationTemplateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateService

NewApplicationTemplateService creates a new instance of ApplicationTemplateService. 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 (*ApplicationTemplateService) Exists

func (_m *ApplicationTemplateService) Exists(ctx context.Context, id string) (bool, error)

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

type ApplicationTemplateVersionRepository

type ApplicationTemplateVersionRepository struct {
	mock.Mock
}

ApplicationTemplateVersionRepository is an autogenerated mock type for the ApplicationTemplateVersionRepository type

func NewApplicationTemplateVersionRepository

func NewApplicationTemplateVersionRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateVersionRepository

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

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

func (*ApplicationTemplateVersionRepository) Exists

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

func (*ApplicationTemplateVersionRepository) GetByAppTemplateIDAndVersion

func (_m *ApplicationTemplateVersionRepository) GetByAppTemplateIDAndVersion(ctx context.Context, appTemplateID string, version string) (*model.ApplicationTemplateVersion, error)

GetByAppTemplateIDAndVersion provides a mock function with given fields: ctx, appTemplateID, version

func (*ApplicationTemplateVersionRepository) ListByAppTemplateID

func (_m *ApplicationTemplateVersionRepository) ListByAppTemplateID(ctx context.Context, appTemplateID string) ([]*model.ApplicationTemplateVersion, error)

ListByAppTemplateID provides a mock function with given fields: ctx, appTemplateID

func (*ApplicationTemplateVersionRepository) Update

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

type EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func NewEntityConverter

func NewEntityConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityConverter

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

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

ToEntity provides a mock function with given fields: in

type TimeService

type TimeService struct {
	mock.Mock
}

TimeService is an autogenerated mock type for the TimeService type

func NewTimeService

func NewTimeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TimeService

NewTimeService creates a new instance of TimeService. 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 (*TimeService) Now

func (_m *TimeService) Now() time.Time

Now provides a mock function with given fields:

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