Documentation ¶
Overview ¶
Package repositorymock is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository[T]) Count(arg0 context.Context, arg1 entity.Clause) (int, error)
- func (m *MockRepository[T]) Create(arg0 context.Context, arg1 *T) (*T, error)
- func (m *MockRepository[T]) Delete(arg0 context.Context, arg1 entity.Clause) error
- func (m *MockRepository[T]) EXPECT() *MockRepositoryMockRecorder[T]
- func (m *MockRepository[T]) Exists(arg0 context.Context, arg1 entity.Clause) (bool, error)
- func (m *MockRepository[T]) Find(arg0 context.Context, arg1 entity.Clause, arg2 repository.FindOptions) (*T, error)
- func (m *MockRepository[T]) FindMany(arg0 context.Context, arg1 entity.Clause, arg2 repository.FindManyOptions) ([]*T, error)
- func (m *MockRepository[T]) Update(arg0 context.Context, arg1 *T) error
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder[T]) Count(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder[T]) Create(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder[T]) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder[T]) Exists(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder[T]) Find(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder[T]) FindMany(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder[T]) Update(arg0, arg1 interface{}) *gomock.Call
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]) Create ¶
func (m *MockRepository[T]) Create(arg0 context.Context, arg1 *T) (*T, error)
Create 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]) 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.
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.