mongodbfakes

package
v0.0.0-...-2f0a4f1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	DatabaseStub func(string) mongodb.Database

	DisconnectStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*FakeClient) Database

func (fake *FakeClient) Database(arg1 string) mongodb.Database

func (*FakeClient) DatabaseArgsForCall

func (fake *FakeClient) DatabaseArgsForCall(i int) string

func (*FakeClient) DatabaseCallCount

func (fake *FakeClient) DatabaseCallCount() int

func (*FakeClient) DatabaseCalls

func (fake *FakeClient) DatabaseCalls(stub func(string) mongodb.Database)

func (*FakeClient) DatabaseReturns

func (fake *FakeClient) DatabaseReturns(result1 mongodb.Database)

func (*FakeClient) DatabaseReturnsOnCall

func (fake *FakeClient) DatabaseReturnsOnCall(i int, result1 mongodb.Database)

func (*FakeClient) Disconnect

func (fake *FakeClient) Disconnect(arg1 context.Context) error

func (*FakeClient) DisconnectArgsForCall

func (fake *FakeClient) DisconnectArgsForCall(i int) context.Context

func (*FakeClient) DisconnectCallCount

func (fake *FakeClient) DisconnectCallCount() int

func (*FakeClient) DisconnectCalls

func (fake *FakeClient) DisconnectCalls(stub func(context.Context) error)

func (*FakeClient) DisconnectReturns

func (fake *FakeClient) DisconnectReturns(result1 error)

func (*FakeClient) DisconnectReturnsOnCall

func (fake *FakeClient) DisconnectReturnsOnCall(i int, result1 error)

func (*FakeClient) Invocations

func (fake *FakeClient) Invocations() map[string][][]interface{}

type FakeCollection

type FakeCollection struct {
	DeleteOneStub func(context.Context, interface{}) (*mongo.DeleteResult, error)

	FindStub func(context.Context, interface{}) (mongodb.Cursor, error)

	InsertOneStub func(context.Context, interface{}) (*mongo.InsertOneResult, error)

	UpdateOrAddOneStub func(context.Context, interface{}, interface{}) (*mongo.UpdateResult, error)
	// contains filtered or unexported fields
}

func (*FakeCollection) DeleteOne

func (fake *FakeCollection) DeleteOne(arg1 context.Context, arg2 interface{}) (*mongo.DeleteResult, error)

func (*FakeCollection) DeleteOneArgsForCall

func (fake *FakeCollection) DeleteOneArgsForCall(i int) (context.Context, interface{})

func (*FakeCollection) DeleteOneCallCount

func (fake *FakeCollection) DeleteOneCallCount() int

func (*FakeCollection) DeleteOneCalls

func (fake *FakeCollection) DeleteOneCalls(stub func(context.Context, interface{}) (*mongo.DeleteResult, error))

func (*FakeCollection) DeleteOneReturns

func (fake *FakeCollection) DeleteOneReturns(result1 *mongo.DeleteResult, result2 error)

func (*FakeCollection) DeleteOneReturnsOnCall

func (fake *FakeCollection) DeleteOneReturnsOnCall(i int, result1 *mongo.DeleteResult, result2 error)

func (*FakeCollection) Find

func (fake *FakeCollection) Find(arg1 context.Context, arg2 interface{}) (mongodb.Cursor, error)

func (*FakeCollection) FindArgsForCall

func (fake *FakeCollection) FindArgsForCall(i int) (context.Context, interface{})

func (*FakeCollection) FindCallCount

func (fake *FakeCollection) FindCallCount() int

func (*FakeCollection) FindCalls

func (fake *FakeCollection) FindCalls(stub func(context.Context, interface{}) (mongodb.Cursor, error))

func (*FakeCollection) FindReturns

func (fake *FakeCollection) FindReturns(result1 mongodb.Cursor, result2 error)

func (*FakeCollection) FindReturnsOnCall

func (fake *FakeCollection) FindReturnsOnCall(i int, result1 mongodb.Cursor, result2 error)

func (*FakeCollection) InsertOne

func (fake *FakeCollection) InsertOne(arg1 context.Context, arg2 interface{}) (*mongo.InsertOneResult, error)

func (*FakeCollection) InsertOneArgsForCall

