mocks

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeStream

type ChangeStream struct {
	mock.Mock
}

ChangeStream is an autogenerated mock type for the ChangeStream type

func NewChangeStream added in v1.9.1

func NewChangeStream(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChangeStream

NewChangeStream creates a new instance of ChangeStream. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ChangeStream) Close

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

Close provides a mock function with given fields: ctx

func (*ChangeStream) Current

func (_m *ChangeStream) Current() bson.Raw

Current provides a mock function with given fields:

func (*ChangeStream) Decode

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

Decode provides a mock function with given fields: val

func (*ChangeStream) EXPECT added in v1.13.0

func (_m *ChangeStream) EXPECT() *ChangeStream_Expecter

func (*ChangeStream) Err

func (_m *ChangeStream) Err() error

Err provides a mock function with given fields:

func (*ChangeStream) ID

func (_m *ChangeStream) ID() int64

ID provides a mock function with given fields:

func (*ChangeStream) Next

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

Next provides a mock function with given fields: ctx

func (*ChangeStream) ResumeToken

func (_m *ChangeStream) ResumeToken() bson.Raw

ResumeToken provides a mock function with given fields:

func (*ChangeStream) SetBatchSize added in v1.13.0

func (_m *ChangeStream) SetBatchSize(size int32)

SetBatchSize provides a mock function with given fields: size

func (*ChangeStream) TryNext

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

TryNext provides a mock function with given fields: ctx

type ChangeStream_Close_Call added in v1.13.0

type ChangeStream_Close_Call struct {
	*mock.Call
}

ChangeStream_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*ChangeStream_Close_Call) Return added in v1.13.0

func (*ChangeStream_Close_Call) Run added in v1.13.0

func (*ChangeStream_Close_Call) RunAndReturn added in v1.13.0

type ChangeStream_Current_Call added in v1.13.0

type ChangeStream_Current_Call struct {
	*mock.Call
}

ChangeStream_Current_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Current'

func (*ChangeStream_Current_Call) Return added in v1.13.0

func (*ChangeStream_Current_Call) Run added in v1.13.0

func (*ChangeStream_Current_Call) RunAndReturn added in v1.13.0

func (_c *ChangeStream_Current_Call) RunAndReturn(run func() bson.Raw) *ChangeStream_Current_Call

type ChangeStream_Decode_Call added in v1.13.0

type ChangeStream_Decode_Call struct {
	*mock.Call
}

ChangeStream_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'

func (*ChangeStream_Decode_Call) Return added in v1.13.0

func (*ChangeStream_Decode_Call) Run added in v1.13.0

func (_c *ChangeStream_Decode_Call) Run(run func(val interface{})) *ChangeStream_Decode_Call

func (*ChangeStream_Decode_Call) RunAndReturn added in v1.13.0

func (_c *ChangeStream_Decode_Call) RunAndReturn(run func(interface{}) error) *ChangeStream_Decode_Call

type ChangeStream_Err_Call added in v1.13.0

type ChangeStream_Err_Call struct {
	*mock.Call
}

ChangeStream_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'

func (*ChangeStream_Err_Call) Return added in v1.13.0

func (*ChangeStream_Err_Call) Run added in v1.13.0

func (_c *ChangeStream_Err_Call) Run(run func()) *ChangeStream_Err_Call

func (*ChangeStream_Err_Call) RunAndReturn added in v1.13.0

func (_c *ChangeStream_Err_Call) RunAndReturn(run func() error) *ChangeStream_Err_Call

type ChangeStream_Expecter added in v1.13.0

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

func (*ChangeStream_Expecter) Close added in v1.13.0

func (_e *ChangeStream_Expecter) Close(ctx interface{}) *ChangeStream_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*ChangeStream_Expecter) Current added in v1.13.0

Current is a helper method to define mock.On call

func (*ChangeStream_Expecter) Decode added in v1.13.0

func (_e *ChangeStream_Expecter) Decode(val interface{}) *ChangeStream_Decode_Call

Decode is a helper method to define mock.On call

  • val interface{}

func (*ChangeStream_Expecter) Err added in v1.13.0

Err is a helper method to define mock.On call

func (*ChangeStream_Expecter) ID added in v1.13.0

ID is a helper method to define mock.On call

func (*ChangeStream_Expecter) Next added in v1.13.0

func (_e *ChangeStream_Expecter) Next(ctx interface{}) *ChangeStream_Next_Call

Next is a helper method to define mock.On call

  • ctx context.Context

func (*ChangeStream_Expecter) ResumeToken added in v1.13.0

ResumeToken is a helper method to define mock.On call

func (*ChangeStream_Expecter) SetBatchSize added in v1.13.0

func (_e *ChangeStream_Expecter) SetBatchSize(size interface{}) *ChangeStream_SetBatchSize_Call

SetBatchSize is a helper method to define mock.On call

  • size int32

func (*ChangeStream_Expecter) TryNext added in v1.13.0

func (_e *ChangeStream_Expecter) TryNext(ctx interface{}) *ChangeStream_TryNext_Call

TryNext is a helper method to define mock.On call

  • ctx context.Context

type ChangeStream_ID_Call added in v1.13.0

type ChangeStream_ID_Call struct {
	*mock.Call
}

ChangeStream_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*ChangeStream_ID_Call) Return added in v1.13.0

func (*ChangeStream_ID_Call) Run added in v1.13.0

func (_c *ChangeStream_ID_Call) Run(run func()) *ChangeStream_ID_Call

func (*ChangeStream_ID_Call) RunAndReturn added in v1.13.0

func (_c *ChangeStream_ID_Call) RunAndReturn(run func() int64) *ChangeStream_ID_Call

type ChangeStream_Next_Call added in v1.13.0

type ChangeStream_Next_Call struct {
	*mock.Call
}

ChangeStream_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'

func (*ChangeStream_Next_Call) Return added in v1.13.0

func (*ChangeStream_Next_Call) Run added in v1.13.0

func (*ChangeStream_Next_Call) RunAndReturn added in v1.13.0

func (_c *ChangeStream_Next_Call) RunAndReturn(run func(context.Context) bool) *ChangeStream_Next_Call

type ChangeStream_ResumeToken_Call added in v1.13.0

type ChangeStream_ResumeToken_Call struct {
	*mock.Call
}

ChangeStream_ResumeToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResumeToken'

func (*ChangeStream_ResumeToken_Call) Return added in v1.13.0

func (*ChangeStream_ResumeToken_Call) Run added in v1.13.0

func (*ChangeStream_ResumeToken_Call) RunAndReturn added in v1.13.0

type ChangeStream_SetBatchSize_Call added in v1.13.0

type ChangeStream_SetBatchSize_Call struct {
	*mock.Call
}

ChangeStream_SetBatchSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBatchSize'

func (*ChangeStream_SetBatchSize_Call) Return added in v1.13.0

func (*ChangeStream_SetBatchSize_Call) Run added in v1.13.0

func (*ChangeStream_SetBatchSize_Call) RunAndReturn added in v1.13.0

type ChangeStream_TryNext_Call added in v1.13.0

type ChangeStream_TryNext_Call struct {
	*mock.Call
}

ChangeStream_TryNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TryNext'

func (*ChangeStream_TryNext_Call) Return added in v1.13.0

func (*ChangeStream_TryNext_Call) Run added in v1.13.0

func (*ChangeStream_TryNext_Call) RunAndReturn added in v1.13.0

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v1.9.1

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Client) Connect

func (_m *Client) Connect(ctx context.Context) error

Connect provides a mock function with given fields: ctx

func (*Client) Database

func (_m *Client) Database(name string, opts ...*options.DatabaseOptions) mongoifc.Database

Database provides a mock function with given fields: name, opts

func (*Client) Disconnect

func (_m *Client) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

func (*Client) EXPECT added in v1.13.0

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) ListDatabaseNames

func (_m *Client) ListDatabaseNames(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions) ([]string, error)

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

func (*Client) ListDatabases

func (_m *Client) ListDatabases(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions) (mongo.ListDatabasesResult, error)

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

func (*Client) NumberSessionsInProgress

func (_m *Client) NumberSessionsInProgress() int

NumberSessionsInProgress provides a mock function with given fields:

func (*Client) Ping

func (_m *Client) Ping(ctx context.Context, rp *readpref.ReadPref) error

Ping provides a mock function with given fields: ctx, rp

func (*Client) StartSession

func (_m *Client) StartSession(opts ...*options.SessionOptions) (mongoifc.Session, error)

StartSession provides a mock function with given fields: opts

func (*Client) Timeout added in v1.11.1

func (_m *Client) Timeout() *time.Duration

Timeout provides a mock function with given fields:

func (*Client) UseSession

func (_m *Client) UseSession(ctx context.Context, fn func(mongoifc.SessionContext) error) error

UseSession provides a mock function with given fields: ctx, fn

func (*Client) UseSessionWithOptions

func (_m *Client) UseSessionWithOptions(ctx context.Context, opts *options.SessionOptions, fn func(mongoifc.SessionContext) error) error

UseSessionWithOptions provides a mock function with given fields: ctx, opts, fn

func (*Client) Watch

func (_m *Client) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)

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

type ClientEncryption added in v1.13.0

type ClientEncryption struct {
	mock.Mock
}

ClientEncryption is an autogenerated mock type for the ClientEncryption type

func NewClientEncryption added in v1.13.0

func NewClientEncryption(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientEncryption

NewClientEncryption creates a new instance of ClientEncryption. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ClientEncryption) AddKeyAltName added in v1.13.0

func (_m *ClientEncryption) AddKeyAltName(ctx context.Context, id primitive.Binary, keyAltName string) mongoifc.SingleResult

AddKeyAltName provides a mock function with given fields: ctx, id, keyAltName

func (*ClientEncryption) Close added in v1.13.0

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

Close provides a mock function with given fields: ctx

func (*ClientEncryption) CreateDataKey added in v1.13.0

func (_m *ClientEncryption) CreateDataKey(ctx context.Context, kmsProvider string, opts ...*options.DataKeyOptions) (primitive.Binary, error)

CreateDataKey provides a mock function with given fields: ctx, kmsProvider, opts

func (*ClientEncryption) CreateEncryptedCollection added in v1.13.0

func (_m *ClientEncryption) CreateEncryptedCollection(ctx context.Context, db mongoifc.Database, coll string, createOpts *options.CreateCollectionOptions, kmsProvider string, masterKey interface{}) (mongoifc.Collection, primitive.M, error)

CreateEncryptedCollection provides a mock function with given fields: ctx, db, coll, createOpts, kmsProvider, masterKey

func (*ClientEncryption) Decrypt added in v1.13.0

Decrypt provides a mock function with given fields: ctx, val

func (*ClientEncryption) DeleteKey added in v1.13.0

DeleteKey provides a mock function with given fields: ctx, id

func (*ClientEncryption) EXPECT added in v1.13.0

func (*ClientEncryption) Encrypt added in v1.13.0

Encrypt provides a mock function with given fields: ctx, val, opts

func (*ClientEncryption) EncryptExpression added in v1.13.0

func (_m *ClientEncryption) EncryptExpression(ctx context.Context, expr interface{}, result interface{}, opts ...*options.EncryptOptions) error

EncryptExpression provides a mock function with given fields: ctx, expr, result, opts

func (*ClientEncryption) GetKey added in v1.13.0

GetKey provides a mock function with given fields: ctx, id

func (*ClientEncryption) GetKeyByAltName added in v1.13.0

func (_m *ClientEncryption) GetKeyByAltName(ctx context.Context, keyAltName string) mongoifc.SingleResult

GetKeyByAltName provides a mock function with given fields: ctx, keyAltName

func (*ClientEncryption) GetKeys added in v1.13.0

func (_m *ClientEncryption) GetKeys(ctx context.Context) (mongoifc.Cursor, error)

GetKeys provides a mock function with given fields: ctx

func (*ClientEncryption) RemoveKeyAltName added in v1.13.0

func (_m *ClientEncryption) RemoveKeyAltName(ctx context.Context, id primitive.Binary, keyAltName string) mongoifc.SingleResult

RemoveKeyAltName provides a mock function with given fields: ctx, id, keyAltName

func (*ClientEncryption) RewrapManyDataKey added in v1.13.0

func (_m *ClientEncryption) RewrapManyDataKey(ctx context.Context, filter interface{}, opts ...*options.RewrapManyDataKeyOptions) (*mongo.RewrapManyDataKeyResult, error)

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

type ClientEncryption_AddKeyAltName_Call added in v1.13.0

type ClientEncryption_AddKeyAltName_Call struct {
	*mock.Call
}

ClientEncryption_AddKeyAltName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddKeyAltName'

func (*ClientEncryption_AddKeyAltName_Call) Return added in v1.13.0

func (*ClientEncryption_AddKeyAltName_Call) Run added in v1.13.0

func (*ClientEncryption_AddKeyAltName_Call) RunAndReturn added in v1.13.0

type ClientEncryption_Close_Call added in v1.13.0

type ClientEncryption_Close_Call struct {
	*mock.Call
}

ClientEncryption_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*ClientEncryption_Close_Call) Return added in v1.13.0

func (*ClientEncryption_Close_Call) Run added in v1.13.0

func (*ClientEncryption_Close_Call) RunAndReturn added in v1.13.0

type ClientEncryption_CreateDataKey_Call added in v1.13.0

type ClientEncryption_CreateDataKey_Call struct {
	*mock.Call
}

ClientEncryption_CreateDataKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDataKey'

func (*ClientEncryption_CreateDataKey_Call) Return added in v1.13.0

func (*ClientEncryption_CreateDataKey_Call) Run added in v1.13.0

func (*ClientEncryption_CreateDataKey_Call) RunAndReturn added in v1.13.0

type ClientEncryption_CreateEncryptedCollection_Call added in v1.13.0

type ClientEncryption_CreateEncryptedCollection_Call struct {
	*mock.Call
}

ClientEncryption_CreateEncryptedCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateEncryptedCollection'

func (*ClientEncryption_CreateEncryptedCollection_Call) Return added in v1.13.0

func (*ClientEncryption_CreateEncryptedCollection_Call) Run added in v1.13.0

func (*ClientEncryption_CreateEncryptedCollection_Call) RunAndReturn added in v1.13.0

type ClientEncryption_Decrypt_Call added in v1.13.0

type ClientEncryption_Decrypt_Call struct {
	*mock.Call
}

ClientEncryption_Decrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decrypt'

func (*ClientEncryption_Decrypt_Call) Return added in v1.13.0

func (*ClientEncryption_Decrypt_Call) Run added in v1.13.0

func (*ClientEncryption_Decrypt_Call) RunAndReturn added in v1.13.0

type ClientEncryption_DeleteKey_Call added in v1.13.0

type ClientEncryption_DeleteKey_Call struct {
	*mock.Call
}

ClientEncryption_DeleteKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteKey'

func (*ClientEncryption_DeleteKey_Call) Return added in v1.13.0

func (*ClientEncryption_DeleteKey_Call) Run added in v1.13.0

