automock

package
v0.0.0-...-d6d012e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 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 ApplicationRepository

type ApplicationRepository struct {
	mock.Mock
}

ApplicationRepository is an autogenerated mock type for the applicationRepository type

func NewApplicationRepository

func NewApplicationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationRepository

NewApplicationRepository creates a new instance of ApplicationRepository. 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 (*ApplicationRepository) GetByID

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

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

func (*ApplicationRepository) ListByScenariosNoPaging

func (_m *ApplicationRepository) ListByScenariosNoPaging(ctx context.Context, tenant string, scenarios []string) ([]*model.Application, error)

ListByScenariosNoPaging provides a mock function with given fields: ctx, tenant, scenarios

func (*ApplicationRepository) OwnerExists

func (_m *ApplicationRepository) OwnerExists(ctx context.Context, tenant string, id string) (bool, error)

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

type HttpClient

type HttpClient struct {
	mock.Mock
}

HttpClient is an autogenerated mock type for the httpClient type

func NewHttpClient

func NewHttpClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HttpClient

NewHttpClient creates a new instance of HttpClient. 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 (*HttpClient) Do

func (_m *HttpClient) Do(request *http.Request) (*http.Response, error)

Do provides a mock function with given fields: request

type LabelRepository

type LabelRepository struct {
	mock.Mock
}

LabelRepository is an autogenerated mock type for the labelRepository type

func NewLabelRepository

func NewLabelRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelRepository

NewLabelRepository creates a new instance of LabelRepository. 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 (*LabelRepository) GetByKey

func (_m *LabelRepository) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)

GetByKey provides a mock function with given fields: ctx, tenant, objectType, objectID, key

func (*LabelRepository) ListForGlobalObject

func (_m *LabelRepository) ListForGlobalObject(ctx context.Context, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)

ListForGlobalObject provides a mock function with given fields: ctx, objectType, objectID

func (*LabelRepository) ListForObject

func (_m *LabelRepository) ListForObject(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)

ListForObject provides a mock function with given fields: ctx, tenant, objectType, objectID

type RuntimeCtxRepository

type RuntimeCtxRepository struct {
	mock.Mock
}

RuntimeCtxRepository is an autogenerated mock type for the runtimeCtxRepository type

func NewRuntimeCtxRepository

func NewRuntimeCtxRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeCtxRepository

NewRuntimeCtxRepository creates a new instance of RuntimeCtxRepository. 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 (*RuntimeCtxRepository) GetByID

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

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

type RuntimeRepository

type RuntimeRepository struct {
	mock.Mock
}

RuntimeRepository is an autogenerated mock type for the runtimeRepository type

func NewRuntimeRepository

func NewRuntimeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeRepository

NewRuntimeRepository creates a new instance of RuntimeRepository. 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 (*RuntimeRepository) OwnerExists

func (_m *RuntimeRepository) OwnerExists(ctx context.Context, tenant string, id string) (bool, error)

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

type TenantRepository

type TenantRepository struct {
	mock.Mock
}

TenantRepository is an autogenerated mock type for the tenantRepository type

func NewTenantRepository

func NewTenantRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantRepository

NewTenantRepository creates a new instance of TenantRepository. 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 (*TenantRepository) GetByExternalTenant

func (_m *TenantRepository) GetByExternalTenant(ctx context.Context, externalTenant string) (*model.BusinessTenantMapping, error)

GetByExternalTenant provides a mock function with given fields: ctx, externalTenant

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