func (fake *FakeCollection) InsertOneArgsForCall(i int) (context.Context, interface{})

func (*FakeCollection) InsertOneCallCount

func (fake *FakeCollection) InsertOneCallCount() int

func (*FakeCollection) InsertOneCalls

func (fake *FakeCollection) InsertOneCalls(stub func(context.Context, interface{}) (*mongo.InsertOneResult, error))

func (*FakeCollection) InsertOneReturns

func (fake *FakeCollection) InsertOneReturns(result1 *mongo.InsertOneResult, result2 error)

func (*FakeCollection) InsertOneReturnsOnCall

func (fake *FakeCollection) InsertOneReturnsOnCall(i int, result1 *mongo.InsertOneResult, result2 error)

func (*FakeCollection) Invocations

func (fake *FakeCollection) Invocations() map[string][][]interface{}

func (*FakeCollection) UpdateOrAddOne

func (fake *FakeCollection) UpdateOrAddOne(arg1 context.Context, arg2 interface{}, arg3 interface{}) (*mongo.UpdateResult, error)

func (*FakeCollection) UpdateOrAddOneArgsForCall

func (fake *FakeCollection) UpdateOrAddOneArgsForCall(i int) (context.Context, interface{}, interface{})

func (*FakeCollection) UpdateOrAddOneCallCount

func (fake *FakeCollection) UpdateOrAddOneCallCount() int

func (*FakeCollection) UpdateOrAddOneCalls

func (fake *FakeCollection) UpdateOrAddOneCalls(stub func(context.Context, interface{}, interface{}) (*mongo.UpdateResult, error))

func (*FakeCollection) UpdateOrAddOneReturns

func (fake *FakeCollection) UpdateOrAddOneReturns(result1 *mongo.UpdateResult, result2 error)

func (*FakeCollection) UpdateOrAddOneReturnsOnCall

func (fake *FakeCollection) UpdateOrAddOneReturnsOnCall(i int, result1 *mongo.UpdateResult, result2 error)

type FakeCursor

type FakeCursor struct {
	AllStub func(context.Context, interface{}) error

	CloseStub func(context.Context) error
	// contains filtered or unexported fields
}

func (*FakeCursor) All

func (fake *FakeCursor) All(arg1 context.Context, arg2 interface{}) error

func (*FakeCursor) AllArgsForCall

func (fake *FakeCursor) AllArgsForCall(i int) (context.Context, interface{})

func (*FakeCursor) AllCallCount

func (fake *FakeCursor) AllCallCount() int

func (*FakeCursor) AllCalls

func (fake *FakeCursor) AllCalls(stub func(context.Context, interface{}) error)

func (*FakeCursor) AllReturns

func (fake *FakeCursor) AllReturns(result1 error)

func (*FakeCursor) AllReturnsOnCall

func (fake *FakeCursor) AllReturnsOnCall(i int, result1 error)

func (*FakeCursor) Close

func (fake *FakeCursor) Close(arg1 context.Context) error

func (*FakeCursor) CloseArgsForCall

func (fake *FakeCursor) CloseArgsForCall(i int) context.Context

func (*FakeCursor) CloseCallCount

func (fake *FakeCursor) CloseCallCount() int

func (*FakeCursor) CloseCalls

func (fake *FakeCursor) CloseCalls(stub func(context.Context) error)

func (*FakeCursor) CloseReturns

func (fake *FakeCursor) CloseReturns(result1 error)

func (*FakeCursor) CloseReturnsOnCall

func (fake *FakeCursor) CloseReturnsOnCall(i int, result1 error)

func (*FakeCursor) Invocations

func (fake *FakeCursor) Invocations() map[string][][]interface{}

type FakeDatabase

type FakeDatabase struct {
	CollectionStub func(string) mongodb.Collection
	// contains filtered or unexported fields
}

func (*FakeDatabase) Collection

func (fake *FakeDatabase) Collection(arg1 string) mongodb.Collection

func (*FakeDatabase) CollectionArgsForCall

func (fake *FakeDatabase) CollectionArgsForCall(i int) string

func (*FakeDatabase) CollectionCallCount

func (fake *FakeDatabase) CollectionCallCount() int

func (*FakeDatabase) CollectionCalls

func (fake *FakeDatabase) CollectionCalls(stub func(string) mongodb.Collection)