func (*ClientEncryption_DeleteKey_Call) RunAndReturn added in v1.13.0

type ClientEncryption_EncryptExpression_Call added in v1.13.0

type ClientEncryption_EncryptExpression_Call struct {
	*mock.Call
}

ClientEncryption_EncryptExpression_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EncryptExpression'

func (*ClientEncryption_EncryptExpression_Call) Return added in v1.13.0

func (*ClientEncryption_EncryptExpression_Call) Run added in v1.13.0

func (_c *ClientEncryption_EncryptExpression_Call) Run(run func(ctx context.Context, expr interface{}, result interface{}, opts ...*options.EncryptOptions)) *ClientEncryption_EncryptExpression_Call

func (*ClientEncryption_EncryptExpression_Call) RunAndReturn added in v1.13.0

type ClientEncryption_Encrypt_Call added in v1.13.0

type ClientEncryption_Encrypt_Call struct {
	*mock.Call
}

ClientEncryption_Encrypt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Encrypt'

func (*ClientEncryption_Encrypt_Call) Return added in v1.13.0

func (*ClientEncryption_Encrypt_Call) Run added in v1.13.0

func (*ClientEncryption_Encrypt_Call) RunAndReturn added in v1.13.0

type ClientEncryption_Expecter added in v1.13.0

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

func (*ClientEncryption_Expecter) AddKeyAltName added in v1.13.0

func (_e *ClientEncryption_Expecter) AddKeyAltName(ctx interface{}, id interface{}, keyAltName interface{}) *ClientEncryption_AddKeyAltName_Call

AddKeyAltName is a helper method to define mock.On call

  • ctx context.Context
  • id primitive.Binary
  • keyAltName string

func (*ClientEncryption_Expecter) Close added in v1.13.0

func (_e *ClientEncryption_Expecter) Close(ctx interface{}) *ClientEncryption_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*ClientEncryption_Expecter) CreateDataKey added in v1.13.0

func (_e *ClientEncryption_Expecter) CreateDataKey(ctx interface{}, kmsProvider interface{}, opts ...interface{}) *ClientEncryption_CreateDataKey_Call

CreateDataKey is a helper method to define mock.On call

  • ctx context.Context
  • kmsProvider string
  • opts ...*options.DataKeyOptions

func (*ClientEncryption_Expecter) CreateEncryptedCollection added in v1.13.0

func (_e *ClientEncryption_Expecter) CreateEncryptedCollection(ctx interface{}, db interface{}, coll interface{}, createOpts interface{}, kmsProvider interface{}, masterKey interface{}) *ClientEncryption_CreateEncryptedCollection_Call

CreateEncryptedCollection is a helper method to define mock.On call

  • ctx context.Context
  • db mongoifc.Database
  • coll string
  • createOpts *options.CreateCollectionOptions
  • kmsProvider string
  • masterKey interface{}

func (*ClientEncryption_Expecter) Decrypt added in v1.13.0

func (_e *ClientEncryption_Expecter) Decrypt(ctx interface{}, val interface{}) *ClientEncryption_Decrypt_Call

Decrypt is a helper method to define mock.On call

  • ctx context.Context
  • val primitive.Binary

func (*ClientEncryption_Expecter) DeleteKey added in v1.13.0

func (_e *ClientEncryption_Expecter) DeleteKey(ctx interface{}, id interface{}) *ClientEncryption_DeleteKey_Call

DeleteKey is a helper method to define mock.On call

  • ctx context.Context
  • id primitive.Binary

func (*ClientEncryption_Expecter) Encrypt added in v1.13.0

func (_e *ClientEncryption_Expecter) Encrypt(ctx interface{}, val interface{}, opts ...interface{}) *ClientEncryption_Encrypt_Call

Encrypt is a helper method to define mock.On call

  • ctx context.Context
  • val bson.RawValue
  • opts ...*options.EncryptOptions

func (*ClientEncryption_Expecter) EncryptExpression added in v1.13.0

func (_e *ClientEncryption_Expecter) EncryptExpression(ctx interface{}, expr interface{}, result interface{}, opts ...interface{}) *ClientEncryption_EncryptExpression_Call

EncryptExpression is a helper method to define mock.On call

  • ctx context.Context
  • expr interface{}
  • result interface{}
  • opts ...*options.EncryptOptions

func (*ClientEncryption_Expecter) GetKey added in v1.13.0

func (_e *ClientEncryption_Expecter) GetKey(ctx interface{}, id interface{}) *ClientEncryption_GetKey_Call

GetKey is a helper method to define mock.On call

  • ctx context.Context
  • id primitive.Binary

func (*ClientEncryption_Expecter) GetKeyByAltName added in v1.13.0

func (_e *ClientEncryption_Expecter) GetKeyByAltName(ctx interface{}, keyAltName interface{}) *ClientEncryption_GetKeyByAltName_Call

GetKeyByAltName is a helper method to define mock.On call

  • ctx context.Context
  • keyAltName string

func (*ClientEncryption_Expecter) GetKeys added in v1.13.0

func (_e *ClientEncryption_Expecter) GetKeys(ctx interface{}) *ClientEncryption_GetKeys_Call

GetKeys is a helper method to define mock.On call

  • ctx context.Context

func (*ClientEncryption_Expecter) RemoveKeyAltName added in v1.13.0

func (_e *ClientEncryption_Expecter) RemoveKeyAltName(ctx interface{}, id interface{}, keyAltName interface{}) *ClientEncryption_RemoveKeyAltName_Call

RemoveKeyAltName is a helper method to define mock.On call

  • ctx context.Context
  • id primitive.Binary
  • keyAltName string

func (*ClientEncryption_Expecter) RewrapManyDataKey added in v1.13.0

func (_e *ClientEncryption_Expecter) RewrapManyDataKey(ctx interface{}, filter interface{}, opts ...interface{}) *ClientEncryption_RewrapManyDataKey_Call

RewrapManyDataKey is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.RewrapManyDataKeyOptions

type ClientEncryption_GetKeyByAltName_Call added in v1.13.0

type ClientEncryption_GetKeyByAltName_Call struct {
	*mock.Call
}

ClientEncryption_GetKeyByAltName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeyByAltName'

func (*ClientEncryption_GetKeyByAltName_Call) Return added in v1.13.0

func (*ClientEncryption_GetKeyByAltName_Call) Run added in v1.13.0

func (*ClientEncryption_GetKeyByAltName_Call) RunAndReturn added in v1.13.0

type ClientEncryption_GetKey_Call added in v1.13.0

type ClientEncryption_GetKey_Call struct {
	*mock.Call
}

ClientEncryption_GetKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKey'

func (*ClientEncryption_GetKey_Call) Return added in v1.13.0

func (*ClientEncryption_GetKey_Call) Run added in v1.13.0

func (*ClientEncryption_GetKey_Call) RunAndReturn added in v1.13.0

type ClientEncryption_GetKeys_Call added in v1.13.0

type ClientEncryption_GetKeys_Call struct {
	*mock.Call
}

ClientEncryption_GetKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeys'

func (*ClientEncryption_GetKeys_Call) Return added in v1.13.0

func (*ClientEncryption_GetKeys_Call) Run added in v1.13.0

func (*ClientEncryption_GetKeys_Call) RunAndReturn added in v1.13.0

type ClientEncryption_RemoveKeyAltName_Call added in v1.13.0

type ClientEncryption_RemoveKeyAltName_Call struct {
	*mock.Call
}

ClientEncryption_RemoveKeyAltName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveKeyAltName'

func (*ClientEncryption_RemoveKeyAltName_Call) Return added in v1.13.0

func (*ClientEncryption_RemoveKeyAltName_Call) Run added in v1.13.0

func (*ClientEncryption_RemoveKeyAltName_Call) RunAndReturn added in v1.13.0

type ClientEncryption_RewrapManyDataKey_Call added in v1.13.0

type ClientEncryption_RewrapManyDataKey_Call struct {
	*mock.Call
}

ClientEncryption_RewrapManyDataKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RewrapManyDataKey'

func (*ClientEncryption_RewrapManyDataKey_Call) Return added in v1.13.0

func (*ClientEncryption_RewrapManyDataKey_Call) Run added in v1.13.0

func (*ClientEncryption_RewrapManyDataKey_Call) RunAndReturn added in v1.13.0

type Client_Connect_Call added in v1.13.0

type Client_Connect_Call struct {
	*mock.Call
}

Client_Connect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connect'

func (*Client_Connect_Call) Return added in v1.13.0

func (*Client_Connect_Call) Run added in v1.13.0

func (_c *Client_Connect_Call) Run(run func(ctx context.Context)) *Client_Connect_Call

func (*Client_Connect_Call) RunAndReturn added in v1.13.0

func (_c *Client_Connect_Call) RunAndReturn(run func(context.Context) error) *Client_Connect_Call

type Client_Database_Call added in v1.13.0

type Client_Database_Call struct {
	*mock.Call
}

Client_Database_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Database'

func (*Client_Database_Call) Return added in v1.13.0

func (*Client_Database_Call) Run added in v1.13.0

func (_c *Client_Database_Call) Run(run func(name string, opts ...*options.DatabaseOptions)) *Client_Database_Call

func (*Client_Database_Call) RunAndReturn added in v1.13.0

type Client_Disconnect_Call added in v1.13.0

type Client_Disconnect_Call struct {
	*mock.Call
}

Client_Disconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disconnect'

func (*Client_Disconnect_Call) Return added in v1.13.0

func (*Client_Disconnect_Call) Run added in v1.13.0

func (*Client_Disconnect_Call) RunAndReturn added in v1.13.0

func (_c *Client_Disconnect_Call) RunAndReturn(run func(context.Context) error) *Client_Disconnect_Call

type Client_Expecter added in v1.13.0

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

func (*Client_Expecter) Connect added in v1.13.0

func (_e *Client_Expecter) Connect(ctx interface{}) *Client_Connect_Call

Connect is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) Database added in v1.13.0

func (_e *Client_Expecter) Database(name interface{}, opts ...interface{}) *Client_Database_Call

Database is a helper method to define mock.On call

  • name string
  • opts ...*options.DatabaseOptions

func (*Client_Expecter) Disconnect added in v1.13.0

func (_e *Client_Expecter) Disconnect(ctx interface{}) *Client_Disconnect_Call

Disconnect is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) ListDatabaseNames added in v1.13.0

func (_e *Client_Expecter) ListDatabaseNames(ctx interface{}, filter interface{}, opts ...interface{}) *Client_ListDatabaseNames_Call

ListDatabaseNames is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.ListDatabasesOptions

func (*Client_Expecter) ListDatabases added in v1.13.0

func (_e *Client_Expecter) ListDatabases(ctx interface{}, filter interface{}, opts ...interface{}) *Client_ListDatabases_Call

ListDatabases is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.ListDatabasesOptions

func (*Client_Expecter) NumberSessionsInProgress added in v1.13.0

func (_e *Client_Expecter) NumberSessionsInProgress() *Client_NumberSessionsInProgress_Call

NumberSessionsInProgress is a helper method to define mock.On call

func (*Client_Expecter) Ping added in v1.13.0

func (_e *Client_Expecter) Ping(ctx interface{}, rp interface{}) *Client_Ping_Call

Ping is a helper method to define mock.On call

  • ctx context.Context
  • rp *readpref.ReadPref

func (*Client_Expecter) StartSession added in v1.13.0

func (_e *Client_Expecter) StartSession(opts ...interface{}) *Client_StartSession_Call

StartSession is a helper method to define mock.On call

  • opts ...*options.SessionOptions

func (*Client_Expecter) Timeout added in v1.13.0

func (_e *Client_Expecter) Timeout() *Client_Timeout_Call

Timeout is a helper method to define mock.On call

func (*Client_Expecter) UseSession added in v1.13.0

func (_e *Client_Expecter) UseSession(ctx interface{}, fn interface{}) *Client_UseSession_Call

UseSession is a helper method to define mock.On call

  • ctx context.Context
  • fn func(mongoifc.SessionContext) error

func (*Client_Expecter) UseSessionWithOptions added in v1.13.0

func (_e *Client_Expecter) UseSessionWithOptions(ctx interface{}, opts interface{}, fn interface{}) *Client_UseSessionWithOptions_Call

UseSessionWithOptions is a helper method to define mock.On call

  • ctx context.Context
  • opts *options.SessionOptions
  • fn func(mongoifc.SessionContext) error

func (*Client_Expecter) Watch added in v1.13.0

func (_e *Client_Expecter) Watch(ctx interface{}, pipeline interface{}, opts ...interface{}) *Client_Watch_Call

Watch is a helper method to define mock.On call

  • ctx context.Context
  • pipeline interface{}
  • opts ...*options.ChangeStreamOptions

type Client_ListDatabaseNames_Call added in v1.13.0

type Client_ListDatabaseNames_Call struct {
	*mock.Call
}

Client_ListDatabaseNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDatabaseNames'

func (*Client_ListDatabaseNames_Call) Return added in v1.13.0

func (*Client_ListDatabaseNames_Call) Run added in v1.13.0

func (_c *Client_ListDatabaseNames_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions)) *Client_ListDatabaseNames_Call

func (*Client_ListDatabaseNames_Call) RunAndReturn added in v1.13.0

type Client_ListDatabases_Call added in v1.13.0

type Client_ListDatabases_Call struct {
	*mock.Call
}

Client_ListDatabases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListDatabases'

func (*Client_ListDatabases_Call) Return added in v1.13.0

func (*Client_ListDatabases_Call) Run added in v1.13.0

func (_c *Client_ListDatabases_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.ListDatabasesOptions)) *Client_ListDatabases_Call

func (*Client_ListDatabases_Call) RunAndReturn added in v1.13.0

type Client_NumberSessionsInProgress_Call added in v1.13.0

type Client_NumberSessionsInProgress_Call struct {
	*mock.Call
}

Client_NumberSessionsInProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NumberSessionsInProgress'

func (*Client_NumberSessionsInProgress_Call) Return added in v1.13.0

func (*Client_NumberSessionsInProgress_Call) Run added in v1.13.0

func (*Client_NumberSessionsInProgress_Call) RunAndReturn added in v1.13.0

type Client_Ping_Call added in v1.13.0

type Client_Ping_Call struct {
	*mock.Call
}

Client_Ping_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ping'

func (*Client_Ping_Call) Return added in v1.13.0

func (_c *Client_Ping_Call) Return(_a0 error) *Client_Ping_Call

func (*Client_Ping_Call) Run added in v1.13.0

func (_c *Client_Ping_Call) Run(run func(ctx context.Context, rp *readpref.ReadPref)) *Client_Ping_Call

func (*Client_Ping_Call) RunAndReturn added in v1.13.0

func (_c *Client_Ping_Call) RunAndReturn(run func(context.Context, *readpref.ReadPref) error) *Client_Ping_Call

type Client_StartSession_Call added in v1.13.0

type Client_StartSession_Call struct {
	*mock.Call
}

Client_StartSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartSession'

func (*Client_StartSession_Call) Return added in v1.13.0

