mocks

package
v1.12.5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindOneExpectation

type FindOneExpectation struct {
	Query          map[string]string
	CollectionName string
}

type MongoClientMock

type MongoClientMock struct {
	FindOneError        error
	FindOneResult       interface{}
	FindManyError       error
	FindOneExpectation  func(collectionName string, query interface{})
	FindManyExpectation func(collectionName string, query interface{})
	FindManyResult      []interface{}
}

func (MongoClientMock) Disconnect

func (mongoClient MongoClientMock) Disconnect() error

func (MongoClientMock) FindMany

func (mongoClient MongoClientMock) FindMany(ctx context.Context, collectionName string, query map[string]interface{}) ([]interface{}, error)

func (MongoClientMock) FindOne

func (mongoClient MongoClientMock) FindOne(ctx context.Context, collectionName string, query map[string]interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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