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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TenantParentRepository

type TenantParentRepository struct {
	mock.Mock
}

TenantParentRepository is an autogenerated mock type for the TenantParentRepository type

func NewTenantParentRepository

func NewTenantParentRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantParentRepository

NewTenantParentRepository creates a new instance of TenantParentRepository. 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 (*TenantParentRepository) Delete

func (_m *TenantParentRepository) Delete(ctx context.Context, tenantID string, parentID string) error

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

func (*TenantParentRepository) ListByParent

func (_m *TenantParentRepository) ListByParent(ctx context.Context, parentID string) ([]string, error)

ListByParent provides a mock function with given fields: ctx, parentID

func (*TenantParentRepository) ListParents

func (_m *TenantParentRepository) ListParents(ctx context.Context, tenantID string) ([]string, error)

ListParents provides a mock function with given fields: ctx, tenantID

func (*TenantParentRepository) Upsert

func (_m *TenantParentRepository) Upsert(ctx context.Context, tenantID string, parentID string) error

Upsert provides a mock function with given fields: ctx, tenantID, parentID

func (*TenantParentRepository) UpsertMultiple

func (_m *TenantParentRepository) UpsertMultiple(ctx context.Context, tenantID string, parentIDs []string) error

UpsertMultiple provides a mock function with given fields: ctx, tenantID, parentIDs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL