Documentation
¶
Overview ¶
Package mock_mongo is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Collection(arg0 string, arg1 ...*options.CollectionOptions) *mongo0.Collection
- func (m *MockClient) Connect() context.CancelFunc
- func (m *MockClient) Database() *mongo0.Database
- func (m *MockClient) DefineIndexes(arg0 ...mongo.IndexSet)
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- type MockClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) Collection ¶
func (m *MockClient) Collection(arg0 string, arg1 ...*options.CollectionOptions) *mongo0.Collection
Collection mocks base method
func (*MockClient) Connect ¶
func (m *MockClient) Connect() context.CancelFunc
Connect mocks base method
func (*MockClient) Database ¶
func (m *MockClient) Database() *mongo0.Database
Database mocks base method
func (*MockClient) DefineIndexes ¶
func (m *MockClient) DefineIndexes(arg0 ...mongo.IndexSet)
DefineIndexes mocks base method
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) Collection ¶
func (mr *MockClientMockRecorder) Collection(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Collection indicates an expected call of Collection
func (*MockClientMockRecorder) Connect ¶
func (mr *MockClientMockRecorder) Connect() *gomock.Call
Connect indicates an expected call of Connect
func (*MockClientMockRecorder) Database ¶
func (mr *MockClientMockRecorder) Database() *gomock.Call
Database indicates an expected call of Database
func (*MockClientMockRecorder) DefineIndexes ¶
func (mr *MockClientMockRecorder) DefineIndexes(arg0 ...interface{}) *gomock.Call
DefineIndexes indicates an expected call of DefineIndexes
Click to show internal directories.
Click to hide internal directories.