func (*FakeDatabase) CollectionReturns

func (fake *FakeDatabase) CollectionReturns(result1 mongodb.Collection)

func (*FakeDatabase) CollectionReturnsOnCall

func (fake *FakeDatabase) CollectionReturnsOnCall(i int, result1 mongodb.Collection)

func (*FakeDatabase) Invocations

func (fake *FakeDatabase) Invocations() map[string][][]interface{}

type FakeMongoDB

type FakeMongoDB struct {
	CloseStub func(context.Context) error

	DeleteStub func(context.Context, string, string, interface{}) error

	GetAllStub func(context.Context, string, string, interface{}) error

	PutStub func(context.Context, string, string, interface{}, interface{}) error
	// contains filtered or unexported fields
}

func (*FakeMongoDB) Close

func (fake *FakeMongoDB) Close(arg1 context.Context) error

func (*FakeMongoDB) CloseArgsForCall

func (fake *FakeMongoDB) CloseArgsForCall(i int) context.Context

func (*FakeMongoDB) CloseCallCount

func (fake *FakeMongoDB) CloseCallCount() int

func (*FakeMongoDB) CloseCalls

func (fake *FakeMongoDB) CloseCalls(stub func(context.Context) error)

func (*FakeMongoDB) CloseReturns

func (fake *FakeMongoDB) CloseReturns(result1 error)

func (*FakeMongoDB) CloseReturnsOnCall

func (fake *FakeMongoDB) CloseReturnsOnCall(i int, result1 error)

func (*FakeMongoDB) Delete

func (fake *FakeMongoDB) Delete(arg1 context.Context, arg2 string, arg3 string, arg4 interface{}) error

func (*FakeMongoDB) DeleteArgsForCall

func (fake *FakeMongoDB) DeleteArgsForCall(i int) (context.Context, string, string, interface{})

func (*FakeMongoDB) DeleteCallCount

func (fake *FakeMongoDB) DeleteCallCount() int

func (*FakeMongoDB) DeleteCalls

func (fake *FakeMongoDB) DeleteCalls(stub func(context.Context, string, string, interface{}) error)

func (*FakeMongoDB) DeleteReturns

func (fake *FakeMongoDB) DeleteReturns(result1 error)

func (*FakeMongoDB) DeleteReturnsOnCall

func (fake *FakeMongoDB) DeleteReturnsOnCall(i int, result1 error)

func (*FakeMongoDB) GetAll

func (fake *FakeMongoDB) GetAll(arg1 context.Context, arg2 string, arg3 string, arg4 interface{}) error

func (*FakeMongoDB) GetAllArgsForCall

func (fake *FakeMongoDB) GetAllArgsForCall(i int) (context.Context, string, string, interface{})

func (*FakeMongoDB) GetAllCallCount

func (fake *FakeMongoDB) GetAllCallCount() int

func (*FakeMongoDB) GetAllCalls

func (fake *FakeMongoDB) GetAllCalls(stub func(context.Context, string, string, interface{}) error)

func (*FakeMongoDB) GetAllReturns

func (fake *FakeMongoDB) GetAllReturns(result1 error)

func (*FakeMongoDB) GetAllReturnsOnCall

func (fake *FakeMongoDB) GetAllReturnsOnCall(i int, result1 error)

func (*FakeMongoDB) Invocations

func (fake *FakeMongoDB) Invocations() map[string][][]interface{}

func (*FakeMongoDB) Put

func (fake *FakeMongoDB) Put(arg1 context.Context, arg2 string, arg3 string, arg4 interface{}, arg5 interface{}) error

func (*FakeMongoDB) PutArgsForCall

func (fake *FakeMongoDB) PutArgsForCall(i int) (context.Context, string, string, interface{}, interface{})

func (*FakeMongoDB) PutCallCount

func (fake *FakeMongoDB) PutCallCount() int

func (*FakeMongoDB) PutCalls

func (fake *FakeMongoDB) PutCalls(stub func(context.Context, string, string, interface{}, interface{}) error)

func (*FakeMongoDB) PutReturns

func (fake *FakeMongoDB) PutReturns(result1 error)

func (*FakeMongoDB) PutReturnsOnCall

func (fake *FakeMongoDB) PutReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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