func (*Client_StartSession_Call) Run added in v1.13.0

func (*Client_StartSession_Call) RunAndReturn added in v1.13.0

type Client_Timeout_Call added in v1.13.0

type Client_Timeout_Call struct {
	*mock.Call
}

Client_Timeout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Timeout'

func (*Client_Timeout_Call) Return added in v1.13.0

func (*Client_Timeout_Call) Run added in v1.13.0

func (_c *Client_Timeout_Call) Run(run func()) *Client_Timeout_Call

func (*Client_Timeout_Call) RunAndReturn added in v1.13.0

func (_c *Client_Timeout_Call) RunAndReturn(run func() *time.Duration) *Client_Timeout_Call

type Client_UseSessionWithOptions_Call added in v1.13.0

type Client_UseSessionWithOptions_Call struct {
	*mock.Call
}

Client_UseSessionWithOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UseSessionWithOptions'

func (*Client_UseSessionWithOptions_Call) Return added in v1.13.0

func (*Client_UseSessionWithOptions_Call) Run added in v1.13.0

func (*Client_UseSessionWithOptions_Call) RunAndReturn added in v1.13.0

type Client_UseSession_Call added in v1.13.0

type Client_UseSession_Call struct {
	*mock.Call
}

Client_UseSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UseSession'

func (*Client_UseSession_Call) Return added in v1.13.0

func (*Client_UseSession_Call) Run added in v1.13.0

func (*Client_UseSession_Call) RunAndReturn added in v1.13.0

type Client_Watch_Call added in v1.13.0

type Client_Watch_Call struct {
	*mock.Call
}

Client_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'

func (*Client_Watch_Call) Return added in v1.13.0

func (*Client_Watch_Call) Run added in v1.13.0

func (_c *Client_Watch_Call) Run(run func(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions)) *Client_Watch_Call

func (*Client_Watch_Call) RunAndReturn added in v1.13.0

func (_c *Client_Watch_Call) RunAndReturn(run func(context.Context, interface{}, ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)) *Client_Watch_Call

type Collection

type Collection struct {
	mock.Mock
}

Collection is an autogenerated mock type for the Collection type

func NewCollection added in v1.9.1

func NewCollection(t interface {
	mock.TestingT
	Cleanup(func())
}) *Collection

NewCollection creates a new instance of Collection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Collection) Aggregate

func (_m *Collection) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)

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

func (*Collection) BulkWrite

func (_m *Collection) BulkWrite(ctx context.Context, models []mongo.WriteModel, opts ...*options.BulkWriteOptions) (*mongo.BulkWriteResult, error)

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

func (*Collection) Clone

Clone provides a mock function with given fields: opts

func (*Collection) CountDocuments

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

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

func (*Collection) Database

func (_m *Collection) Database() mongoifc.Database

Database provides a mock function with given fields:

func (*Collection) DeleteMany

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

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

func (*Collection) DeleteOne

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

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

func (*Collection) Distinct

func (_m *Collection) 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 (*Collection) Drop

func (_m *Collection) Drop(ctx context.Context) error

Drop provides a mock function with given fields: ctx

func (*Collection) EXPECT added in v1.13.0

func (_m *Collection) EXPECT() *Collection_Expecter

func (*Collection) EstimatedDocumentCount

func (_m *Collection) EstimatedDocumentCount(ctx context.Context, opts ...*options.EstimatedDocumentCountOptions) (int64, error)

EstimatedDocumentCount provides a mock function with given fields: ctx, opts

func (*Collection) Find

func (_m *Collection) Find(ctx context.Context, filter interface{}, opts ...*options.FindOptions) (mongoifc.Cursor, error)

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

func (*Collection) FindOne

func (_m *Collection) FindOne(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions) mongoifc.SingleResult

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

func (*Collection) FindOneAndDelete

func (_m *Collection) FindOneAndDelete(ctx context.Context, filter interface{}, opts ...*options.FindOneAndDeleteOptions) mongoifc.SingleResult

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

func (*Collection) FindOneAndReplace

func (_m *Collection) FindOneAndReplace(ctx context.Context, filter interface{}, replacement interface{}, opts ...*options.FindOneAndReplaceOptions) mongoifc.SingleResult

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

func (*Collection) FindOneAndUpdate

func (_m *Collection) FindOneAndUpdate(ctx context.Context, filter interface{}, update interface{}, opts ...*options.FindOneAndUpdateOptions) mongoifc.SingleResult

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

func (*Collection) Indexes

func (_m *Collection) Indexes() mongoifc.IndexView

Indexes provides a mock function with given fields:

func (*Collection) InsertMany

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

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

func (*Collection) InsertOne

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

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

func (*Collection) Name

func (_m *Collection) Name() string

Name provides a mock function with given fields:

func (*Collection) ReplaceOne

func (_m *Collection) 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 (*Collection) SearchIndexes added in v1.13.0

func (_m *Collection) SearchIndexes() mongoifc.SearchIndexView

SearchIndexes provides a mock function with given fields:

func (*Collection) UpdateByID

func (_m *Collection) UpdateByID(ctx context.Context, id interface{}, update interface{}, opts ...*options.UpdateOptions) (*mongo.UpdateResult, error)

UpdateByID provides a mock function with given fields: ctx, id, update, opts

func (*Collection) UpdateMany

func (_m *Collection) 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 (*Collection) UpdateOne

func (_m *Collection) 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

func (*Collection) Watch

func (_m *Collection) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)

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

type Collection_Aggregate_Call added in v1.13.0

type Collection_Aggregate_Call struct {
	*mock.Call
}

Collection_Aggregate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Aggregate'

func (*Collection_Aggregate_Call) Return added in v1.13.0

func (*Collection_Aggregate_Call) Run added in v1.13.0

func (_c *Collection_Aggregate_Call) Run(run func(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions)) *Collection_Aggregate_Call

func (*Collection_Aggregate_Call) RunAndReturn added in v1.13.0

type Collection_BulkWrite_Call added in v1.13.0

type Collection_BulkWrite_Call struct {
	*mock.Call
}

Collection_BulkWrite_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkWrite'

func (*Collection_BulkWrite_Call) Return added in v1.13.0

func (*Collection_BulkWrite_Call) Run added in v1.13.0

func (*Collection_BulkWrite_Call) RunAndReturn added in v1.13.0

type Collection_Clone_Call added in v1.13.0

type Collection_Clone_Call struct {
	*mock.Call
}

Collection_Clone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clone'

func (*Collection_Clone_Call) Return added in v1.13.0

func (*Collection_Clone_Call) Run added in v1.13.0

func (*Collection_Clone_Call) RunAndReturn added in v1.13.0

type Collection_CountDocuments_Call added in v1.13.0

type Collection_CountDocuments_Call struct {
	*mock.Call
}

Collection_CountDocuments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountDocuments'

func (*Collection_CountDocuments_Call) Return added in v1.13.0

func (*Collection_CountDocuments_Call) Run added in v1.13.0

func (_c *Collection_CountDocuments_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.CountOptions)) *Collection_CountDocuments_Call

func (*Collection_CountDocuments_Call) RunAndReturn added in v1.13.0

type Collection_Database_Call added in v1.13.0

type Collection_Database_Call struct {
	*mock.Call
}

Collection_Database_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Database'

func (*Collection_Database_Call) Return added in v1.13.0

func (*Collection_Database_Call) Run added in v1.13.0

func (*Collection_Database_Call) RunAndReturn added in v1.13.0

type Collection_DeleteMany_Call added in v1.13.0

type Collection_DeleteMany_Call struct {
	*mock.Call
}

Collection_DeleteMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteMany'

func (*Collection_DeleteMany_Call) Return added in v1.13.0

func (*Collection_DeleteMany_Call) Run added in v1.13.0

func (_c *Collection_DeleteMany_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions)) *Collection_DeleteMany_Call

func (*Collection_DeleteMany_Call) RunAndReturn added in v1.13.0

type Collection_DeleteOne_Call added in v1.13.0

type Collection_DeleteOne_Call struct {
	*mock.Call
}

Collection_DeleteOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOne'

func (*Collection_DeleteOne_Call) Return added in v1.13.0

func (*Collection_DeleteOne_Call) Run added in v1.13.0

func (_c *Collection_DeleteOne_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.DeleteOptions)) *Collection_DeleteOne_Call

func (*Collection_DeleteOne_Call) RunAndReturn added in v1.13.0

type Collection_Distinct_Call added in v1.13.0

type Collection_Distinct_Call struct {
	*mock.Call
}

Collection_Distinct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Distinct'

func (*Collection_Distinct_Call) Return added in v1.13.0

func (_c *Collection_Distinct_Call) Return(_a0 []interface{}, _a1 error) *Collection_Distinct_Call

func (*Collection_Distinct_Call) Run added in v1.13.0

func (_c *Collection_Distinct_Call) Run(run func(ctx context.Context, fieldName string, filter interface{}, opts ...*options.DistinctOptions)) *Collection_Distinct_Call

func (*Collection_Distinct_Call) RunAndReturn added in v1.13.0

func (_c *Collection_Distinct_Call) RunAndReturn(run func(context.Context, string, interface{}, ...*options.DistinctOptions) ([]interface{}, error)) *Collection_Distinct_Call

type Collection_Drop_Call added in v1.13.0

type Collection_Drop_Call struct {
	*mock.Call
}

Collection_Drop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Drop'

func (*Collection_Drop_Call) Return added in v1.13.0

func (*Collection_Drop_Call) Run added in v1.13.0

func (_c *Collection_Drop_Call) Run(run func(ctx context.Context)) *Collection_Drop_Call

func (*Collection_Drop_Call) RunAndReturn added in v1.13.0

func (_c *Collection_Drop_Call) RunAndReturn(run func(context.Context) error) *Collection_Drop_Call

type Collection_EstimatedDocumentCount_Call added in v1.13.0

type Collection_EstimatedDocumentCount_Call struct {
	*mock.Call
}

Collection_EstimatedDocumentCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimatedDocumentCount'

func (*Collection_EstimatedDocumentCount_Call) Return added in v1.13.0

func (*Collection_EstimatedDocumentCount_Call) Run added in v1.13.0

func (*Collection_EstimatedDocumentCount_Call) RunAndReturn added in v1.13.0

type Collection_Expecter added in v1.13.0

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

func (*Collection_Expecter) Aggregate added in v1.13.0

func (_e *Collection_Expecter) Aggregate(ctx interface{}, pipeline interface{}, opts ...interface{}) *Collection_Aggregate_Call

Aggregate is a helper method to define mock.On call

  • ctx context.Context
  • pipeline interface{}
  • opts ...*options.AggregateOptions

func (*Collection_Expecter) BulkWrite added in v1.13.0

func (_e *Collection_Expecter) BulkWrite(ctx interface{}, models interface{}, opts ...interface{}) *Collection_BulkWrite_Call

BulkWrite is a helper method to define mock.On call

  • ctx context.Context
  • models []mongo.WriteModel
  • opts ...*options.BulkWriteOptions

func (*Collection_Expecter) Clone added in v1.13.0

func (_e *Collection_Expecter) Clone(opts ...interface{}) *Collection_Clone_Call

Clone is a helper method to define mock.On call

  • opts ...*options.CollectionOptions

func (*Collection_Expecter) CountDocuments added in v1.13.0

func (_e *Collection_Expecter) CountDocuments(ctx interface{}, filter interface{}, opts ...interface{}) *Collection_CountDocuments_Call

CountDocuments is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.CountOptions

func (*Collection_Expecter) Database added in v1.13.0

Database is a helper method to define mock.On call

func (*Collection_Expecter) DeleteMany added in v1.13.0

func (_e *Collection_Expecter) DeleteMany(ctx interface{}, filter interface{}, opts ...interface{}) *Collection_DeleteMany_Call

DeleteMany is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.DeleteOptions

func (*Collection_Expecter) DeleteOne added in v1.13.0

func (_e *Collection_Expecter) DeleteOne(ctx interface{}, filter interface{}, opts ...interface{}) *Collection_DeleteOne_Call

DeleteOne is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.DeleteOptions

func (*Collection_Expecter) Distinct added in v1.13.0

func (_e *Collection_Expecter) Distinct(ctx interface{}, fieldName interface{}, filter interface{}, opts ...interface{}) *Collection_Distinct_Call

Distinct is a helper method to define mock.On call

  • ctx context.Context
  • fieldName string
  • filter interface{}
  • opts ...*options.DistinctOptions

func (*Collection_Expecter) Drop added in v1.13.0

func (_e *Collection_Expecter) Drop(ctx interface{}) *Collection_Drop_Call

Drop is a helper method to define mock.On call

  • ctx context.Context

func (*Collection_Expecter) EstimatedDocumentCount added in v1.13.0

func (_e *Collection_Expecter) EstimatedDocumentCount(ctx interface{}, opts ...interface{}) *Collection_EstimatedDocumentCount_Call

EstimatedDocumentCount is a helper method to define mock.On call

  • ctx context.Context
  • opts ...*options.EstimatedDocumentCountOptions

func (*Collection_Expecter) Find added in v1.13.0

func (_e *Collection_Expecter) Find(ctx interface{}, filter interface{}, opts ...interface{}) *Collection_Find_Call

Find is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.FindOptions

func (*Collection_Expecter) FindOne added in v1.13.0

func (_e *Collection_Expecter) FindOne(ctx interface{}, filter interface{}, opts ...interface{}) *Collection_FindOne_Call

FindOne is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.FindOneOptions

func (*Collection_Expecter) FindOneAndDelete added in v1.13.0

func (_e *Collection_Expecter) FindOneAndDelete(ctx interface{}, filter interface{}, opts ...interface{}) *Collection_FindOneAndDelete_Call

FindOneAndDelete is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.FindOneAndDeleteOptions

func (*Collection_Expecter) FindOneAndReplace added in v1.13.0

func (_e *Collection_Expecter) FindOneAndReplace(ctx interface{}, filter interface{}, replacement interface{}, opts ...interface{}) *Collection_FindOneAndReplace_Call

FindOneAndReplace is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • replacement interface{}
  • opts ...*options.FindOneAndReplaceOptions

func (*Collection_Expecter) FindOneAndUpdate added in v1.13.0

func (_e *Collection_Expecter) FindOneAndUpdate(ctx interface{}, filter interface{}, update interface{}, opts ...interface{}) *Collection_FindOneAndUpdate_Call

FindOneAndUpdate is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • update interface{}
  • opts ...*options.FindOneAndUpdateOptions

func (*Collection_Expecter) Indexes added in v1.13.0

Indexes is a helper method to define mock.On call

func (*Collection_Expecter) InsertMany added in v1.13.0

func (_e *Collection_Expecter) InsertMany(ctx interface{}, documents interface{}, opts ...interface{}) *Collection_InsertMany_Call

InsertMany is a helper method to define mock.On call

  • ctx context.Context
  • documents []interface{}
  • opts ...*options.InsertManyOptions

func (*Collection_Expecter) InsertOne added in v1.13.0

