automock

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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 AuthConverter

type AuthConverter struct {
	mock.Mock
}

AuthConverter is an autogenerated mock type for the AuthConverter type

func NewAuthConverter

func NewAuthConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthConverter

NewAuthConverter creates a new instance of AuthConverter. 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 (*AuthConverter) InputFromGraphQL

func (_m *AuthConverter) InputFromGraphQL(in *graphql.AuthInput) (*model.AuthInput, error)

InputFromGraphQL provides a mock function with given fields: in

func (*AuthConverter) ToGraphQL

func (_m *AuthConverter) ToGraphQL(in *model.Auth) (*graphql.Auth, error)

ToGraphQL provides a mock function with given fields: in

type BundleConverter

type BundleConverter struct {
	mock.Mock
}

BundleConverter is an autogenerated mock type for the BundleConverter type

func NewBundleConverter

func NewBundleConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleConverter

NewBundleConverter creates a new instance of BundleConverter. 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 (*BundleConverter) ToGraphQL

func (_m *BundleConverter) ToGraphQL(in *model.Bundle) (*graphql.Bundle, error)

ToGraphQL provides a mock function with given fields: in

type BundleService

type BundleService struct {
	mock.Mock
}

BundleService is an autogenerated mock type for the BundleService type

func NewBundleService

func NewBundleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *BundleService

NewBundleService creates a new instance of BundleService. 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 (*BundleService) Get

func (_m *BundleService) Get(ctx context.Context, id string) (*model.Bundle, error)

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

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

CreateInputFromGraphQL provides a mock function with given fields: in

func (*Converter) RequestInputFromGraphQL

RequestInputFromGraphQL provides a mock function with given fields: in

func (*Converter) SetInputFromGraphQL

SetInputFromGraphQL provides a mock function with given fields: in

func (*Converter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

func (*Converter) UpdateInputFromGraphQL

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

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

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

func (_m *Repository) Create(ctx context.Context, item *model.BundleInstanceAuth) error

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

func (*Repository) Delete

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

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

func (*Repository) GetByID

func (_m *Repository) GetByID(ctx context.Context, tenantID string, id string) (*model.BundleInstanceAuth, error)

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

func (*Repository) GetForBundle

func (_m *Repository) GetForBundle(ctx context.Context, tenant string, id string, bundleID string) (*model.BundleInstanceAuth, error)

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

func (*Repository) ListByBundleID

func (_m *Repository) ListByBundleID(ctx context.Context, tenantID string, bundleID string) ([]*model.BundleInstanceAuth, error)

ListByBundleID provides a mock function with given fields: ctx, tenantID, bundleID

func (*Repository) ListByRuntimeID

func (_m *Repository) ListByRuntimeID(ctx context.Context, tenantID string, runtimeID string) ([]*model.BundleInstanceAuth, error)

ListByRuntimeID provides a mock function with given fields: ctx, tenantID, runtimeID

func (*Repository) Update

func (_m *Repository) Update(ctx context.Context, tenant string, item *model.BundleInstanceAuth) error

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

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

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

func (_m *Service) Create(ctx context.Context, bundleID string, in model.BundleInstanceAuthRequestInput, defaultAuth *model.Auth, requestInputSchema *string) (string, error)

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

func (*Service) CreateBundleInstanceAuth

func (_m *Service) CreateBundleInstanceAuth(ctx context.Context, bundleID string, in model.BundleInstanceAuthCreateInput, requestInputSchema *string) (string, error)

CreateBundleInstanceAuth provides a mock function with given fields: ctx, bundleID, in, requestInputSchema

func (*Service) Delete

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

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

func (*Service) Get

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

func (*Service) RequestDeletion

func (_m *Service) RequestDeletion(ctx context.Context, instanceAuth *model.BundleInstanceAuth, defaultBundleInstanceAuth *model.Auth) (bool, error)

RequestDeletion provides a mock function with given fields: ctx, instanceAuth, defaultBundleInstanceAuth

func (*Service) SetAuth

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

func (*Service) Update

func (_m *Service) Update(ctx context.Context, instanceAuth *model.BundleInstanceAuth) error

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

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