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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 FormationConstraintConverter

type FormationConstraintConverter struct {
	mock.Mock
}

FormationConstraintConverter is an autogenerated mock type for the formationConstraintConverter type

func NewFormationConstraintConverter

func NewFormationConstraintConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationConstraintConverter

NewFormationConstraintConverter creates a new instance of FormationConstraintConverter. 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 (*FormationConstraintConverter) FromInputGraphQL

FromInputGraphQL provides a mock function with given fields: in

func (*FormationConstraintConverter) FromModelInputToModel

FromModelInputToModel provides a mock function with given fields: in, id

func (*FormationConstraintConverter) MultipleToGraphQL

MultipleToGraphQL provides a mock function with given fields: in

func (*FormationConstraintConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type FormationConstraintRepository

type FormationConstraintRepository struct {
	mock.Mock
}

FormationConstraintRepository is an autogenerated mock type for the formationConstraintRepository type

func NewFormationConstraintRepository

func NewFormationConstraintRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationConstraintRepository

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

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

func (*FormationConstraintRepository) Delete

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

func (*FormationConstraintRepository) Get

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

func (*FormationConstraintRepository) ListAll

ListAll provides a mock function with given fields: ctx

func (*FormationConstraintRepository) ListByIDsAndGlobal

func (_m *FormationConstraintRepository) ListByIDsAndGlobal(ctx context.Context, formationConstraintIDs []string) ([]*model.FormationConstraint, error)

ListByIDsAndGlobal provides a mock function with given fields: ctx, formationConstraintIDs

func (*FormationConstraintRepository) ListMatchingFormationConstraints

func (_m *FormationConstraintRepository) ListMatchingFormationConstraints(ctx context.Context, formationConstraintIDs []string, location pkgformationconstraint.JoinPointLocation, details pkgformationconstraint.MatchingDetails) ([]*model.FormationConstraint, error)

ListMatchingFormationConstraints provides a mock function with given fields: ctx, formationConstraintIDs, location, details

func (*FormationConstraintRepository) Update

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

type FormationConstraintService

type FormationConstraintService struct {
	mock.Mock
}

FormationConstraintService is an autogenerated mock type for the formationConstraintService type

func NewFormationConstraintService

func NewFormationConstraintService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationConstraintService

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

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

func (*FormationConstraintService) Delete

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

func (*FormationConstraintService) Get

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

func (*FormationConstraintService) List

List provides a mock function with given fields: ctx

func (*FormationConstraintService) ListByFormationTemplateID

func (_m *FormationConstraintService) ListByFormationTemplateID(ctx context.Context, formationTemplateID string) ([]*model.FormationConstraint, error)

ListByFormationTemplateID provides a mock function with given fields: ctx, formationTemplateID

func (*FormationConstraintService) Update

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

type FormationTemplateConstraintReferenceRepository

type FormationTemplateConstraintReferenceRepository struct {
	mock.Mock
}

FormationTemplateConstraintReferenceRepository is an autogenerated mock type for the formationTemplateConstraintReferenceRepository type

func NewFormationTemplateConstraintReferenceRepository

func NewFormationTemplateConstraintReferenceRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationTemplateConstraintReferenceRepository

NewFormationTemplateConstraintReferenceRepository creates a new instance of FormationTemplateConstraintReferenceRepository. 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 (*FormationTemplateConstraintReferenceRepository) ListByConstraintID

ListByConstraintID provides a mock function with given fields: ctx, constraintID

func (*FormationTemplateConstraintReferenceRepository) ListByFormationTemplateID

func (_m *FormationTemplateConstraintReferenceRepository) ListByFormationTemplateID(ctx context.Context, formationTemplateID string) ([]*model.FormationTemplateConstraintReference, error)

ListByFormationTemplateID provides a mock function with given fields: ctx, formationTemplateID

func (*FormationTemplateConstraintReferenceRepository) ListByFormationTemplateIDs

func (_m *FormationTemplateConstraintReferenceRepository) ListByFormationTemplateIDs(ctx context.Context, formationTemplateIDs []string) ([]*model.FormationTemplateConstraintReference, error)

ListByFormationTemplateIDs provides a mock function with given fields: ctx, formationTemplateIDs

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