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 ¶
- type FakeClient
- func (fake *FakeClient) Database(arg1 string) mongodb.Database
- func (fake *FakeClient) DatabaseArgsForCall(i int) string
- func (fake *FakeClient) DatabaseCallCount() int
- func (fake *FakeClient) DatabaseCalls(stub func(string) mongodb.Database)
- func (fake *FakeClient) DatabaseReturns(result1 mongodb.Database)
- func (fake *FakeClient) DatabaseReturnsOnCall(i int, result1 mongodb.Database)
- func (fake *FakeClient) Disconnect(arg1 context.Context) error
- func (fake *FakeClient) DisconnectArgsForCall(i int) context.Context
- func (fake *FakeClient) DisconnectCallCount() int
- func (fake *FakeClient) DisconnectCalls(stub func(context.Context) error)
- func (fake *FakeClient) DisconnectReturns(result1 error)
- func (fake *FakeClient) DisconnectReturnsOnCall(i int, result1 error)
- func (fake *FakeClient) Invocations() map[string][][]interface{}
- type FakeCollection
- func (fake *FakeCollection) DeleteOne(arg1 context.Context, arg2 interface{}) (*mongo.DeleteResult, error)
- func (fake *FakeCollection) DeleteOneArgsForCall(i int) (context.Context, interface{})
- func (fake *FakeCollection) DeleteOneCallCount() int
- func (fake *FakeCollection) DeleteOneCalls(stub func(context.Context, interface{}) (*mongo.DeleteResult, error))
- func (fake *FakeCollection) DeleteOneReturns(result1 *mongo.DeleteResult, result2 error)
- func (fake *FakeCollection) DeleteOneReturnsOnCall(i int, result1 *mongo.DeleteResult, result2 error)
- func (fake *FakeCollection) Find(arg1 context.Context, arg2 interface{}) (mongodb.Cursor, error)
- func (fake *FakeCollection) FindArgsForCall(i int) (context.Context, interface{})
- func (fake *FakeCollection) FindCallCount() int
- func (fake *FakeCollection) FindCalls(stub func(context.Context, interface{}) (mongodb.Cursor, error))
- func (fake *FakeCollection) FindReturns(result1 mongodb.Cursor, result2 error)
- func (fake *FakeCollection) FindReturnsOnCall(i int, result1 mongodb.Cursor, result2 error)
- func (fake *FakeCollection) InsertOne(arg1 context.Context, arg2 interface{}) (*mongo.InsertOneResult, error)
- func (fake *FakeCollection) InsertOneArgsForCall(i int) (context.Context, interface{})
- func (fake *FakeCollection) InsertOneCallCount() int
- func (fake *FakeCollection) InsertOneCalls(stub func(context.Context, interface{}) (*mongo.InsertOneResult, error))
- func (fake *FakeCollection) InsertOneReturns(result1 *mongo.InsertOneResult, result2 error)
- func (fake *FakeCollection) InsertOneReturnsOnCall(i int, result1 *mongo.InsertOneResult, result2 error)
- func (fake *FakeCollection) Invocations() map[string][][]interface{}
- func (fake *FakeCollection) UpdateOrAddOne(arg1 context.Context, arg2 interface{}, arg3 interface{}) (*mongo.UpdateResult, error)
- func (fake *FakeCollection) UpdateOrAddOneArgsForCall(i int) (context.Context, interface{}, interface{})
- func (fake *FakeCollection) UpdateOrAddOneCallCount() int
- func (fake *FakeCollection) UpdateOrAddOneCalls(...)
- func (fake *FakeCollection) UpdateOrAddOneReturns(result1 *mongo.UpdateResult, result2 error)
- func (fake *FakeCollection) UpdateOrAddOneReturnsOnCall(i int, result1 *mongo.UpdateResult, result2 error)
- type FakeCursor
- func (fake *FakeCursor) All(arg1 context.Context, arg2 interface{}) error
- func (fake *FakeCursor) AllArgsForCall(i int) (context.Context, interface{})
- func (fake *FakeCursor) AllCallCount() int
- func (fake *FakeCursor) AllCalls(stub func(context.Context, interface{}) error)
- func (fake *FakeCursor) AllReturns(result1 error)
- func (fake *FakeCursor) AllReturnsOnCall(i int, result1 error)
- func (fake *FakeCursor) Close(arg1 context.Context) error
- func (fake *FakeCursor) CloseArgsForCall(i int) context.Context
- func (fake *FakeCursor) CloseCallCount() int
- func (fake *FakeCursor) CloseCalls(stub func(context.Context) error)
- func (fake *FakeCursor) CloseReturns(result1 error)
- func (fake *FakeCursor) CloseReturnsOnCall(i int, result1 error)
- func (fake *FakeCursor) Invocations() map[string][][]interface{}
- type FakeDatabase
- func (fake *FakeDatabase) Collection(arg1 string) mongodb.Collection
- func (fake *FakeDatabase) CollectionArgsForCall(i int) string
- func (fake *FakeDatabase) CollectionCallCount() int
- func (fake *FakeDatabase) CollectionCalls(stub func(string) mongodb.Collection)
- func (fake *FakeDatabase) CollectionReturns(result1 mongodb.Collection)
- func (fake *FakeDatabase) CollectionReturnsOnCall(i int, result1 mongodb.Collection)
- func (fake *FakeDatabase) Invocations() map[string][][]interface{}
- type FakeMongoDB
- func (fake *FakeMongoDB) Close(arg1 context.Context) error
- func (fake *FakeMongoDB) CloseArgsForCall(i int) context.Context
- func (fake *FakeMongoDB) CloseCallCount() int
- func (fake *FakeMongoDB) CloseCalls(stub func(context.Context) error)
- func (fake *FakeMongoDB) CloseReturns(result1 error)
- func (fake *FakeMongoDB) CloseReturnsOnCall(i int, result1 error)
- func (fake *FakeMongoDB) Delete(arg1 context.Context, arg2 string, arg3 string, arg4 interface{}) error
- func (fake *FakeMongoDB) DeleteArgsForCall(i int) (context.Context, string, string, interface{})
- func (fake *FakeMongoDB) DeleteCallCount() int
- func (fake *FakeMongoDB) DeleteCalls(stub func(context.Context, string, string, interface{}) error)
- func (fake *FakeMongoDB) DeleteReturns(result1 error)
- func (fake *FakeMongoDB) DeleteReturnsOnCall(i int, result1 error)
- func (fake *FakeMongoDB) GetAll(arg1 context.Context, arg2 string, arg3 string, arg4 interface{}) error
- func (fake *FakeMongoDB) GetAllArgsForCall(i int) (context.Context, string, string, interface{})
- func (fake *FakeMongoDB) GetAllCallCount() int
- func (fake *FakeMongoDB) GetAllCalls(stub func(context.Context, string, string, interface{}) error)
- func (fake *FakeMongoDB) GetAllReturns(result1 error)
- func (fake *FakeMongoDB) GetAllReturnsOnCall(i int, result1 error)
- func (fake *FakeMongoDB) Invocations() map[string][][]interface{}
- func (fake *FakeMongoDB) Put(arg1 context.Context, arg2 string, arg3 string, arg4 interface{}, ...) error
- func (fake *FakeMongoDB) PutArgsForCall(i int) (context.Context, string, string, interface{}, interface{})
- func (fake *FakeMongoDB) PutCallCount() int
- func (fake *FakeMongoDB) PutCalls(stub func(context.Context, string, string, interface{}, interface{}) error)
- func (fake *FakeMongoDB) PutReturns(result1 error)
- func (fake *FakeMongoDB) PutReturnsOnCall(i int, result1 error)
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) 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) FindArgsForCall ¶
func (fake *FakeCollection) FindArgsForCall(i int) (context.Context, interface{})
func (*FakeCollection) FindCallCount ¶
func (fake *FakeCollection) FindCallCount() int
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) 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) 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) 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) DeleteArgsForCall ¶
func (*FakeMongoDB) DeleteCallCount ¶
func (fake *FakeMongoDB) DeleteCallCount() int
func (*FakeMongoDB) DeleteCalls ¶
func (*FakeMongoDB) DeleteReturns ¶
func (fake *FakeMongoDB) DeleteReturns(result1 error)
func (*FakeMongoDB) DeleteReturnsOnCall ¶
func (fake *FakeMongoDB) DeleteReturnsOnCall(i int, result1 error)
func (*FakeMongoDB) GetAllArgsForCall ¶
func (*FakeMongoDB) GetAllCallCount ¶
func (fake *FakeMongoDB) GetAllCallCount() int
func (*FakeMongoDB) GetAllCalls ¶
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) PutArgsForCall ¶
func (*FakeMongoDB) PutCallCount ¶
func (fake *FakeMongoDB) PutCallCount() int
func (*FakeMongoDB) PutReturns ¶
func (fake *FakeMongoDB) PutReturns(result1 error)
func (*FakeMongoDB) PutReturnsOnCall ¶
func (fake *FakeMongoDB) PutReturnsOnCall(i int, result1 error)
Click to show internal directories.
Click to hide internal directories.