func (_e *Collection_Expecter) InsertOne(ctx interface{}, document interface{}, opts ...interface{}) *Collection_InsertOne_Call

InsertOne is a helper method to define mock.On call

  • ctx context.Context
  • document interface{}
  • opts ...*options.InsertOneOptions

func (*Collection_Expecter) Name added in v1.13.0

Name is a helper method to define mock.On call

func (*Collection_Expecter) ReplaceOne added in v1.13.0

func (_e *Collection_Expecter) ReplaceOne(ctx interface{}, filter interface{}, replacement interface{}, opts ...interface{}) *Collection_ReplaceOne_Call

ReplaceOne is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • replacement interface{}
  • opts ...*options.ReplaceOptions

func (*Collection_Expecter) SearchIndexes added in v1.13.0

SearchIndexes is a helper method to define mock.On call

func (*Collection_Expecter) UpdateByID added in v1.13.0

func (_e *Collection_Expecter) UpdateByID(ctx interface{}, id interface{}, update interface{}, opts ...interface{}) *Collection_UpdateByID_Call

UpdateByID is a helper method to define mock.On call

  • ctx context.Context
  • id interface{}
  • update interface{}
  • opts ...*options.UpdateOptions

func (*Collection_Expecter) UpdateMany added in v1.13.0

func (_e *Collection_Expecter) UpdateMany(ctx interface{}, filter interface{}, update interface{}, opts ...interface{}) *Collection_UpdateMany_Call

UpdateMany is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • update interface{}
  • opts ...*options.UpdateOptions

func (*Collection_Expecter) UpdateOne added in v1.13.0

func (_e *Collection_Expecter) UpdateOne(ctx interface{}, filter interface{}, update interface{}, opts ...interface{}) *Collection_UpdateOne_Call

UpdateOne is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • update interface{}
  • opts ...*options.UpdateOptions

func (*Collection_Expecter) Watch added in v1.13.0

func (_e *Collection_Expecter) Watch(ctx interface{}, pipeline interface{}, opts ...interface{}) *Collection_Watch_Call

Watch is a helper method to define mock.On call

  • ctx context.Context
  • pipeline interface{}
  • opts ...*options.ChangeStreamOptions

type Collection_FindOneAndDelete_Call added in v1.13.0

type Collection_FindOneAndDelete_Call struct {
	*mock.Call
}

Collection_FindOneAndDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOneAndDelete'

func (*Collection_FindOneAndDelete_Call) Return added in v1.13.0

func (*Collection_FindOneAndDelete_Call) Run added in v1.13.0

func (*Collection_FindOneAndDelete_Call) RunAndReturn added in v1.13.0

type Collection_FindOneAndReplace_Call added in v1.13.0

type Collection_FindOneAndReplace_Call struct {
	*mock.Call
}

Collection_FindOneAndReplace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOneAndReplace'

func (*Collection_FindOneAndReplace_Call) Return added in v1.13.0

func (*Collection_FindOneAndReplace_Call) Run added in v1.13.0

func (_c *Collection_FindOneAndReplace_Call) Run(run func(ctx context.Context, filter interface{}, replacement interface{}, opts ...*options.FindOneAndReplaceOptions)) *Collection_FindOneAndReplace_Call

func (*Collection_FindOneAndReplace_Call) RunAndReturn added in v1.13.0

type Collection_FindOneAndUpdate_Call added in v1.13.0

type Collection_FindOneAndUpdate_Call struct {
	*mock.Call
}

Collection_FindOneAndUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOneAndUpdate'

func (*Collection_FindOneAndUpdate_Call) Return added in v1.13.0

func (*Collection_FindOneAndUpdate_Call) Run added in v1.13.0

func (_c *Collection_FindOneAndUpdate_Call) Run(run func(ctx context.Context, filter interface{}, update interface{}, opts ...*options.FindOneAndUpdateOptions)) *Collection_FindOneAndUpdate_Call

func (*Collection_FindOneAndUpdate_Call) RunAndReturn added in v1.13.0

type Collection_FindOne_Call added in v1.13.0

type Collection_FindOne_Call struct {
	*mock.Call
}

Collection_FindOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOne'

func (*Collection_FindOne_Call) Return added in v1.13.0

func (*Collection_FindOne_Call) Run added in v1.13.0

func (_c *Collection_FindOne_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.FindOneOptions)) *Collection_FindOne_Call

func (*Collection_FindOne_Call) RunAndReturn added in v1.13.0

type Collection_Find_Call added in v1.13.0

type Collection_Find_Call struct {
	*mock.Call
}

Collection_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*Collection_Find_Call) Return added in v1.13.0

func (*Collection_Find_Call) Run added in v1.13.0

func (_c *Collection_Find_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.FindOptions)) *Collection_Find_Call

func (*Collection_Find_Call) RunAndReturn added in v1.13.0

func (_c *Collection_Find_Call) RunAndReturn(run func(context.Context, interface{}, ...*options.FindOptions) (mongoifc.Cursor, error)) *Collection_Find_Call

type Collection_Indexes_Call added in v1.13.0

type Collection_Indexes_Call struct {
	*mock.Call
}

Collection_Indexes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Indexes'

func (*Collection_Indexes_Call) Return added in v1.13.0

func (*Collection_Indexes_Call) Run added in v1.13.0

func (_c *Collection_Indexes_Call) Run(run func()) *Collection_Indexes_Call

func (*Collection_Indexes_Call) RunAndReturn added in v1.13.0

func (_c *Collection_Indexes_Call) RunAndReturn(run func() mongoifc.IndexView) *Collection_Indexes_Call

type Collection_InsertMany_Call added in v1.13.0

type Collection_InsertMany_Call struct {
	*mock.Call
}

Collection_InsertMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertMany'

func (*Collection_InsertMany_Call) Return added in v1.13.0

func (*Collection_InsertMany_Call) Run added in v1.13.0

func (_c *Collection_InsertMany_Call) Run(run func(ctx context.Context, documents []interface{}, opts ...*options.InsertManyOptions)) *Collection_InsertMany_Call

func (*Collection_InsertMany_Call) RunAndReturn added in v1.13.0

type Collection_InsertOne_Call added in v1.13.0

type Collection_InsertOne_Call struct {
	*mock.Call
}

Collection_InsertOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertOne'

func (*Collection_InsertOne_Call) Return added in v1.13.0

func (*Collection_InsertOne_Call) Run added in v1.13.0

func (_c *Collection_InsertOne_Call) Run(run func(ctx context.Context, document interface{}, opts ...*options.InsertOneOptions)) *Collection_InsertOne_Call

func (*Collection_InsertOne_Call) RunAndReturn added in v1.13.0

type Collection_Name_Call added in v1.13.0

type Collection_Name_Call struct {
	*mock.Call
}

Collection_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Collection_Name_Call) Return added in v1.13.0

func (*Collection_Name_Call) Run added in v1.13.0

func (_c *Collection_Name_Call) Run(run func()) *Collection_Name_Call

func (*Collection_Name_Call) RunAndReturn added in v1.13.0

func (_c *Collection_Name_Call) RunAndReturn(run func() string) *Collection_Name_Call

type Collection_ReplaceOne_Call added in v1.13.0

type Collection_ReplaceOne_Call struct {
	*mock.Call
}

Collection_ReplaceOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplaceOne'

func (*Collection_ReplaceOne_Call) Return added in v1.13.0

func (*Collection_ReplaceOne_Call) Run added in v1.13.0

func (_c *Collection_ReplaceOne_Call) Run(run func(ctx context.Context, filter interface{}, replacement interface{}, opts ...*options.ReplaceOptions)) *Collection_ReplaceOne_Call

func (*Collection_ReplaceOne_Call) RunAndReturn added in v1.13.0

func (_c *Collection_ReplaceOne_Call) RunAndReturn(run func(context.Context, interface{}, interface{}, ...*options.ReplaceOptions) (*mongo.UpdateResult, error)) *Collection_ReplaceOne_Call

type Collection_SearchIndexes_Call added in v1.13.0

type Collection_SearchIndexes_Call struct {
	*mock.Call
}

Collection_SearchIndexes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SearchIndexes'

func (*Collection_SearchIndexes_Call) Return added in v1.13.0

func (*Collection_SearchIndexes_Call) Run added in v1.13.0

func (*Collection_SearchIndexes_Call) RunAndReturn added in v1.13.0

type Collection_UpdateByID_Call added in v1.13.0

type Collection_UpdateByID_Call struct {
	*mock.Call
}

Collection_UpdateByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByID'

func (*Collection_UpdateByID_Call) Return added in v1.13.0

func (*Collection_UpdateByID_Call) Run added in v1.13.0

func (_c *Collection_UpdateByID_Call) Run(run func(ctx context.Context, id interface{}, update interface{}, opts ...*options.UpdateOptions)) *Collection_UpdateByID_Call

func (*Collection_UpdateByID_Call) RunAndReturn added in v1.13.0

func (_c *Collection_UpdateByID_Call) RunAndReturn(run func(context.Context, interface{}, interface{}, ...*options.UpdateOptions) (*mongo.UpdateResult, error)) *Collection_UpdateByID_Call

type Collection_UpdateMany_Call added in v1.13.0

type Collection_UpdateMany_Call struct {
	*mock.Call
}

Collection_UpdateMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMany'

func (*Collection_UpdateMany_Call) Return added in v1.13.0

func (*Collection_UpdateMany_Call) Run added in v1.13.0

func (_c *Collection_UpdateMany_Call) Run(run func(ctx context.Context, filter interface{}, update interface{}, opts ...*options.UpdateOptions)) *Collection_UpdateMany_Call

func (*Collection_UpdateMany_Call) RunAndReturn added in v1.13.0

func (_c *Collection_UpdateMany_Call) RunAndReturn(run func(context.Context, interface{}, interface{}, ...*options.UpdateOptions) (*mongo.UpdateResult, error)) *Collection_UpdateMany_Call

type Collection_UpdateOne_Call added in v1.13.0

type Collection_UpdateOne_Call struct {
	*mock.Call
}

Collection_UpdateOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOne'

func (*Collection_UpdateOne_Call) Return added in v1.13.0

func (*Collection_UpdateOne_Call) Run added in v1.13.0

func (_c *Collection_UpdateOne_Call) Run(run func(ctx context.Context, filter interface{}, update interface{}, opts ...*options.UpdateOptions)) *Collection_UpdateOne_Call

func (*Collection_UpdateOne_Call) RunAndReturn added in v1.13.0

func (_c *Collection_UpdateOne_Call) RunAndReturn(run func(context.Context, interface{}, interface{}, ...*options.UpdateOptions) (*mongo.UpdateResult, error)) *Collection_UpdateOne_Call

type Collection_Watch_Call added in v1.13.0

type Collection_Watch_Call struct {
	*mock.Call
}

Collection_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'

func (*Collection_Watch_Call) Return added in v1.13.0

func (*Collection_Watch_Call) Run added in v1.13.0

func (_c *Collection_Watch_Call) Run(run func(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions)) *Collection_Watch_Call

func (*Collection_Watch_Call) RunAndReturn added in v1.13.0

type Cursor

type Cursor struct {
	mock.Mock
}

Cursor is an autogenerated mock type for the Cursor type

func NewCursor added in v1.9.1

func NewCursor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cursor

NewCursor creates a new instance of Cursor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Cursor) All

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

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

func (*Cursor) Close

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

Close provides a mock function with given fields: ctx

func (*Cursor) Current

func (_m *Cursor) Current() bson.Raw

Current provides a mock function with given fields:

func (*Cursor) Decode

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

Decode provides a mock function with given fields: val

func (*Cursor) EXPECT added in v1.13.0

func (_m *Cursor) EXPECT() *Cursor_Expecter

func (*Cursor) Err

func (_m *Cursor) Err() error

Err provides a mock function with given fields:

func (*Cursor) ID

func (_m *Cursor) ID() int64

ID provides a mock function with given fields:

func (*Cursor) Next

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

Next provides a mock function with given fields: ctx

func (*Cursor) RemainingBatchLength

func (_m *Cursor) RemainingBatchLength() int

RemainingBatchLength provides a mock function with given fields:

func (*Cursor) SetBatchSize added in v1.13.0

func (_m *Cursor) SetBatchSize(batchSize int32)

SetBatchSize provides a mock function with given fields: batchSize

func (*Cursor) SetComment added in v1.13.0

func (_m *Cursor) SetComment(comment interface{})

SetComment provides a mock function with given fields: comment

func (*Cursor) SetMaxTime added in v1.13.0

func (_m *Cursor) SetMaxTime(dur time.Duration)

SetMaxTime provides a mock function with given fields: dur

func (*Cursor) TryNext

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

TryNext provides a mock function with given fields: ctx

type Cursor_All_Call added in v1.13.0

type Cursor_All_Call struct {
	*mock.Call
}

Cursor_All_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'All'

func (*Cursor_All_Call) Return added in v1.13.0

func (_c *Cursor_All_Call) Return(_a0 error) *Cursor_All_Call

func (*Cursor_All_Call) Run added in v1.13.0

func (_c *Cursor_All_Call) Run(run func(ctx context.Context, results interface{})) *Cursor_All_Call

func (*Cursor_All_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_All_Call) RunAndReturn(run func(context.Context, interface{}) error) *Cursor_All_Call

type Cursor_Close_Call added in v1.13.0

type Cursor_Close_Call struct {
	*mock.Call
}

Cursor_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*Cursor_Close_Call) Return added in v1.13.0

func (_c *Cursor_Close_Call) Return(_a0 error) *Cursor_Close_Call

func (*Cursor_Close_Call) Run added in v1.13.0

func (_c *Cursor_Close_Call) Run(run func(ctx context.Context)) *Cursor_Close_Call

func (*Cursor_Close_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_Close_Call) RunAndReturn(run func(context.Context) error) *Cursor_Close_Call

type Cursor_Current_Call added in v1.13.0

type Cursor_Current_Call struct {
	*mock.Call
}

Cursor_Current_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Current'

func (*Cursor_Current_Call) Return added in v1.13.0

func (*Cursor_Current_Call) Run added in v1.13.0

func (_c *Cursor_Current_Call) Run(run func()) *Cursor_Current_Call

func (*Cursor_Current_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_Current_Call) RunAndReturn(run func() bson.Raw) *Cursor_Current_Call

type Cursor_Decode_Call added in v1.13.0

type Cursor_Decode_Call struct {
	*mock.Call
}

Cursor_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'

func (*Cursor_Decode_Call) Return added in v1.13.0

func (_c *Cursor_Decode_Call) Return(_a0 error) *Cursor_Decode_Call

func (*Cursor_Decode_Call) Run added in v1.13.0

func (_c *Cursor_Decode_Call) Run(run func(val interface{})) *Cursor_Decode_Call

func (*Cursor_Decode_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_Decode_Call) RunAndReturn(run func(interface{}) error) *Cursor_Decode_Call

type Cursor_Err_Call added in v1.13.0

type Cursor_Err_Call struct {
	*mock.Call
}

Cursor_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'

func (*Cursor_Err_Call) Return added in v1.13.0

