mocks

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMongoClient

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

MockMongoClient is a mock of MongoClient interface.

func NewMockMongoClient

func NewMockMongoClient(ctrl *gomock.Controller) *MockMongoClient

NewMockMongoClient creates a new mock instance.

func (*MockMongoClient) Aggregate

func (m *MockMongoClient) Aggregate(ctx context.Context, filters []interface{}, decoder interface{}) error

Aggregate mocks base method.

func (*MockMongoClient) DeleteOne

func (m *MockMongoClient) DeleteOne(ctx context.Context, filter interface{}) error

DeleteOne mocks base method.

func (*MockMongoClient) EXPECT

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

func (*MockMongoClient) Find

func (m *MockMongoClient) Find(ctx context.Context, queryBuilder query.QueryBuilder, decoder interface{}) error

Find mocks base method.

func (*MockMongoClient) FindOne

func (m *MockMongoClient) FindOne(ctx context.Context, queryBuilder query.QueryBuilder, decoder interface{}) error

FindOne mocks base method.

func (*MockMongoClient) InsertOne

func (m *MockMongoClient) InsertOne(ctx context.Context, filter interface{}) (string, error)

InsertOne mocks base method.

func (*MockMongoClient) ReplaceOne

func (m *MockMongoClient) ReplaceOne(ctx context.Context, queryBuilder query.QueryBuilder, payload interface{}) error

ReplaceOne mocks base method.

func (*MockMongoClient) SetCollection

func (m *MockMongoClient) SetCollection(arg0 string)

SetCollection mocks base method.

func (*MockMongoClient) UpdateOne

func (m *MockMongoClient) UpdateOne(ctx context.Context, filter, payload interface{}) error

UpdateOne mocks base method.

type MockMongoClientMockRecorder

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

MockMongoClientMockRecorder is the mock recorder for MockMongoClient.

func (*MockMongoClientMockRecorder) Aggregate

func (mr *MockMongoClientMockRecorder) Aggregate(ctx, filters, decoder interface{}) *gomock.Call

Aggregate indicates an expected call of Aggregate.

func (*MockMongoClientMockRecorder) DeleteOne

func (mr *MockMongoClientMockRecorder) DeleteOne(ctx, filter interface{}) *gomock.Call

DeleteOne indicates an expected call of DeleteOne.

func (*MockMongoClientMockRecorder) Find

func (mr *MockMongoClientMockRecorder) Find(ctx, queryBuilder, decoder interface{}) *gomock.Call

Find indicates an expected call of Find.

func (*MockMongoClientMockRecorder) FindOne

func (mr *MockMongoClientMockRecorder) FindOne(ctx, queryBuilder, decoder interface{}) *gomock.Call

FindOne indicates an expected call of FindOne.

func (*MockMongoClientMockRecorder) InsertOne

func (mr *MockMongoClientMockRecorder) InsertOne(ctx, filter interface{}) *gomock.Call

InsertOne indicates an expected call of InsertOne.

func (*MockMongoClientMockRecorder) ReplaceOne

func (mr *MockMongoClientMockRecorder) ReplaceOne(ctx, queryBuilder, payload interface{}) *gomock.Call

ReplaceOne indicates an expected call of ReplaceOne.

func (*MockMongoClientMockRecorder) SetCollection

func (mr *MockMongoClientMockRecorder) SetCollection(arg0 interface{}) *gomock.Call

SetCollection indicates an expected call of SetCollection.

func (*MockMongoClientMockRecorder) UpdateOne

func (mr *MockMongoClientMockRecorder) UpdateOne(ctx, filter, payload interface{}) *gomock.Call

UpdateOne indicates an expected call of UpdateOne.

type MockMongoConfig

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

MockMongoConfig is a mock of MongoConfig interface.

func NewMockMongoConfig

func NewMockMongoConfig(ctrl *gomock.Controller) *MockMongoConfig

NewMockMongoConfig creates a new mock instance.

func (*MockMongoConfig) EXPECT

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

func (*MockMongoConfig) GetConnUrl

func (m *MockMongoConfig) GetConnUrl() string

GetConnUrl mocks base method.

func (*MockMongoConfig) GetDBName

func (m *MockMongoConfig) GetDBName() string

GetDBName mocks base method.

type MockMongoConfigMockRecorder

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

MockMongoConfigMockRecorder is the mock recorder for MockMongoConfig.

func (*MockMongoConfigMockRecorder) GetConnUrl

func (mr *MockMongoConfigMockRecorder) GetConnUrl() *gomock.Call

GetConnUrl indicates an expected call of GetConnUrl.

func (*MockMongoConfigMockRecorder) GetDBName

func (mr *MockMongoConfigMockRecorder) GetDBName() *gomock.Call

GetDBName indicates an expected call of GetDBName.

Jump to

Keyboard shortcuts

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