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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationService

type ApplicationService struct {
	mock.Mock
}

ApplicationService is an autogenerated mock type for the ApplicationService type

func NewApplicationService

func NewApplicationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationService

NewApplicationService creates a new instance of ApplicationService. 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 (*ApplicationService) Exist

func (_m *ApplicationService) Exist(ctx context.Context, id string) (bool, error)

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

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

func (_m *Converter) FromEntity(in *document.Entity) (*model.Document, error)

FromEntity provides a mock function with given fields: in

func (*Converter) ToEntity

func (_m *Converter) ToEntity(in *model.Document) (*document.Entity, error)

ToEntity provides a mock function with given fields: in

type DocumentConverter

type DocumentConverter struct {
	mock.Mock
}

DocumentConverter is an autogenerated mock type for the DocumentConverter type

func NewDocumentConverter

func NewDocumentConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentConverter

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

func (_m *DocumentConverter) InputFromGraphQL(in *graphql.DocumentInput) (*model.DocumentInput, error)

InputFromGraphQL provides a mock function with given fields: in

func (*DocumentConverter) ToGraphQL

func (_m *DocumentConverter) ToGraphQL(in *model.Document) *graphql.Document

ToGraphQL provides a mock function with given fields: in

type DocumentRepository

type DocumentRepository struct {
	mock.Mock
}

DocumentRepository is an autogenerated mock type for the DocumentRepository type

func NewDocumentRepository

func NewDocumentRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentRepository

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

func (_m *DocumentRepository) Create(ctx context.Context, tenant string, item *model.Document) error

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

func (*DocumentRepository) CreateGlobal

func (_m *DocumentRepository) CreateGlobal(ctx context.Context, item *model.Document) error

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

func (*DocumentRepository) Delete

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

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

func (*DocumentRepository) Exists

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

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

func (*DocumentRepository) GetByID

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

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

func (*DocumentRepository) GetForBundle

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

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

func (*DocumentRepository) ListByBundleIDs

func (_m *DocumentRepository) ListByBundleIDs(ctx context.Context, tenantID string, bundleIDs []string, pageSize int, cursor string) ([]*model.DocumentPage, error)

ListByBundleIDs provides a mock function with given fields: ctx, tenantID, bundleIDs, pageSize, cursor

type DocumentService

type DocumentService struct {
	mock.Mock
}

DocumentService is an autogenerated mock type for the DocumentService type

func NewDocumentService

func NewDocumentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *DocumentService

NewDocumentService creates a new instance of DocumentService. 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 (*DocumentService) CreateInBundle

func (_m *DocumentService) CreateInBundle(ctx context.Context, resourceType resource.Type, resourceID string, bundleID string, in model.DocumentInput) (string, error)

CreateInBundle provides a mock function with given fields: ctx, resourceType, resourceID, bundleID, in

func (*DocumentService) Delete

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

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

func (*DocumentService) Get

func (_m *DocumentService) Get(ctx context.Context, id string) (*model.Document, error)

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

func (*DocumentService) ListFetchRequests

func (_m *DocumentService) ListFetchRequests(ctx context.Context, documentIDs []string) ([]*model.FetchRequest, error)

ListFetchRequests provides a mock function with given fields: ctx, documentIDs

type FetchRequestConverter

type FetchRequestConverter struct {
	mock.Mock
}

FetchRequestConverter is an autogenerated mock type for the FetchRequestConverter type

func NewFetchRequestConverter

func NewFetchRequestConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestConverter

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

InputFromGraphQL provides a mock function with given fields: in

func (*FetchRequestConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type FetchRequestRepository

type FetchRequestRepository struct {
	mock.Mock
}

FetchRequestRepository is an autogenerated mock type for the FetchRequestRepository type

func NewFetchRequestRepository

func NewFetchRequestRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestRepository

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

func (_m *FetchRequestRepository) Create(ctx context.Context, tenant string, item *model.FetchRequest) error

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

func (*FetchRequestRepository) CreateGlobal

func (_m *FetchRequestRepository) CreateGlobal(ctx context.Context, item *model.FetchRequest) error

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

func (*FetchRequestRepository) Delete

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

func (*FetchRequestRepository) ListByReferenceObjectIDs

func (_m *FetchRequestRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, objectType model.FetchRequestReferenceObjectType, objectIDs []string) ([]*model.FetchRequest, error)

ListByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectType, objectIDs

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