func (_c *Cursor_Err_Call) Return(_a0 error) *Cursor_Err_Call

func (*Cursor_Err_Call) Run added in v1.13.0

func (_c *Cursor_Err_Call) Run(run func()) *Cursor_Err_Call

func (*Cursor_Err_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_Err_Call) RunAndReturn(run func() error) *Cursor_Err_Call

type Cursor_Expecter added in v1.13.0

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

func (*Cursor_Expecter) All added in v1.13.0

func (_e *Cursor_Expecter) All(ctx interface{}, results interface{}) *Cursor_All_Call

All is a helper method to define mock.On call

  • ctx context.Context
  • results interface{}

func (*Cursor_Expecter) Close added in v1.13.0

func (_e *Cursor_Expecter) Close(ctx interface{}) *Cursor_Close_Call

Close is a helper method to define mock.On call

  • ctx context.Context

func (*Cursor_Expecter) Current added in v1.13.0

func (_e *Cursor_Expecter) Current() *Cursor_Current_Call

Current is a helper method to define mock.On call

func (*Cursor_Expecter) Decode added in v1.13.0

func (_e *Cursor_Expecter) Decode(val interface{}) *Cursor_Decode_Call

Decode is a helper method to define mock.On call

  • val interface{}

func (*Cursor_Expecter) Err added in v1.13.0

func (_e *Cursor_Expecter) Err() *Cursor_Err_Call

Err is a helper method to define mock.On call

func (*Cursor_Expecter) ID added in v1.13.0

func (_e *Cursor_Expecter) ID() *Cursor_ID_Call

ID is a helper method to define mock.On call

func (*Cursor_Expecter) Next added in v1.13.0

func (_e *Cursor_Expecter) Next(ctx interface{}) *Cursor_Next_Call

Next is a helper method to define mock.On call

  • ctx context.Context

func (*Cursor_Expecter) RemainingBatchLength added in v1.13.0

func (_e *Cursor_Expecter) RemainingBatchLength() *Cursor_RemainingBatchLength_Call

RemainingBatchLength is a helper method to define mock.On call

func (*Cursor_Expecter) SetBatchSize added in v1.13.0

func (_e *Cursor_Expecter) SetBatchSize(batchSize interface{}) *Cursor_SetBatchSize_Call

SetBatchSize is a helper method to define mock.On call

  • batchSize int32

func (*Cursor_Expecter) SetComment added in v1.13.0

func (_e *Cursor_Expecter) SetComment(comment interface{}) *Cursor_SetComment_Call

SetComment is a helper method to define mock.On call

  • comment interface{}

func (*Cursor_Expecter) SetMaxTime added in v1.13.0

func (_e *Cursor_Expecter) SetMaxTime(dur interface{}) *Cursor_SetMaxTime_Call

SetMaxTime is a helper method to define mock.On call

  • dur time.Duration

func (*Cursor_Expecter) TryNext added in v1.13.0

func (_e *Cursor_Expecter) TryNext(ctx interface{}) *Cursor_TryNext_Call

TryNext is a helper method to define mock.On call

  • ctx context.Context

type Cursor_ID_Call added in v1.13.0

type Cursor_ID_Call struct {
	*mock.Call
}

Cursor_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*Cursor_ID_Call) Return added in v1.13.0

func (_c *Cursor_ID_Call) Return(_a0 int64) *Cursor_ID_Call

func (*Cursor_ID_Call) Run added in v1.13.0

func (_c *Cursor_ID_Call) Run(run func()) *Cursor_ID_Call

func (*Cursor_ID_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_ID_Call) RunAndReturn(run func() int64) *Cursor_ID_Call

type Cursor_Next_Call added in v1.13.0

type Cursor_Next_Call struct {
	*mock.Call
}

Cursor_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'

func (*Cursor_Next_Call) Return added in v1.13.0

func (_c *Cursor_Next_Call) Return(_a0 bool) *Cursor_Next_Call

func (*Cursor_Next_Call) Run added in v1.13.0

func (_c *Cursor_Next_Call) Run(run func(ctx context.Context)) *Cursor_Next_Call

func (*Cursor_Next_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_Next_Call) RunAndReturn(run func(context.Context) bool) *Cursor_Next_Call

type Cursor_RemainingBatchLength_Call added in v1.13.0

type Cursor_RemainingBatchLength_Call struct {
	*mock.Call
}

Cursor_RemainingBatchLength_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemainingBatchLength'

func (*Cursor_RemainingBatchLength_Call) Return added in v1.13.0

func (*Cursor_RemainingBatchLength_Call) Run added in v1.13.0

func (*Cursor_RemainingBatchLength_Call) RunAndReturn added in v1.13.0

type Cursor_SetBatchSize_Call added in v1.13.0

type Cursor_SetBatchSize_Call struct {
	*mock.Call
}

Cursor_SetBatchSize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBatchSize'

func (*Cursor_SetBatchSize_Call) Return added in v1.13.0

func (*Cursor_SetBatchSize_Call) Run added in v1.13.0

func (_c *Cursor_SetBatchSize_Call) Run(run func(batchSize int32)) *Cursor_SetBatchSize_Call

func (*Cursor_SetBatchSize_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_SetBatchSize_Call) RunAndReturn(run func(int32)) *Cursor_SetBatchSize_Call

type Cursor_SetComment_Call added in v1.13.0

type Cursor_SetComment_Call struct {
	*mock.Call
}

Cursor_SetComment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetComment'

func (*Cursor_SetComment_Call) Return added in v1.13.0

func (*Cursor_SetComment_Call) Run added in v1.13.0

func (_c *Cursor_SetComment_Call) Run(run func(comment interface{})) *Cursor_SetComment_Call

func (*Cursor_SetComment_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_SetComment_Call) RunAndReturn(run func(interface{})) *Cursor_SetComment_Call

type Cursor_SetMaxTime_Call added in v1.13.0

type Cursor_SetMaxTime_Call struct {
	*mock.Call
}

Cursor_SetMaxTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetMaxTime'

func (*Cursor_SetMaxTime_Call) Return added in v1.13.0

func (*Cursor_SetMaxTime_Call) Run added in v1.13.0

func (*Cursor_SetMaxTime_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_SetMaxTime_Call) RunAndReturn(run func(time.Duration)) *Cursor_SetMaxTime_Call

type Cursor_TryNext_Call added in v1.13.0

type Cursor_TryNext_Call struct {
	*mock.Call
}

Cursor_TryNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TryNext'

func (*Cursor_TryNext_Call) Return added in v1.13.0

func (_c *Cursor_TryNext_Call) Return(_a0 bool) *Cursor_TryNext_Call

func (*Cursor_TryNext_Call) Run added in v1.13.0

func (_c *Cursor_TryNext_Call) Run(run func(ctx context.Context)) *Cursor_TryNext_Call

func (*Cursor_TryNext_Call) RunAndReturn added in v1.13.0

func (_c *Cursor_TryNext_Call) RunAndReturn(run func(context.Context) bool) *Cursor_TryNext_Call

type Database

type Database struct {
	mock.Mock
}

Database is an autogenerated mock type for the Database type

func NewDatabase added in v1.9.1

func NewDatabase(t interface {
	mock.TestingT
	Cleanup(func())
}) *Database

NewDatabase creates a new instance of Database. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Database) Aggregate

func (_m *Database) Aggregate(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions) (mongoifc.Cursor, error)

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

func (*Database) Client

func (_m *Database) Client() mongoifc.Client

Client provides a mock function with given fields:

func (*Database) Collection

func (_m *Database) Collection(name string, opts ...*options.CollectionOptions) mongoifc.Collection

Collection provides a mock function with given fields: name, opts

func (*Database) CreateCollection

func (_m *Database) CreateCollection(ctx context.Context, name string, opts ...*options.CreateCollectionOptions) error

CreateCollection provides a mock function with given fields: ctx, name, opts

func (*Database) CreateView

func (_m *Database) CreateView(ctx context.Context, viewName string, viewOn string, pipeline interface{}, opts ...*options.CreateViewOptions) error

CreateView provides a mock function with given fields: ctx, viewName, viewOn, pipeline, opts

func (*Database) Drop

func (_m *Database) Drop(ctx context.Context) error

Drop provides a mock function with given fields: ctx

func (*Database) EXPECT added in v1.13.0

func (_m *Database) EXPECT() *Database_Expecter

func (*Database) ListCollectionNames

func (_m *Database) ListCollectionNames(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) ([]string, error)

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

func (*Database) ListCollectionSpecifications

func (_m *Database) ListCollectionSpecifications(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) ([]*mongo.CollectionSpecification, error)

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

func (*Database) ListCollections

func (_m *Database) ListCollections(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions) (mongoifc.Cursor, error)

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

func (*Database) Name

func (_m *Database) Name() string

Name provides a mock function with given fields:

func (*Database) ReadConcern

func (_m *Database) ReadConcern() *readconcern.ReadConcern

ReadConcern provides a mock function with given fields:

func (*Database) ReadPreference

func (_m *Database) ReadPreference() *readpref.ReadPref

ReadPreference provides a mock function with given fields:

func (*Database) RunCommand

func (_m *Database) RunCommand(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions) mongoifc.SingleResult

RunCommand provides a mock function with given fields: ctx, runCommand, opts

func (*Database) RunCommandCursor

func (_m *Database) RunCommandCursor(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions) (mongoifc.Cursor, error)

RunCommandCursor provides a mock function with given fields: ctx, runCommand, opts

func (*Database) Watch

func (_m *Database) Watch(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions) (mongoifc.ChangeStream, error)

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

func (*Database) WriteConcern

func (_m *Database) WriteConcern() *writeconcern.WriteConcern

WriteConcern provides a mock function with given fields:

type Database_Aggregate_Call added in v1.13.0

type Database_Aggregate_Call struct {
	*mock.Call
}

Database_Aggregate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Aggregate'

func (*Database_Aggregate_Call) Return added in v1.13.0

func (*Database_Aggregate_Call) Run added in v1.13.0

func (_c *Database_Aggregate_Call) Run(run func(ctx context.Context, pipeline interface{}, opts ...*options.AggregateOptions)) *Database_Aggregate_Call

func (*Database_Aggregate_Call) RunAndReturn added in v1.13.0

type Database_Client_Call added in v1.13.0

type Database_Client_Call struct {
	*mock.Call
}

Database_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'

func (*Database_Client_Call) Return added in v1.13.0

func (*Database_Client_Call) Run added in v1.13.0

func (_c *Database_Client_Call) Run(run func()) *Database_Client_Call

func (*Database_Client_Call) RunAndReturn added in v1.13.0

func (_c *Database_Client_Call) RunAndReturn(run func() mongoifc.Client) *Database_Client_Call

type Database_Collection_Call added in v1.13.0

type Database_Collection_Call struct {
	*mock.Call
}

Database_Collection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collection'

func (*Database_Collection_Call) Return added in v1.13.0

func (*Database_Collection_Call) Run added in v1.13.0

func (*Database_Collection_Call) RunAndReturn added in v1.13.0

type Database_CreateCollection_Call added in v1.13.0

type Database_CreateCollection_Call struct {
	*mock.Call
}

Database_CreateCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateCollection'

func (*Database_CreateCollection_Call) Return added in v1.13.0

func (*Database_CreateCollection_Call) Run added in v1.13.0

func (*Database_CreateCollection_Call) RunAndReturn added in v1.13.0

type Database_CreateView_Call added in v1.13.0

type Database_CreateView_Call struct {
	*mock.Call
}

Database_CreateView_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateView'

func (*Database_CreateView_Call) Return added in v1.13.0

func (*Database_CreateView_Call) Run added in v1.13.0

func (_c *Database_CreateView_Call) Run(run func(ctx context.Context, viewName string, viewOn string, pipeline interface{}, opts ...*options.CreateViewOptions)) *Database_CreateView_Call

func (*Database_CreateView_Call) RunAndReturn added in v1.13.0

type Database_Drop_Call added in v1.13.0

type Database_Drop_Call struct {
	*mock.Call
}

Database_Drop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Drop'

func (*Database_Drop_Call) Return added in v1.13.0

func (_c *Database_Drop_Call) Return(_a0 error) *Database_Drop_Call

func (*Database_Drop_Call) Run added in v1.13.0

func (_c *Database_Drop_Call) Run(run func(ctx context.Context)) *Database_Drop_Call

func (*Database_Drop_Call) RunAndReturn added in v1.13.0

func (_c *Database_Drop_Call) RunAndReturn(run func(context.Context) error) *Database_Drop_Call

type Database_Expecter added in v1.13.0

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

func (*Database_Expecter) Aggregate added in v1.13.0

func (_e *Database_Expecter) Aggregate(ctx interface{}, pipeline interface{}, opts ...interface{}) *Database_Aggregate_Call

Aggregate is a helper method to define mock.On call

  • ctx context.Context
  • pipeline interface{}
  • opts ...*options.AggregateOptions

func (*Database_Expecter) Client added in v1.13.0

Client is a helper method to define mock.On call

func (*Database_Expecter) Collection added in v1.13.0

func (_e *Database_Expecter) Collection(name interface{}, opts ...interface{}) *Database_Collection_Call

Collection is a helper method to define mock.On call

  • name string
  • opts ...*options.CollectionOptions

func (*Database_Expecter) CreateCollection added in v1.13.0

func (_e *Database_Expecter) CreateCollection(ctx interface{}, name interface{}, opts ...interface{}) *Database_CreateCollection_Call

CreateCollection is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts ...*options.CreateCollectionOptions

func (*Database_Expecter) CreateView added in v1.13.0

func (_e *Database_Expecter) CreateView(ctx interface{}, viewName interface{}, viewOn interface{}, pipeline interface{}, opts ...interface{}) *Database_CreateView_Call

CreateView is a helper method to define mock.On call

  • ctx context.Context
  • viewName string
  • viewOn string
  • pipeline interface{}
  • opts ...*options.CreateViewOptions

func (*Database_Expecter) Drop added in v1.13.0

func (_e *Database_Expecter) Drop(ctx interface{}) *Database_Drop_Call

Drop is a helper method to define mock.On call

  • ctx context.Context

func (*Database_Expecter) ListCollectionNames added in v1.13.0

func (_e *Database_Expecter) ListCollectionNames(ctx interface{}, filter interface{}, opts ...interface{}) *Database_ListCollectionNames_Call

ListCollectionNames is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.ListCollectionsOptions

func (*Database_Expecter) ListCollectionSpecifications added in v1.13.0

func (_e *Database_Expecter) ListCollectionSpecifications(ctx interface{}, filter interface{}, opts ...interface{}) *Database_ListCollectionSpecifications_Call

ListCollectionSpecifications is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.ListCollectionsOptions

func (*Database_Expecter) ListCollections added in v1.13.0

func (_e *Database_Expecter) ListCollections(ctx interface{}, filter interface{}, opts ...interface{}) *Database_ListCollections_Call

ListCollections is a helper method to define mock.On call

  • ctx context.Context
  • filter interface{}
  • opts ...*options.ListCollectionsOptions

