repositorymock

package
v0.0.0-...-b784633 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package repositorymock 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[T any] struct {
	// contains filtered or unexported fields
}

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository[T any](ctrl *gomock.Controller) *MockRepository[T]

NewMockRepository creates a new mock instance.

func (*MockRepository[T]) Count

func (m *MockRepository[T]) Count(arg0 context.Context, arg1 entity.Clause) (int, error)

Count mocks base method.

func (*MockRepository[T]) Create

func (m *MockRepository[T]) Create(arg0 context.Context, arg1 *T) (*T, error)

Create mocks base method.

func (*MockRepository[T]) Delete

func (m *MockRepository[T]) Delete(arg0 context.Context, arg1 entity.Clause) error

Delete mocks base method.

func (*MockRepository[T]) EXPECT

func (m *MockRepository[T]) EXPECT() *MockRepositoryMockRecorder[T]

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

func (*MockRepository[T]) Exists

func (m *MockRepository[T]) Exists(arg0 context.Context, arg1 entity.Clause) (bool, error)

Exists mocks base method.

func (*MockRepository[T]) Find

func (m *MockRepository[T]) Find(arg0 context.Context, arg1 entity.Clause, arg2 repository.FindOptions) (*T, error)

Find mocks base method.

func (*MockRepository[T]) FindMany

func (m *MockRepository[T]) FindMany(arg0 context.Context, arg1 entity.Clause, arg2 repository.FindManyOptions) ([]*T, error)

FindMany mocks base method.

func (*MockRepository[T]) Update

func (m *MockRepository[T]) Update(arg0 context.Context, arg1 *T) error

Update mocks base method.

type MockRepositoryMockRecorder

type MockRepositoryMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder[T]) Count

func (mr *MockRepositoryMockRecorder[T]) Count(arg0, arg1 interface{}) *gomock.Call

Count indicates an expected call of Count.

func (*MockRepositoryMockRecorder[T]) Create

func (mr *MockRepositoryMockRecorder[T]) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder[T]) Delete

func (mr *MockRepositoryMockRecorder[T]) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder[T]) Exists

func (mr *MockRepositoryMockRecorder[T]) Exists(arg0, arg1 interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockRepositoryMockRecorder[T]) Find

func (mr *MockRepositoryMockRecorder[T]) Find(arg0, arg1, arg2 interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockRepositoryMockRecorder[T]) FindMany

func (mr *MockRepositoryMockRecorder[T]) FindMany(arg0, arg1, arg2 interface{}) *gomock.Call

FindMany indicates an expected call of FindMany.

func (*MockRepositoryMockRecorder[T]) Update

func (mr *MockRepositoryMockRecorder[T]) Update(arg0, arg1 interface{}) *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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