mocks

package
v2.0.0-...-6e51b18 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionInterface

type CollectionInterface struct {
	mock.Mock
}

CollectionInterface is an autogenerated mock type for the CollectionInterface type

func (*CollectionInterface) Aggregate

func (_m *CollectionInterface) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (database.CursorInterface, error)

Aggregate provides a mock function with given fields: ctx, pipeline, opts

func (*CollectionInterface) BulkWrite

BulkWrite provides a mock function with given fields: ctx, models, opts

func (*CollectionInterface) CountDocuments

func (_m *CollectionInterface) CountDocuments(ctx context.Context, filter interface{}, opts ...*options.CountOptions) (int64, error)

CountDocuments provides a mock function with given fields: ctx, filter, opts

func (*CollectionInterface) DeleteMany

func (_m *CollectionInterface) DeleteMany(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteMany provides a mock function with given fields: ctx, filter, opts

func (*CollectionInterface) DeleteOne

func (_m *CollectionInterface) DeleteOne(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions) (*mongo.DeleteResult, error)

DeleteOne provides a mock function with given fields: ctx, filter, opts

func (*CollectionInterface) Distinct

func (_m *CollectionInterface) Distinct(ctx context.Context, fieldName string, filter interface{}, opts ...*options.DistinctOptions) ([]interface{}, error)

Distinct provides a mock function with given fields: ctx, fieldName, filter, opts

func (*CollectionInterface) Find

func (_m *CollectionInterface) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) (database.CursorInterface, error)

Find provides a mock function with given fields: ctx, filter, opts

func (*CollectionInterface) FindOne

func (_m *CollectionInterface) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) database.SingleResultInterface

FindOne provides a mock function with given fields: ctx, filter, opts

func (*CollectionInterface) FindOneAndDelete

func (_m *CollectionInterface) FindOneAndDelete(ctx context.Context, filter interface{}, opts ...*options.FindOneAndDeleteOptions) database.SingleResultInterface

FindOneAndDelete provides a mock function with given fields: ctx, filter, opts

func (*CollectionInterface) FindOneAndReplace

func (_m *CollectionInterface) FindOneAndReplace(ctx context.Context, filter interface{}, replacement interface{}, opts ...*options.FindOneAndReplaceOptions) database.SingleResultInterface

FindOneAndReplace provides a mock function with given fields: ctx, filter, replacement, opts

func (*CollectionInterface) FindOneAndUpdate

func (_m *CollectionInterface) FindOneAndUpdate(ctx context.Context, filter interface{}, update interface{}, opts ...*options.FindOneAndUpdateOptions) database.SingleResultInterface

FindOneAndUpdate provides a mock function with given fields: ctx, filter, update, opts

func (*CollectionInterface) Indexes

func (_m *CollectionInterface) Indexes() mongo.IndexView

Indexes provides a mock function with given fields:

func (*CollectionInterface) InsertMany

func (_m *CollectionInterface) InsertMany(ctx context.Context, documents []interface{}, opts ...*options.InsertManyOptions) (*mongo.InsertManyResult, error)

InsertMany provides a mock function with given fields: ctx, documents, opts

func (*CollectionInterface) InsertOne

func (_m *CollectionInterface) InsertOne(ctx context.Context, document interface{}, opts ...*options.InsertOneOptions) (*mongo.InsertOneResult, error)

InsertOne provides a mock function with given fields: ctx, document, opts

func (*CollectionInterface) ReplaceOne

func (_m *CollectionInterface) ReplaceOne(ctx context.Context, filter interface{}, replacement interface{}, opts ...*options.ReplaceOptions) (*mongo.UpdateResult, error)

ReplaceOne provides a mock function with given fields: ctx, filter, replacement, opts

func (*CollectionInterface) UpdateMany

func (_m *CollectionInterface) UpdateMany(ctx context.Context, filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateMany provides a mock function with given fields: ctx, filter, update, opts

func (*CollectionInterface) UpdateOne

func (_m *CollectionInterface) UpdateOne(ctx context.Context, filter interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateOne provides a mock function with given fields: ctx, filter, update, opts

type CursorInterface

type CursorInterface struct {
	mock.Mock
}

CursorInterface is an autogenerated mock type for the CursorInterface type

func (*CursorInterface) All

func (_m *CursorInterface) All(ctx context.Context, results interface{}) error

All provides a mock function with given fields: ctx, results

func (*CursorInterface) Close

func (_m *CursorInterface) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*CursorInterface) Decode

func (_m *CursorInterface) Decode(val interface{}) error

Decode provides a mock function with given fields: val

func (*CursorInterface) Err

func (_m *CursorInterface) Err() error

Err provides a mock function with given fields:

func (*CursorInterface) ID

func (_m *CursorInterface) ID() int64

ID provides a mock function with given fields:

func (*CursorInterface) Next

func (_m *CursorInterface) Next(ctx context.Context) bool

Next provides a mock function with given fields: ctx

func (*CursorInterface) TryNext

func (_m *CursorInterface) TryNext(ctx context.Context) bool

TryNext provides a mock function with given fields: ctx

type SingleResultInterface

type SingleResultInterface struct {
	mock.Mock
}

SingleResultInterface is an autogenerated mock type for the SingleResultInterface type

func (*SingleResultInterface) Decode

func (_m *SingleResultInterface) Decode(v interface{}) error

Decode provides a mock function with given fields: v

func (*SingleResultInterface) DecodeBytes

func (_m *SingleResultInterface) DecodeBytes() (bson.Raw, error)

DecodeBytes provides a mock function with given fields:

func (*SingleResultInterface) Err

func (_m *SingleResultInterface) Err() error

Err provides a mock function with given fields:

type SourceInterface

type SourceInterface struct {
	mock.Mock
}

SourceInterface is an autogenerated mock type for the SourceInterface type

func (*SourceInterface) Close

func (_m *SourceInterface) Close() error

Close provides a mock function with given fields:

func (*SourceInterface) Collection

func (_m *SourceInterface) Collection(name string) database.CollectionInterface

Collection provides a mock function with given fields: name

func (*SourceInterface) Drop

func (_m *SourceInterface) Drop() error

Drop provides a mock function with given fields:

func (*SourceInterface) Ping

func (_m *SourceInterface) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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