func (*Database_Expecter) Name added in v1.13.0

Name is a helper method to define mock.On call

func (*Database_Expecter) ReadConcern added in v1.13.0

func (_e *Database_Expecter) ReadConcern() *Database_ReadConcern_Call

ReadConcern is a helper method to define mock.On call

func (*Database_Expecter) ReadPreference added in v1.13.0

func (_e *Database_Expecter) ReadPreference() *Database_ReadPreference_Call

ReadPreference is a helper method to define mock.On call

func (*Database_Expecter) RunCommand added in v1.13.0

func (_e *Database_Expecter) RunCommand(ctx interface{}, runCommand interface{}, opts ...interface{}) *Database_RunCommand_Call

RunCommand is a helper method to define mock.On call

  • ctx context.Context
  • runCommand interface{}
  • opts ...*options.RunCmdOptions

func (*Database_Expecter) RunCommandCursor added in v1.13.0

func (_e *Database_Expecter) RunCommandCursor(ctx interface{}, runCommand interface{}, opts ...interface{}) *Database_RunCommandCursor_Call

RunCommandCursor is a helper method to define mock.On call

  • ctx context.Context
  • runCommand interface{}
  • opts ...*options.RunCmdOptions

func (*Database_Expecter) Watch added in v1.13.0

func (_e *Database_Expecter) Watch(ctx interface{}, pipeline interface{}, opts ...interface{}) *Database_Watch_Call

Watch is a helper method to define mock.On call

  • ctx context.Context
  • pipeline interface{}
  • opts ...*options.ChangeStreamOptions

func (*Database_Expecter) WriteConcern added in v1.13.0

func (_e *Database_Expecter) WriteConcern() *Database_WriteConcern_Call

WriteConcern is a helper method to define mock.On call

type Database_ListCollectionNames_Call added in v1.13.0

type Database_ListCollectionNames_Call struct {
	*mock.Call
}

Database_ListCollectionNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCollectionNames'

func (*Database_ListCollectionNames_Call) Return added in v1.13.0

func (*Database_ListCollectionNames_Call) Run added in v1.13.0

func (*Database_ListCollectionNames_Call) RunAndReturn added in v1.13.0

type Database_ListCollectionSpecifications_Call added in v1.13.0

type Database_ListCollectionSpecifications_Call struct {
	*mock.Call
}

Database_ListCollectionSpecifications_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCollectionSpecifications'

func (*Database_ListCollectionSpecifications_Call) Return added in v1.13.0

func (*Database_ListCollectionSpecifications_Call) Run added in v1.13.0

func (*Database_ListCollectionSpecifications_Call) RunAndReturn added in v1.13.0

type Database_ListCollections_Call added in v1.13.0

type Database_ListCollections_Call struct {
	*mock.Call
}

Database_ListCollections_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListCollections'

func (*Database_ListCollections_Call) Return added in v1.13.0

func (*Database_ListCollections_Call) Run added in v1.13.0

func (_c *Database_ListCollections_Call) Run(run func(ctx context.Context, filter interface{}, opts ...*options.ListCollectionsOptions)) *Database_ListCollections_Call

func (*Database_ListCollections_Call) RunAndReturn added in v1.13.0

type Database_Name_Call added in v1.13.0

type Database_Name_Call struct {
	*mock.Call
}

Database_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Database_Name_Call) Return added in v1.13.0

func (_c *Database_Name_Call) Return(_a0 string) *Database_Name_Call

func (*Database_Name_Call) Run added in v1.13.0

func (_c *Database_Name_Call) Run(run func()) *Database_Name_Call

func (*Database_Name_Call) RunAndReturn added in v1.13.0

func (_c *Database_Name_Call) RunAndReturn(run func() string) *Database_Name_Call

type Database_ReadConcern_Call added in v1.13.0

type Database_ReadConcern_Call struct {
	*mock.Call
}

Database_ReadConcern_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadConcern'

func (*Database_ReadConcern_Call) Return added in v1.13.0

func (*Database_ReadConcern_Call) Run added in v1.13.0

func (*Database_ReadConcern_Call) RunAndReturn added in v1.13.0

type Database_ReadPreference_Call added in v1.13.0

type Database_ReadPreference_Call struct {
	*mock.Call
}

Database_ReadPreference_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadPreference'

func (*Database_ReadPreference_Call) Return added in v1.13.0

func (*Database_ReadPreference_Call) Run added in v1.13.0

func (*Database_ReadPreference_Call) RunAndReturn added in v1.13.0

type Database_RunCommandCursor_Call added in v1.13.0

type Database_RunCommandCursor_Call struct {
	*mock.Call
}

Database_RunCommandCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunCommandCursor'

func (*Database_RunCommandCursor_Call) Return added in v1.13.0

func (*Database_RunCommandCursor_Call) Run added in v1.13.0

func (_c *Database_RunCommandCursor_Call) Run(run func(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions)) *Database_RunCommandCursor_Call

func (*Database_RunCommandCursor_Call) RunAndReturn added in v1.13.0

type Database_RunCommand_Call added in v1.13.0

type Database_RunCommand_Call struct {
	*mock.Call
}

Database_RunCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunCommand'

func (*Database_RunCommand_Call) Return added in v1.13.0

func (*Database_RunCommand_Call) Run added in v1.13.0

func (_c *Database_RunCommand_Call) Run(run func(ctx context.Context, runCommand interface{}, opts ...*options.RunCmdOptions)) *Database_RunCommand_Call

func (*Database_RunCommand_Call) RunAndReturn added in v1.13.0

type Database_Watch_Call added in v1.13.0

type Database_Watch_Call struct {
	*mock.Call
}

Database_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch'

func (*Database_Watch_Call) Return added in v1.13.0

func (*Database_Watch_Call) Run added in v1.13.0

func (_c *Database_Watch_Call) Run(run func(ctx context.Context, pipeline interface{}, opts ...*options.ChangeStreamOptions)) *Database_Watch_Call

func (*Database_Watch_Call) RunAndReturn added in v1.13.0

type Database_WriteConcern_Call added in v1.13.0

type Database_WriteConcern_Call struct {
	*mock.Call
}

Database_WriteConcern_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteConcern'

func (*Database_WriteConcern_Call) Return added in v1.13.0

func (*Database_WriteConcern_Call) Run added in v1.13.0

func (*Database_WriteConcern_Call) RunAndReturn added in v1.13.0

type IndexView

type IndexView struct {
	mock.Mock
}

IndexView is an autogenerated mock type for the IndexView type

func NewIndexView added in v1.9.1

func NewIndexView(t interface {
	mock.TestingT
	Cleanup(func())
}) *IndexView

NewIndexView creates a new instance of IndexView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*IndexView) CreateMany

func (_m *IndexView) CreateMany(ctx context.Context, models []mongo.IndexModel, opts ...*options.CreateIndexesOptions) ([]string, error)

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

func (*IndexView) CreateOne

func (_m *IndexView) CreateOne(ctx context.Context, model mongo.IndexModel, opts ...*options.CreateIndexesOptions) (string, error)

CreateOne provides a mock function with given fields: ctx, model, opts

func (*IndexView) DropAll

func (_m *IndexView) DropAll(ctx context.Context, opts ...*options.DropIndexesOptions) (bson.Raw, error)

DropAll provides a mock function with given fields: ctx, opts

func (*IndexView) DropOne

func (_m *IndexView) DropOne(ctx context.Context, name string, opts ...*options.DropIndexesOptions) (bson.Raw, error)

DropOne provides a mock function with given fields: ctx, name, opts

func (*IndexView) DropOneWithKey added in v1.17.0

func (_m *IndexView) DropOneWithKey(ctx context.Context, keySpecDocument interface{}, opts ...*options.DropIndexesOptions) (bson.Raw, error)

DropOneWithKey provides a mock function with given fields: ctx, keySpecDocument, opts

func (*IndexView) EXPECT added in v1.13.0

func (_m *IndexView) EXPECT() *IndexView_Expecter

func (*IndexView) List

List provides a mock function with given fields: ctx, opts

func (*IndexView) ListSpecifications

func (_m *IndexView) ListSpecifications(ctx context.Context, opts ...*options.ListIndexesOptions) ([]*mongo.IndexSpecification, error)

ListSpecifications provides a mock function with given fields: ctx, opts

type IndexView_CreateMany_Call added in v1.13.0

type IndexView_CreateMany_Call struct {
	*mock.Call
}

IndexView_CreateMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMany'

func (*IndexView_CreateMany_Call) Return added in v1.13.0

func (*IndexView_CreateMany_Call) Run added in v1.13.0

func (*IndexView_CreateMany_Call) RunAndReturn added in v1.13.0

type IndexView_CreateOne_Call added in v1.13.0

type IndexView_CreateOne_Call struct {
	*mock.Call
}

IndexView_CreateOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOne'

func (*IndexView_CreateOne_Call) Return added in v1.13.0

func (*IndexView_CreateOne_Call) Run added in v1.13.0

func (*IndexView_CreateOne_Call) RunAndReturn added in v1.13.0

type IndexView_DropAll_Call added in v1.13.0

type IndexView_DropAll_Call struct {
	*mock.Call
}

IndexView_DropAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropAll'

func (*IndexView_DropAll_Call) Return added in v1.13.0

func (*IndexView_DropAll_Call) Run added in v1.13.0

func (*IndexView_DropAll_Call) RunAndReturn added in v1.13.0

type IndexView_DropOneWithKey_Call added in v1.17.0

type IndexView_DropOneWithKey_Call struct {
	*mock.Call
}

IndexView_DropOneWithKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropOneWithKey'

func (*IndexView_DropOneWithKey_Call) Return added in v1.17.0

func (*IndexView_DropOneWithKey_Call) Run added in v1.17.0

func (_c *IndexView_DropOneWithKey_Call) Run(run func(ctx context.Context, keySpecDocument interface{}, opts ...*options.DropIndexesOptions)) *IndexView_DropOneWithKey_Call

func (*IndexView_DropOneWithKey_Call) RunAndReturn added in v1.17.0

type IndexView_DropOne_Call added in v1.13.0

type IndexView_DropOne_Call struct {
	*mock.Call
}

IndexView_DropOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropOne'

func (*IndexView_DropOne_Call) Return added in v1.13.0

func (*IndexView_DropOne_Call) Run added in v1.13.0

func (*IndexView_DropOne_Call) RunAndReturn added in v1.13.0

type IndexView_Expecter added in v1.13.0

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

func (*IndexView_Expecter) CreateMany added in v1.13.0

func (_e *IndexView_Expecter) CreateMany(ctx interface{}, models interface{}, opts ...interface{}) *IndexView_CreateMany_Call

CreateMany is a helper method to define mock.On call

  • ctx context.Context
  • models []mongo.IndexModel
  • opts ...*options.CreateIndexesOptions

func (*IndexView_Expecter) CreateOne added in v1.13.0

func (_e *IndexView_Expecter) CreateOne(ctx interface{}, model interface{}, opts ...interface{}) *IndexView_CreateOne_Call

CreateOne is a helper method to define mock.On call

  • ctx context.Context
  • model mongo.IndexModel
  • opts ...*options.CreateIndexesOptions

func (*IndexView_Expecter) DropAll added in v1.13.0

func (_e *IndexView_Expecter) DropAll(ctx interface{}, opts ...interface{}) *IndexView_DropAll_Call

DropAll is a helper method to define mock.On call

  • ctx context.Context
  • opts ...*options.DropIndexesOptions

func (*IndexView_Expecter) DropOne added in v1.13.0

func (_e *IndexView_Expecter) DropOne(ctx interface{}, name interface{}, opts ...interface{}) *IndexView_DropOne_Call

DropOne is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts ...*options.DropIndexesOptions

func (*IndexView_Expecter) DropOneWithKey added in v1.17.0

func (_e *IndexView_Expecter) DropOneWithKey(ctx interface{}, keySpecDocument interface{}, opts ...interface{}) *IndexView_DropOneWithKey_Call

DropOneWithKey is a helper method to define mock.On call

  • ctx context.Context
  • keySpecDocument interface{}
  • opts ...*options.DropIndexesOptions

func (*IndexView_Expecter) List added in v1.13.0

func (_e *IndexView_Expecter) List(ctx interface{}, opts ...interface{}) *IndexView_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • opts ...*options.ListIndexesOptions

func (*IndexView_Expecter) ListSpecifications added in v1.13.0

func (_e *IndexView_Expecter) ListSpecifications(ctx interface{}, opts ...interface{}) *IndexView_ListSpecifications_Call

ListSpecifications is a helper method to define mock.On call

  • ctx context.Context
  • opts ...*options.ListIndexesOptions

type IndexView_ListSpecifications_Call added in v1.13.0

type IndexView_ListSpecifications_Call struct {
	*mock.Call
}

IndexView_ListSpecifications_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSpecifications'

func (*IndexView_ListSpecifications_Call) Return added in v1.13.0

func (*IndexView_ListSpecifications_Call) Run added in v1.13.0

func (*IndexView_ListSpecifications_Call) RunAndReturn added in v1.13.0

type IndexView_List_Call added in v1.13.0

type IndexView_List_Call struct {
	*mock.Call
}

IndexView_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*IndexView_List_Call) Return added in v1.13.0

func (*IndexView_List_Call) Run added in v1.13.0

func (*IndexView_List_Call) RunAndReturn added in v1.13.0

type SearchIndexView added in v1.13.0

type SearchIndexView struct {
	mock.Mock
}

SearchIndexView is an autogenerated mock type for the SearchIndexView type

func NewSearchIndexView added in v1.13.0

func NewSearchIndexView(t interface {
	mock.TestingT
	Cleanup(func())
}) *SearchIndexView

NewSearchIndexView creates a new instance of SearchIndexView. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SearchIndexView) CreateMany added in v1.13.0

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

func (*SearchIndexView) CreateOne added in v1.13.0

CreateOne provides a mock function with given fields: ctx, model, opts

func (*SearchIndexView) DropOne added in v1.13.0

func (_m *SearchIndexView) DropOne(ctx context.Context, name string, opts ...*options.DropSearchIndexOptions) error

DropOne provides a mock function with given fields: ctx, name, opts

func (*SearchIndexView) EXPECT added in v1.13.0

func (*SearchIndexView) List added in v1.13.0

List provides a mock function with given fields: ctx, searchIdxOpts, opts

func (*SearchIndexView) UpdateOne added in v1.13.0

func (_m *SearchIndexView) UpdateOne(ctx context.Context, name string, definition interface{}, opts ...*options.UpdateSearchIndexOptions) error

UpdateOne provides a mock function with given fields: ctx, name, definition, opts

type SearchIndexView_CreateMany_Call added in v1.13.0

type SearchIndexView_CreateMany_Call struct {
	*mock.Call
}

SearchIndexView_CreateMany_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateMany'

func (*SearchIndexView_CreateMany_Call) Return added in v1.13.0

func (*SearchIndexView_CreateMany_Call) Run added in v1.13.0

func (*SearchIndexView_CreateMany_Call) RunAndReturn added in v1.13.0

