automock

package
v0.0.0-...-0640eb1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 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 EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func (*EntityConverter) FromEntity

func (_m *EntityConverter) FromEntity(entity *tombstone.Entity) (*model.Tombstone, error)

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Tombstone) *tombstone.Entity

ToEntity provides a mock function with given fields: in

type TombstoneRepository

type TombstoneRepository struct {
	mock.Mock
}

TombstoneRepository is an autogenerated mock type for the TombstoneRepository type

func (*TombstoneRepository) Create

func (_m *TombstoneRepository) Create(ctx context.Context, item *model.Tombstone) error

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

func (*TombstoneRepository) Delete

func (_m *TombstoneRepository) Delete(ctx context.Context, tenant string, id string) error

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

func (*TombstoneRepository) Exists

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

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

func (*TombstoneRepository) GetByID

func (_m *TombstoneRepository) GetByID(ctx context.Context, tenant string, id string) (*model.Tombstone, error)

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

func (*TombstoneRepository) ListByApplicationID

func (_m *TombstoneRepository) ListByApplicationID(ctx context.Context, tenantID string, appID string) ([]*model.Tombstone, error)

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

func (*TombstoneRepository) Update

func (_m *TombstoneRepository) Update(ctx context.Context, item *model.Tombstone) error

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 (*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