|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: iter.go
|
|
|
|
|
|
|
|
// Package mongo is a generated GoMock package.
|
|
|
|
package mongo
|
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
|
|
|
|
|
|
|
bson "github.com/globalsign/mgo/bson"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockIter is a mock of Iter interface
|
|
|
|
type MockIter struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockIterMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockIterMockRecorder is the mock recorder for MockIter
|
|
|
|
type MockIterMockRecorder struct {
|
|
|
|
mock *MockIter
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockIter creates a new mock instance
|
|
|
|
func NewMockIter(ctrl *gomock.Controller) *MockIter {
|
|
|
|
mock := &MockIter{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockIterMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockIter) EXPECT() *MockIterMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// All mocks base method
|
|
|
|
func (m *MockIter) All(result interface{}) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "All", result)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// All indicates an expected call of All
|
|
|
|
func (mr *MockIterMockRecorder) All(result interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "All", reflect.TypeOf((*MockIter)(nil).All), result)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close mocks base method
|
|
|
|
func (m *MockIter) Close() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Close")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close indicates an expected call of Close
|
|
|
|
func (mr *MockIterMockRecorder) Close() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIter)(nil).Close))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Done mocks base method
|
|
|
|
func (m *MockIter) Done() bool {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Done")
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Done indicates an expected call of Done
|
|
|
|
func (mr *MockIterMockRecorder) Done() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockIter)(nil).Done))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Err mocks base method
|
|
|
|
func (m *MockIter) Err() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Err")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Err indicates an expected call of Err
|
|
|
|
func (mr *MockIterMockRecorder) Err() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockIter)(nil).Err))
|
|
|
|
}
|
|
|
|
|
|
|
|
// For mocks base method
|
|
|
|
func (m *MockIter) For(result interface{}, f func() error) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "For", result, f)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// For indicates an expected call of For
|
|
|
|
func (mr *MockIterMockRecorder) For(result, f interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "For", reflect.TypeOf((*MockIter)(nil).For), result, f)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Next mocks base method
|
|
|
|
func (m *MockIter) Next(result interface{}) bool {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Next", result)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Next indicates an expected call of Next
|
|
|
|
func (mr *MockIterMockRecorder) Next(result interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIter)(nil).Next), result)
|
|
|
|
}
|
|
|
|
|
|
|
|
// State mocks base method
|
|
|
|
func (m *MockIter) State() (int64, []bson.Raw) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "State")
|
|
|
|
ret0, _ := ret[0].(int64)
|
|
|
|
ret1, _ := ret[1].([]bson.Raw)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// State indicates an expected call of State
|
|
|
|
func (mr *MockIterMockRecorder) State() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "State", reflect.TypeOf((*MockIter)(nil).State))
|
|
|
|
}
|
|
|
|
|
|
|
|
// Timeout mocks base method
|
|
|
|
func (m *MockIter) Timeout() bool {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Timeout")
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Timeout indicates an expected call of Timeout
|
|
|
|
func (mr *MockIterMockRecorder) Timeout() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timeout", reflect.TypeOf((*MockIter)(nil).Timeout))
|
|
|
|
}
|