type SearchIndexView_CreateOne_Call added in v1.13.0

type SearchIndexView_CreateOne_Call struct {
	*mock.Call
}

SearchIndexView_CreateOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOne'

func (*SearchIndexView_CreateOne_Call) Return added in v1.13.0

func (*SearchIndexView_CreateOne_Call) Run added in v1.13.0

func (*SearchIndexView_CreateOne_Call) RunAndReturn added in v1.13.0

type SearchIndexView_DropOne_Call added in v1.13.0

type SearchIndexView_DropOne_Call struct {
	*mock.Call
}

SearchIndexView_DropOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropOne'

func (*SearchIndexView_DropOne_Call) Return added in v1.13.0

func (*SearchIndexView_DropOne_Call) Run added in v1.13.0

func (*SearchIndexView_DropOne_Call) RunAndReturn added in v1.13.0

type SearchIndexView_Expecter added in v1.13.0

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

func (*SearchIndexView_Expecter) CreateMany added in v1.13.0

func (_e *SearchIndexView_Expecter) CreateMany(ctx interface{}, models interface{}, opts ...interface{}) *SearchIndexView_CreateMany_Call

CreateMany is a helper method to define mock.On call

  • ctx context.Context
  • models []mongo.SearchIndexModel
  • opts ...*options.CreateSearchIndexesOptions

func (*SearchIndexView_Expecter) CreateOne added in v1.13.0

func (_e *SearchIndexView_Expecter) CreateOne(ctx interface{}, model interface{}, opts ...interface{}) *SearchIndexView_CreateOne_Call

CreateOne is a helper method to define mock.On call

  • ctx context.Context
  • model mongo.SearchIndexModel
  • opts ...*options.CreateSearchIndexesOptions

func (*SearchIndexView_Expecter) DropOne added in v1.13.0

func (_e *SearchIndexView_Expecter) DropOne(ctx interface{}, name interface{}, opts ...interface{}) *SearchIndexView_DropOne_Call

DropOne is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts ...*options.DropSearchIndexOptions

func (*SearchIndexView_Expecter) List added in v1.13.0

func (_e *SearchIndexView_Expecter) List(ctx interface{}, searchIdxOpts interface{}, opts ...interface{}) *SearchIndexView_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • searchIdxOpts *options.SearchIndexesOptions
  • opts ...*options.ListSearchIndexesOptions

func (*SearchIndexView_Expecter) UpdateOne added in v1.13.0

func (_e *SearchIndexView_Expecter) UpdateOne(ctx interface{}, name interface{}, definition interface{}, opts ...interface{}) *SearchIndexView_UpdateOne_Call

UpdateOne is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • definition interface{}
  • opts ...*options.UpdateSearchIndexOptions

type SearchIndexView_List_Call added in v1.13.0

type SearchIndexView_List_Call struct {
	*mock.Call
}

SearchIndexView_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*SearchIndexView_List_Call) Return added in v1.13.0

func (*SearchIndexView_List_Call) Run added in v1.13.0

func (*SearchIndexView_List_Call) RunAndReturn added in v1.13.0

type SearchIndexView_UpdateOne_Call added in v1.13.0

type SearchIndexView_UpdateOne_Call struct {
	*mock.Call
}

SearchIndexView_UpdateOne_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOne'

func (*SearchIndexView_UpdateOne_Call) Return added in v1.13.0

func (*SearchIndexView_UpdateOne_Call) Run added in v1.13.0

func (_c *SearchIndexView_UpdateOne_Call) Run(run func(ctx context.Context, name string, definition interface{}, opts ...*options.UpdateSearchIndexOptions)) *SearchIndexView_UpdateOne_Call

func (*SearchIndexView_UpdateOne_Call) RunAndReturn added in v1.13.0

type Session

type Session struct {
	mock.Mock
}

Session is an autogenerated mock type for the Session type

func NewSession added in v1.9.1

func NewSession(t interface {
	mock.TestingT
	Cleanup(func())
}) *Session

NewSession creates a new instance of Session. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Session) AbortTransaction

func (_m *Session) AbortTransaction(ctx context.Context) error

AbortTransaction provides a mock function with given fields: ctx

func (*Session) AdvanceClusterTime

func (_m *Session) AdvanceClusterTime(_a0 bson.Raw) error

AdvanceClusterTime provides a mock function with given fields: _a0

func (*Session) AdvanceOperationTime

func (_m *Session) AdvanceOperationTime(_a0 *primitive.Timestamp) error

AdvanceOperationTime provides a mock function with given fields: _a0

func (*Session) Client

func (_m *Session) Client() mongoifc.Client

Client provides a mock function with given fields:

func (*Session) ClusterTime

func (_m *Session) ClusterTime() bson.Raw

ClusterTime provides a mock function with given fields:

func (*Session) CommitTransaction

func (_m *Session) CommitTransaction(ctx context.Context) error

CommitTransaction provides a mock function with given fields: ctx

func (*Session) EXPECT added in v1.13.0

func (_m *Session) EXPECT() *Session_Expecter

func (*Session) EndSession

func (_m *Session) EndSession(ctx context.Context)

EndSession provides a mock function with given fields: ctx

func (*Session) ID

func (_m *Session) ID() bson.Raw

ID provides a mock function with given fields:

func (*Session) OperationTime

func (_m *Session) OperationTime() *primitive.Timestamp

OperationTime provides a mock function with given fields:

func (*Session) StartTransaction

func (_m *Session) StartTransaction(opts ...*options.TransactionOptions) error

StartTransaction provides a mock function with given fields: opts

func (*Session) WithTransaction

func (_m *Session) WithTransaction(ctx context.Context, fn func(mongoifc.SessionContext) (interface{}, error), opts ...*options.TransactionOptions) (interface{}, error)

WithTransaction provides a mock function with given fields: ctx, fn, opts

type SessionContext added in v1.0.0

type SessionContext struct {
	mock.Mock
}

SessionContext is an autogenerated mock type for the SessionContext type

func NewSessionContext added in v1.9.1

func NewSessionContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *SessionContext

NewSessionContext creates a new instance of SessionContext. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SessionContext) AbortTransaction added in v1.0.0

func (_m *SessionContext) AbortTransaction(ctx context.Context) error

AbortTransaction provides a mock function with given fields: ctx

func (*SessionContext) AdvanceClusterTime added in v1.0.0

func (_m *SessionContext) AdvanceClusterTime(_a0 bson.Raw) error

AdvanceClusterTime provides a mock function with given fields: _a0

func (*SessionContext) AdvanceOperationTime added in v1.0.0

func (_m *SessionContext) AdvanceOperationTime(_a0 *primitive.Timestamp) error

AdvanceOperationTime provides a mock function with given fields: _a0

func (*SessionContext) Client added in v1.0.0

func (_m *SessionContext) Client() mongoifc.Client

Client provides a mock function with given fields:

func (*SessionContext) ClusterTime added in v1.0.0

func (_m *SessionContext) ClusterTime() bson.Raw

ClusterTime provides a mock function with given fields:

func (*SessionContext) CommitTransaction added in v1.0.0

func (_m *SessionContext) CommitTransaction(ctx context.Context) error

CommitTransaction provides a mock function with given fields: ctx

func (*SessionContext) Deadline added in v1.0.0

func (_m *SessionContext) Deadline() (time.Time, bool)

Deadline provides a mock function with given fields:

func (*SessionContext) Done added in v1.0.0

func (_m *SessionContext) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*SessionContext) EXPECT added in v1.13.0

func (*SessionContext) EndSession added in v1.0.0

func (_m *SessionContext) EndSession(ctx context.Context)

EndSession provides a mock function with given fields: ctx

func (*SessionContext) Err added in v1.0.0

func (_m *SessionContext) Err() error

Err provides a mock function with given fields:

func (*SessionContext) ID added in v1.0.0

func (_m *SessionContext) ID() bson.Raw

ID provides a mock function with given fields:

func (*SessionContext) OperationTime added in v1.0.0

func (_m *SessionContext) OperationTime() *primitive.Timestamp

OperationTime provides a mock function with given fields:

func (*SessionContext) StartTransaction added in v1.0.0

func (_m *SessionContext) StartTransaction(opts ...*options.TransactionOptions) error

StartTransaction provides a mock function with given fields: opts

func (*SessionContext) Value added in v1.0.0

func (_m *SessionContext) Value(key interface{}) interface{}

Value provides a mock function with given fields: key

func (*SessionContext) WithTransaction added in v1.0.0

func (_m *SessionContext) WithTransaction(ctx context.Context, fn func(mongoifc.SessionContext) (interface{}, error), opts ...*options.TransactionOptions) (interface{}, error)

WithTransaction provides a mock function with given fields: ctx, fn, opts

type SessionContext_AbortTransaction_Call added in v1.13.0

type SessionContext_AbortTransaction_Call struct {
	*mock.Call
}

SessionContext_AbortTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortTransaction'

func (*SessionContext_AbortTransaction_Call) Return added in v1.13.0

func (*SessionContext_AbortTransaction_Call) Run added in v1.13.0

func (*SessionContext_AbortTransaction_Call) RunAndReturn added in v1.13.0

type SessionContext_AdvanceClusterTime_Call added in v1.13.0

type SessionContext_AdvanceClusterTime_Call struct {
	*mock.Call
}

SessionContext_AdvanceClusterTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdvanceClusterTime'

func (*SessionContext_AdvanceClusterTime_Call) Return added in v1.13.0

func (*SessionContext_AdvanceClusterTime_Call) Run added in v1.13.0

func (*SessionContext_AdvanceClusterTime_Call) RunAndReturn added in v1.13.0

type SessionContext_AdvanceOperationTime_Call added in v1.13.0

type SessionContext_AdvanceOperationTime_Call struct {
	*mock.Call
}

SessionContext_AdvanceOperationTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdvanceOperationTime'

func (*SessionContext_AdvanceOperationTime_Call) Return added in v1.13.0

func (*SessionContext_AdvanceOperationTime_Call) Run added in v1.13.0

func (*SessionContext_AdvanceOperationTime_Call) RunAndReturn added in v1.13.0

type SessionContext_Client_Call added in v1.13.0

type SessionContext_Client_Call struct {
	*mock.Call
}

SessionContext_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'

func (*SessionContext_Client_Call) Return added in v1.13.0

func (*SessionContext_Client_Call) Run added in v1.13.0

func (*SessionContext_Client_Call) RunAndReturn added in v1.13.0

type SessionContext_ClusterTime_Call added in v1.13.0

type SessionContext_ClusterTime_Call struct {
	*mock.Call
}

SessionContext_ClusterTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterTime'

func (*SessionContext_ClusterTime_Call) Return added in v1.13.0

func (*SessionContext_ClusterTime_Call) Run added in v1.13.0

func (*SessionContext_ClusterTime_Call) RunAndReturn added in v1.13.0

type SessionContext_CommitTransaction_Call added in v1.13.0

type SessionContext_CommitTransaction_Call struct {
	*mock.Call
}

SessionContext_CommitTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitTransaction'

func (*SessionContext_CommitTransaction_Call) Return added in v1.13.0

func (*SessionContext_CommitTransaction_Call) Run added in v1.13.0

func (*SessionContext_CommitTransaction_Call) RunAndReturn added in v1.13.0

type SessionContext_Deadline_Call added in v1.13.0

type SessionContext_Deadline_Call struct {
	*mock.Call
}

SessionContext_Deadline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deadline'

func (*SessionContext_Deadline_Call) Return added in v1.13.0

func (*SessionContext_Deadline_Call) Run added in v1.13.0

func (*SessionContext_Deadline_Call) RunAndReturn added in v1.13.0

func (_c *SessionContext_Deadline_Call) RunAndReturn(run func() (time.Time, bool)) *SessionContext_Deadline_Call

type SessionContext_Done_Call added in v1.13.0

type SessionContext_Done_Call struct {
	*mock.Call
}

SessionContext_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'

func (*SessionContext_Done_Call) Return added in v1.13.0

func (_c *SessionContext_Done_Call) Return(_a0 <-chan struct{}) *SessionContext_Done_Call

func (*SessionContext_Done_Call) Run added in v1.13.0

func (*SessionContext_Done_Call) RunAndReturn added in v1.13.0

func (_c *SessionContext_Done_Call) RunAndReturn(run func() <-chan struct{}) *SessionContext_Done_Call

type SessionContext_EndSession_Call added in v1.13.0

type SessionContext_EndSession_Call struct {
	*mock.Call
}

SessionContext_EndSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EndSession'

func (*SessionContext_EndSession_Call) Return added in v1.13.0

func (*SessionContext_EndSession_Call) Run added in v1.13.0

func (*SessionContext_EndSession_Call) RunAndReturn added in v1.13.0

type SessionContext_Err_Call added in v1.13.0

type SessionContext_Err_Call struct {
	*mock.Call
}

SessionContext_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'

func (*SessionContext_Err_Call) Return added in v1.13.0

func (*SessionContext_Err_Call) Run added in v1.13.0

func (_c *SessionContext_Err_Call) Run(run func()) *SessionContext_Err_Call

func (*SessionContext_Err_Call) RunAndReturn added in v1.13.0

func (_c *SessionContext_Err_Call) RunAndReturn(run func() error) *SessionContext_Err_Call

type SessionContext_Expecter added in v1.13.0

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

func (*SessionContext_Expecter) AbortTransaction added in v1.13.0

func (_e *SessionContext_Expecter) AbortTransaction(ctx interface{}) *SessionContext_AbortTransaction_Call

AbortTransaction is a helper method to define mock.On call

  • ctx context.Context

func (*SessionContext_Expecter) AdvanceClusterTime added in v1.13.0

func (_e *SessionContext_Expecter) AdvanceClusterTime(_a0 interface{}) *SessionContext_AdvanceClusterTime_Call

AdvanceClusterTime is a helper method to define mock.On call

  • _a0 bson.Raw

func (*SessionContext_Expecter) AdvanceOperationTime added in v1.13.0

func (_e *SessionContext_Expecter) AdvanceOperationTime(_a0 interface{}) *SessionContext_AdvanceOperationTime_Call

AdvanceOperationTime is a helper method to define mock.On call

  • _a0 *primitive.Timestamp

func (*SessionContext_Expecter) Client added in v1.13.0

Client is a helper method to define mock.On call

func (*SessionContext_Expecter) ClusterTime added in v1.13.0

ClusterTime is a helper method to define mock.On call

func (*SessionContext_Expecter) CommitTransaction added in v1.13.0

func (_e *SessionContext_Expecter) CommitTransaction(ctx interface{}) *SessionContext_CommitTransaction_Call

CommitTransaction is a helper method to define mock.On call

  • ctx context.Context

func (*SessionContext_Expecter) Deadline added in v1.13.0

Deadline is a helper method to define mock.On call

func (*SessionContext_Expecter) Done added in v1.13.0

Done is a helper method to define mock.On call

func (*SessionContext_Expecter) EndSession added in v1.13.0

