Documentation ¶
Overview ¶
Package mockmongodb is a generated GoMock package.
Index ¶
- type MockMongoDBClient
- func (m *MockMongoDBClient[T]) BulkInsert(ctx context.Context, models []any) ([]primitive.ObjectID, error)
- func (m *MockMongoDBClient[T]) CreateIndex(ctx context.Context, indexParam mongodb.IndexParam) (string, error)
- func (m *MockMongoDBClient[T]) Delete(ctx context.Context, keyName, id string) error
- func (m *MockMongoDBClient[T]) Disconnect(arg0 context.Context) error
- func (m *MockMongoDBClient[T]) EXPECT() *MockMongoDBClientMockRecorder[T]
- func (m *MockMongoDBClient[T]) FindAll(ctx context.Context, filterOptions mongodb.FilterOptions) ([]T, error)
- func (m *MockMongoDBClient[T]) FindById(ctx context.Context, keyName, id string) (T, error)
- func (m *MockMongoDBClient[T]) Insert(ctx context.Context, model T) (primitive.ObjectID, error)
- func (m *MockMongoDBClient[T]) Update(ctx context.Context, model T, updateOptions mongodb.UpdateOptions) error
- type MockMongoDBClientMockRecorder
- func (mr *MockMongoDBClientMockRecorder[T]) BulkInsert(ctx, models any) *gomock.Call
- func (mr *MockMongoDBClientMockRecorder[T]) CreateIndex(ctx, indexParam any) *gomock.Call
- func (mr *MockMongoDBClientMockRecorder[T]) Delete(ctx, keyName, id any) *gomock.Call
- func (mr *MockMongoDBClientMockRecorder[T]) Disconnect(arg0 any) *gomock.Call
- func (mr *MockMongoDBClientMockRecorder[T]) FindAll(ctx, filterOptions any) *gomock.Call
- func (mr *MockMongoDBClientMockRecorder[T]) FindById(ctx, keyName, id any) *gomock.Call
- func (mr *MockMongoDBClientMockRecorder[T]) Insert(ctx, model any) *gomock.Call
- func (mr *MockMongoDBClientMockRecorder[T]) Update(ctx, model, updateOptions any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMongoDBClient ¶
type MockMongoDBClient[T any] struct { // contains filtered or unexported fields }
MockMongoDBClient is a mock of MongoDBClient interface.
func NewMockMongoDBClient ¶
func NewMockMongoDBClient[T any](ctrl *gomock.Controller) *MockMongoDBClient[T]
NewMockMongoDBClient creates a new mock instance.
func (*MockMongoDBClient[T]) BulkInsert ¶
func (m *MockMongoDBClient[T]) BulkInsert(ctx context.Context, models []any) ([]primitive.ObjectID, error)
BulkInsert mocks base method.
func (*MockMongoDBClient[T]) CreateIndex ¶
func (m *MockMongoDBClient[T]) CreateIndex(ctx context.Context, indexParam mongodb.IndexParam) (string, error)
CreateIndex mocks base method.
func (*MockMongoDBClient[T]) Delete ¶
func (m *MockMongoDBClient[T]) Delete(ctx context.Context, keyName, id string) error
Delete mocks base method.
func (*MockMongoDBClient[T]) Disconnect ¶
func (m *MockMongoDBClient[T]) Disconnect(arg0 context.Context) error
Disconnect mocks base method.
func (*MockMongoDBClient[T]) EXPECT ¶
func (m *MockMongoDBClient[T]) EXPECT() *MockMongoDBClientMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMongoDBClient[T]) FindAll ¶
func (m *MockMongoDBClient[T]) FindAll(ctx context.Context, filterOptions mongodb.FilterOptions) ([]T, error)
FindAll mocks base method.
func (*MockMongoDBClient[T]) FindById ¶
func (m *MockMongoDBClient[T]) FindById(ctx context.Context, keyName, id string) (T, error)
FindById mocks base method.
func (*MockMongoDBClient[T]) Update ¶
func (m *MockMongoDBClient[T]) Update(ctx context.Context, model T, updateOptions mongodb.UpdateOptions) error
Update mocks base method.
type MockMongoDBClientMockRecorder ¶
type MockMongoDBClientMockRecorder[T any] struct { // contains filtered or unexported fields }
MockMongoDBClientMockRecorder is the mock recorder for MockMongoDBClient.
func (*MockMongoDBClientMockRecorder[T]) BulkInsert ¶
func (mr *MockMongoDBClientMockRecorder[T]) BulkInsert(ctx, models any) *gomock.Call
BulkInsert indicates an expected call of BulkInsert.
func (*MockMongoDBClientMockRecorder[T]) CreateIndex ¶
func (mr *MockMongoDBClientMockRecorder[T]) CreateIndex(ctx, indexParam any) *gomock.Call
CreateIndex indicates an expected call of CreateIndex.
func (*MockMongoDBClientMockRecorder[T]) Delete ¶
func (mr *MockMongoDBClientMockRecorder[T]) Delete(ctx, keyName, id any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMongoDBClientMockRecorder[T]) Disconnect ¶
func (mr *MockMongoDBClientMockRecorder[T]) Disconnect(arg0 any) *gomock.Call
Disconnect indicates an expected call of Disconnect.
func (*MockMongoDBClientMockRecorder[T]) FindAll ¶
func (mr *MockMongoDBClientMockRecorder[T]) FindAll(ctx, filterOptions any) *gomock.Call
FindAll indicates an expected call of FindAll.
func (*MockMongoDBClientMockRecorder[T]) FindById ¶
func (mr *MockMongoDBClientMockRecorder[T]) FindById(ctx, keyName, id any) *gomock.Call
FindById indicates an expected call of FindById.