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 CertMappingRepository

type CertMappingRepository struct {
	mock.Mock
}

CertMappingRepository is an autogenerated mock type for the CertMappingRepository type

func NewCertMappingRepository

func NewCertMappingRepository(t mockConstructorTestingTNewCertMappingRepository) *CertMappingRepository

NewCertMappingRepository creates a new instance of CertMappingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CertMappingRepository) Create

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

func (*CertMappingRepository) Delete

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

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

func (*CertMappingRepository) DeleteByConsumerID

func (_m *CertMappingRepository) DeleteByConsumerID(ctx context.Context, consumerID string) error

DeleteByConsumerID provides a mock function with given fields: ctx, consumerID

func (*CertMappingRepository) Exists

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

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

func (*CertMappingRepository) Get

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

func (*CertMappingRepository) List

func (_m *CertMappingRepository) List(ctx context.Context, pageSize int, cursor string) (*model.CertSubjectMappingPage, error)

List provides a mock function with given fields: ctx, pageSize, cursor

func (*CertMappingRepository) ListAll

ListAll provides a mock function with given fields: ctx

func (*CertMappingRepository) Update

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

type CertSubjectMappingService

type CertSubjectMappingService struct {
	mock.Mock
}

CertSubjectMappingService is an autogenerated mock type for the CertSubjectMappingService type

func NewCertSubjectMappingService

func NewCertSubjectMappingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CertSubjectMappingService

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

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

func (*CertSubjectMappingService) Delete

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

func (*CertSubjectMappingService) Exists

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

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

func (*CertSubjectMappingService) Get

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

func (*CertSubjectMappingService) List

List provides a mock function with given fields: ctx, pageSize, cursor

func (*CertSubjectMappingService) Update

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

type Converter

type Converter struct {
	mock.Mock
}

Converter is an autogenerated mock type for the Converter type

func NewConverter

func NewConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Converter

NewConverter creates a new instance of Converter. 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 (*Converter) FromGraphql

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

func (*Converter) MultipleToGraphQL

func (_m *Converter) MultipleToGraphQL(in []*model.CertSubjectMapping) []*graphql.CertificateSubjectMapping

MultipleToGraphQL provides a mock function with given fields: in

func (*Converter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

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