func (_e *SessionContext_Expecter) EndSession(ctx interface{}) *SessionContext_EndSession_Call

EndSession is a helper method to define mock.On call

  • ctx context.Context

func (*SessionContext_Expecter) Err added in v1.13.0

Err is a helper method to define mock.On call

func (*SessionContext_Expecter) ID added in v1.13.0

ID is a helper method to define mock.On call

func (*SessionContext_Expecter) OperationTime added in v1.13.0

OperationTime is a helper method to define mock.On call

func (*SessionContext_Expecter) StartTransaction added in v1.13.0

func (_e *SessionContext_Expecter) StartTransaction(opts ...interface{}) *SessionContext_StartTransaction_Call

StartTransaction is a helper method to define mock.On call

  • opts ...*options.TransactionOptions

func (*SessionContext_Expecter) Value added in v1.13.0

func (_e *SessionContext_Expecter) Value(key interface{}) *SessionContext_Value_Call

Value is a helper method to define mock.On call

  • key interface{}

func (*SessionContext_Expecter) WithTransaction added in v1.13.0

func (_e *SessionContext_Expecter) WithTransaction(ctx interface{}, fn interface{}, opts ...interface{}) *SessionContext_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context
  • fn func(mongoifc.SessionContext)(interface{} , error)
  • opts ...*options.TransactionOptions

type SessionContext_ID_Call added in v1.13.0

type SessionContext_ID_Call struct {
	*mock.Call
}

SessionContext_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*SessionContext_ID_Call) Return added in v1.13.0

func (*SessionContext_ID_Call) Run added in v1.13.0

func (_c *SessionContext_ID_Call) Run(run func()) *SessionContext_ID_Call

func (*SessionContext_ID_Call) RunAndReturn added in v1.13.0

func (_c *SessionContext_ID_Call) RunAndReturn(run func() bson.Raw) *SessionContext_ID_Call

type SessionContext_OperationTime_Call added in v1.13.0

type SessionContext_OperationTime_Call struct {
	*mock.Call
}

SessionContext_OperationTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperationTime'

func (*SessionContext_OperationTime_Call) Return added in v1.13.0

func (*SessionContext_OperationTime_Call) Run added in v1.13.0

func (*SessionContext_OperationTime_Call) RunAndReturn added in v1.13.0

type SessionContext_StartTransaction_Call added in v1.13.0

type SessionContext_StartTransaction_Call struct {
	*mock.Call
}

SessionContext_StartTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartTransaction'

func (*SessionContext_StartTransaction_Call) Return added in v1.13.0

func (*SessionContext_StartTransaction_Call) Run added in v1.13.0

func (*SessionContext_StartTransaction_Call) RunAndReturn added in v1.13.0

type SessionContext_Value_Call added in v1.13.0

type SessionContext_Value_Call struct {
	*mock.Call
}

SessionContext_Value_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Value'

func (*SessionContext_Value_Call) Return added in v1.13.0

func (_c *SessionContext_Value_Call) Return(_a0 interface{}) *SessionContext_Value_Call

func (*SessionContext_Value_Call) Run added in v1.13.0

func (_c *SessionContext_Value_Call) Run(run func(key interface{})) *SessionContext_Value_Call

func (*SessionContext_Value_Call) RunAndReturn added in v1.13.0

func (_c *SessionContext_Value_Call) RunAndReturn(run func(interface{}) interface{}) *SessionContext_Value_Call

type SessionContext_WithTransaction_Call added in v1.13.0

type SessionContext_WithTransaction_Call struct {
	*mock.Call
}

SessionContext_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'

func (*SessionContext_WithTransaction_Call) Return added in v1.13.0

func (*SessionContext_WithTransaction_Call) Run added in v1.13.0

func (*SessionContext_WithTransaction_Call) RunAndReturn added in v1.13.0

type Session_AbortTransaction_Call added in v1.13.0

type Session_AbortTransaction_Call struct {
	*mock.Call
}

Session_AbortTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortTransaction'

func (*Session_AbortTransaction_Call) Return added in v1.13.0

func (*Session_AbortTransaction_Call) Run added in v1.13.0

func (*Session_AbortTransaction_Call) RunAndReturn added in v1.13.0

type Session_AdvanceClusterTime_Call added in v1.13.0

type Session_AdvanceClusterTime_Call struct {
	*mock.Call
}

Session_AdvanceClusterTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdvanceClusterTime'

func (*Session_AdvanceClusterTime_Call) Return added in v1.13.0

func (*Session_AdvanceClusterTime_Call) Run added in v1.13.0

func (*Session_AdvanceClusterTime_Call) RunAndReturn added in v1.13.0

type Session_AdvanceOperationTime_Call added in v1.13.0

type Session_AdvanceOperationTime_Call struct {
	*mock.Call
}

Session_AdvanceOperationTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdvanceOperationTime'

func (*Session_AdvanceOperationTime_Call) Return added in v1.13.0

func (*Session_AdvanceOperationTime_Call) Run added in v1.13.0

func (*Session_AdvanceOperationTime_Call) RunAndReturn added in v1.13.0

type Session_Client_Call added in v1.13.0

type Session_Client_Call struct {
	*mock.Call
}

Session_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'

func (*Session_Client_Call) Return added in v1.13.0

func (*Session_Client_Call) Run added in v1.13.0

func (_c *Session_Client_Call) Run(run func()) *Session_Client_Call

func (*Session_Client_Call) RunAndReturn added in v1.13.0

func (_c *Session_Client_Call) RunAndReturn(run func() mongoifc.Client) *Session_Client_Call

type Session_ClusterTime_Call added in v1.13.0

type Session_ClusterTime_Call struct {
	*mock.Call
}

Session_ClusterTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterTime'

func (*Session_ClusterTime_Call) Return added in v1.13.0

func (*Session_ClusterTime_Call) Run added in v1.13.0

func (*Session_ClusterTime_Call) RunAndReturn added in v1.13.0

func (_c *Session_ClusterTime_Call) RunAndReturn(run func() bson.Raw) *Session_ClusterTime_Call

type Session_CommitTransaction_Call added in v1.13.0

type Session_CommitTransaction_Call struct {
	*mock.Call
}

Session_CommitTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CommitTransaction'

func (*Session_CommitTransaction_Call) Return added in v1.13.0

func (*Session_CommitTransaction_Call) Run added in v1.13.0

func (*Session_CommitTransaction_Call) RunAndReturn added in v1.13.0

type Session_EndSession_Call added in v1.13.0

type Session_EndSession_Call struct {
	*mock.Call
}

Session_EndSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EndSession'

func (*Session_EndSession_Call) Return added in v1.13.0

func (*Session_EndSession_Call) Run added in v1.13.0

func (*Session_EndSession_Call) RunAndReturn added in v1.13.0

func (_c *Session_EndSession_Call) RunAndReturn(run func(context.Context)) *Session_EndSession_Call

type Session_Expecter added in v1.13.0

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

func (*Session_Expecter) AbortTransaction added in v1.13.0

func (_e *Session_Expecter) AbortTransaction(ctx interface{}) *Session_AbortTransaction_Call

AbortTransaction is a helper method to define mock.On call

  • ctx context.Context

func (*Session_Expecter) AdvanceClusterTime added in v1.13.0

func (_e *Session_Expecter) AdvanceClusterTime(_a0 interface{}) *Session_AdvanceClusterTime_Call

AdvanceClusterTime is a helper method to define mock.On call

  • _a0 bson.Raw

func (*Session_Expecter) AdvanceOperationTime added in v1.13.0

func (_e *Session_Expecter) AdvanceOperationTime(_a0 interface{}) *Session_AdvanceOperationTime_Call

AdvanceOperationTime is a helper method to define mock.On call

  • _a0 *primitive.Timestamp

func (*Session_Expecter) Client added in v1.13.0

func (_e *Session_Expecter) Client() *Session_Client_Call

Client is a helper method to define mock.On call

func (*Session_Expecter) ClusterTime added in v1.13.0

func (_e *Session_Expecter) ClusterTime() *Session_ClusterTime_Call

ClusterTime is a helper method to define mock.On call

func (*Session_Expecter) CommitTransaction added in v1.13.0

func (_e *Session_Expecter) CommitTransaction(ctx interface{}) *Session_CommitTransaction_Call

CommitTransaction is a helper method to define mock.On call

  • ctx context.Context

func (*Session_Expecter) EndSession added in v1.13.0

func (_e *Session_Expecter) EndSession(ctx interface{}) *Session_EndSession_Call

EndSession is a helper method to define mock.On call

  • ctx context.Context

func (*Session_Expecter) ID added in v1.13.0

ID is a helper method to define mock.On call

func (*Session_Expecter) OperationTime added in v1.13.0

func (_e *Session_Expecter) OperationTime() *Session_OperationTime_Call

OperationTime is a helper method to define mock.On call

func (*Session_Expecter) StartTransaction added in v1.13.0

func (_e *Session_Expecter) StartTransaction(opts ...interface{}) *Session_StartTransaction_Call

StartTransaction is a helper method to define mock.On call

  • opts ...*options.TransactionOptions

func (*Session_Expecter) WithTransaction added in v1.13.0

func (_e *Session_Expecter) WithTransaction(ctx interface{}, fn interface{}, opts ...interface{}) *Session_WithTransaction_Call

WithTransaction is a helper method to define mock.On call

  • ctx context.Context
  • fn func(mongoifc.SessionContext)(interface{} , error)
  • opts ...*options.TransactionOptions

type Session_ID_Call added in v1.13.0

type Session_ID_Call struct {
	*mock.Call
}

Session_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*Session_ID_Call) Return added in v1.13.0

func (_c *Session_ID_Call) Return(_a0 bson.Raw) *Session_ID_Call

func (*Session_ID_Call) Run added in v1.13.0

func (_c *Session_ID_Call) Run(run func()) *Session_ID_Call

func (*Session_ID_Call) RunAndReturn added in v1.13.0

func (_c *Session_ID_Call) RunAndReturn(run func() bson.Raw) *Session_ID_Call

type Session_OperationTime_Call added in v1.13.0

type Session_OperationTime_Call struct {
	*mock.Call
}

Session_OperationTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OperationTime'

func (*Session_OperationTime_Call) Return added in v1.13.0

func (*Session_OperationTime_Call) Run added in v1.13.0

func (*Session_OperationTime_Call) RunAndReturn added in v1.13.0

type Session_StartTransaction_Call added in v1.13.0

type Session_StartTransaction_Call struct {
	*mock.Call
}

Session_StartTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartTransaction'

func (*Session_StartTransaction_Call) Return added in v1.13.0

func (*Session_StartTransaction_Call) Run added in v1.13.0

func (*Session_StartTransaction_Call) RunAndReturn added in v1.13.0

type Session_WithTransaction_Call added in v1.13.0

type Session_WithTransaction_Call struct {
	*mock.Call
}

Session_WithTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTransaction'

func (*Session_WithTransaction_Call) Return added in v1.13.0

func (_c *Session_WithTransaction_Call) Return(_a0 interface{}, _a1 error) *Session_WithTransaction_Call

func (*Session_WithTransaction_Call) Run added in v1.13.0

func (*Session_WithTransaction_Call) RunAndReturn added in v1.13.0

func (_c *Session_WithTransaction_Call) RunAndReturn(run func(context.Context, func(mongoifc.SessionContext) (interface{}, error), ...*options.TransactionOptions) (interface{}, error)) *Session_WithTransaction_Call

type SingleResult

type SingleResult struct {
	mock.Mock
}

SingleResult is an autogenerated mock type for the SingleResult type

func NewSingleResult added in v1.9.1

func NewSingleResult(t interface {
	mock.TestingT
	Cleanup(func())
}) *SingleResult

NewSingleResult creates a new instance of SingleResult. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SingleResult) Decode

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

Decode provides a mock function with given fields: v

func (*SingleResult) DecodeBytes

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

DecodeBytes provides a mock function with given fields:

func (*SingleResult) EXPECT added in v1.13.0

func (_m *SingleResult) EXPECT() *SingleResult_Expecter

func (*SingleResult) Err

func (_m *SingleResult) Err() error

Err provides a mock function with given fields:

func (*SingleResult) Raw added in v1.13.0

func (_m *SingleResult) Raw() (bson.Raw, error)

Raw provides a mock function with given fields:

type SingleResult_DecodeBytes_Call added in v1.13.0

type SingleResult_DecodeBytes_Call struct {
	*mock.Call
}

SingleResult_DecodeBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DecodeBytes'

func (*SingleResult_DecodeBytes_Call) Return added in v1.13.0

func (*SingleResult_DecodeBytes_Call) Run added in v1.13.0

func (*SingleResult_DecodeBytes_Call) RunAndReturn added in v1.13.0

type SingleResult_Decode_Call added in v1.13.0

type SingleResult_Decode_Call struct {
	*mock.Call
}

SingleResult_Decode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Decode'

func (*SingleResult_Decode_Call) Return added in v1.13.0

func (*SingleResult_Decode_Call) Run added in v1.13.0

func (_c *SingleResult_Decode_Call) Run(run func(v interface{})) *SingleResult_Decode_Call

func (*SingleResult_Decode_Call) RunAndReturn added in v1.13.0

func (_c *SingleResult_Decode_Call) RunAndReturn(run func(interface{}) error) *SingleResult_Decode_Call

type SingleResult_Err_Call added in v1.13.0

type SingleResult_Err_Call struct {
	*mock.Call
}

SingleResult_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'

func (*SingleResult_Err_Call) Return added in v1.13.0

func (*SingleResult_Err_Call) Run added in v1.13.0

func (_c *SingleResult_Err_Call) Run(run func()) *SingleResult_Err_Call

func (*SingleResult_Err_Call) RunAndReturn added in v1.13.0

func (_c *SingleResult_Err_Call) RunAndReturn(run func() error) *SingleResult_Err_Call

type SingleResult_Expecter added in v1.13.0

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

func (*SingleResult_Expecter) Decode added in v1.13.0

func (_e *SingleResult_Expecter) Decode(v interface{}) *SingleResult_Decode_Call

Decode is a helper method to define mock.On call

  • v interface{}

func (*SingleResult_Expecter) DecodeBytes added in v1.13.0

DecodeBytes is a helper method to define mock.On call

func (*SingleResult_Expecter) Err added in v1.13.0

Err is a helper method to define mock.On call

func (*SingleResult_Expecter) Raw added in v1.13.0

Raw is a helper method to define mock.On call

type SingleResult_Raw_Call added in v1.13.0

type SingleResult_Raw_Call struct {
	*mock.Call
}

SingleResult_Raw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Raw'

func (*SingleResult_Raw_Call) Return added in v1.13.0

func (*SingleResult_Raw_Call) Run added in v1.13.0

func (_c *SingleResult_Raw_Call) Run(run func()) *SingleResult_Raw_Call

func (*SingleResult_Raw_Call) RunAndReturn added in v1.13.0

func (_c *SingleResult_Raw_Call) RunAndReturn(run func() (bson.Raw, error)) *SingleResult_Raw_Call

Jump to

Keyboard shortcuts

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