mockmongodb

package
v0.0.0-...-34ec42c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mockmongodb is a generated GoMock package.

Index

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

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]) Insert

func (m *MockMongoDBClient[T]) Insert(ctx context.Context, model T) (primitive.ObjectID, error)

Insert 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.

func (*MockMongoDBClientMockRecorder[T]) Insert

func (mr *MockMongoDBClientMockRecorder[T]) Insert(ctx, model any) *gomock.Call

Insert indicates an expected call of Insert.

func (*MockMongoDBClientMockRecorder[T]) Update

func (mr *MockMongoDBClientMockRecorder[T]) Update(ctx, model, updateOptions any) *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