mock_entity

package
v1.7.1-beta0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_entity is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Count

func (m *MockRepository) Count(ctx context.Context) (int64, error)

Count mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, key string) error

Delete mocks base method.

func (*MockRepository) DeleteMeta

func (m *MockRepository) DeleteMeta(ctx context.Context, ccid string) error

DeleteMeta mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) Get

func (m *MockRepository) Get(ctx context.Context, key string) (core.Entity, error)

Get mocks base method.

func (*MockRepository) GetByAlias

func (m *MockRepository) GetByAlias(ctx context.Context, alias string) (core.Entity, error)

GetByAlias mocks base method.

func (*MockRepository) GetList

func (m *MockRepository) GetList(ctx context.Context) ([]core.Entity, error)

GetList mocks base method.

func (*MockRepository) GetMeta

func (m *MockRepository) GetMeta(ctx context.Context, key string) (core.EntityMeta, error)

GetMeta mocks base method.

func (*MockRepository) SetAlias

func (m *MockRepository) SetAlias(ctx context.Context, id, alias string) error

SetAlias mocks base method.

func (*MockRepository) SetTombstone

func (m *MockRepository) SetTombstone(ctx context.Context, id, document, signature string) error

SetTombstone mocks base method.

func (*MockRepository) UpdateMeta

func (m *MockRepository) UpdateMeta(ctx context.Context, key, info string) error

UpdateMeta mocks base method.

func (*MockRepository) UpdateScore

func (m *MockRepository) UpdateScore(ctx context.Context, id string, score int) error

UpdateScore mocks base method.

func (*MockRepository) UpdateTag

func (m *MockRepository) UpdateTag(ctx context.Context, id, tag string) error

UpdateTag mocks base method.

func (*MockRepository) Upsert

func (m *MockRepository) Upsert(ctx context.Context, entity core.Entity) (core.Entity, error)

Upsert mocks base method.

func (*MockRepository) UpsertWithMeta

func (m *MockRepository) UpsertWithMeta(ctx context.Context, entity core.Entity, meta core.EntityMeta) (core.Entity, core.EntityMeta, error)

UpsertWithMeta mocks base method.

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Count

func (mr *MockRepositoryMockRecorder) Count(ctx any) *gomock.Call

Count indicates an expected call of Count.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, key any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) DeleteMeta

func (mr *MockRepositoryMockRecorder) DeleteMeta(ctx, ccid any) *gomock.Call

DeleteMeta indicates an expected call of DeleteMeta.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) GetByAlias

func (mr *MockRepositoryMockRecorder) GetByAlias(ctx, alias any) *gomock.Call

GetByAlias indicates an expected call of GetByAlias.

func (*MockRepositoryMockRecorder) GetList

func (mr *MockRepositoryMockRecorder) GetList(ctx any) *gomock.Call

GetList indicates an expected call of GetList.

func (*MockRepositoryMockRecorder) GetMeta

func (mr *MockRepositoryMockRecorder) GetMeta(ctx, key any) *gomock.Call

GetMeta indicates an expected call of GetMeta.

func (*MockRepositoryMockRecorder) SetAlias

func (mr *MockRepositoryMockRecorder) SetAlias(ctx, id, alias any) *gomock.Call

SetAlias indicates an expected call of SetAlias.

func (*MockRepositoryMockRecorder) SetTombstone

func (mr *MockRepositoryMockRecorder) SetTombstone(ctx, id, document, signature any) *gomock.Call

SetTombstone indicates an expected call of SetTombstone.

func (*MockRepositoryMockRecorder) UpdateMeta

func (mr *MockRepositoryMockRecorder) UpdateMeta(ctx, key, info any) *gomock.Call

UpdateMeta indicates an expected call of UpdateMeta.

func (*MockRepositoryMockRecorder) UpdateScore

func (mr *MockRepositoryMockRecorder) UpdateScore(ctx, id, score any) *gomock.Call

UpdateScore indicates an expected call of UpdateScore.

func (*MockRepositoryMockRecorder) UpdateTag

func (mr *MockRepositoryMockRecorder) UpdateTag(ctx, id, tag any) *gomock.Call

UpdateTag indicates an expected call of UpdateTag.

func (*MockRepositoryMockRecorder) Upsert

func (mr *MockRepositoryMockRecorder) Upsert(ctx, entity any) *gomock.Call

Upsert indicates an expected call of Upsert.

func (*MockRepositoryMockRecorder) UpsertWithMeta

func (mr *MockRepositoryMockRecorder) UpsertWithMeta(ctx, entity, meta any) *gomock.Call

UpsertWithMeta indicates an expected call of UpsertWithMeta.

Jump to

Keyboard shortcuts

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