iter_mock.go 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: iter.go
  3. // Package mongo is a generated GoMock package.
  4. package mongo
  5. import (
  6. bson "github.com/globalsign/mgo/bson"
  7. gomock "github.com/golang/mock/gomock"
  8. reflect "reflect"
  9. )
  10. // MockIter is a mock of Iter interface
  11. type MockIter struct {
  12. ctrl *gomock.Controller
  13. recorder *MockIterMockRecorder
  14. }
  15. // MockIterMockRecorder is the mock recorder for MockIter
  16. type MockIterMockRecorder struct {
  17. mock *MockIter
  18. }
  19. // NewMockIter creates a new mock instance
  20. func NewMockIter(ctrl *gomock.Controller) *MockIter {
  21. mock := &MockIter{ctrl: ctrl}
  22. mock.recorder = &MockIterMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use
  26. func (m *MockIter) EXPECT() *MockIterMockRecorder {
  27. return m.recorder
  28. }
  29. // All mocks base method
  30. func (m *MockIter) All(result interface{}) error {
  31. m.ctrl.T.Helper()
  32. ret := m.ctrl.Call(m, "All", result)
  33. ret0, _ := ret[0].(error)
  34. return ret0
  35. }
  36. // All indicates an expected call of All
  37. func (mr *MockIterMockRecorder) All(result interface{}) *gomock.Call {
  38. mr.mock.ctrl.T.Helper()
  39. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "All", reflect.TypeOf((*MockIter)(nil).All), result)
  40. }
  41. // Close mocks base method
  42. func (m *MockIter) Close() error {
  43. m.ctrl.T.Helper()
  44. ret := m.ctrl.Call(m, "Close")
  45. ret0, _ := ret[0].(error)
  46. return ret0
  47. }
  48. // Close indicates an expected call of Close
  49. func (mr *MockIterMockRecorder) Close() *gomock.Call {
  50. mr.mock.ctrl.T.Helper()
  51. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockIter)(nil).Close))
  52. }
  53. // Done mocks base method
  54. func (m *MockIter) Done() bool {
  55. m.ctrl.T.Helper()
  56. ret := m.ctrl.Call(m, "Done")
  57. ret0, _ := ret[0].(bool)
  58. return ret0
  59. }
  60. // Done indicates an expected call of Done
  61. func (mr *MockIterMockRecorder) Done() *gomock.Call {
  62. mr.mock.ctrl.T.Helper()
  63. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockIter)(nil).Done))
  64. }
  65. // Err mocks base method
  66. func (m *MockIter) Err() error {
  67. m.ctrl.T.Helper()
  68. ret := m.ctrl.Call(m, "Err")
  69. ret0, _ := ret[0].(error)
  70. return ret0
  71. }
  72. // Err indicates an expected call of Err
  73. func (mr *MockIterMockRecorder) Err() *gomock.Call {
  74. mr.mock.ctrl.T.Helper()
  75. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockIter)(nil).Err))
  76. }
  77. // For mocks base method
  78. func (m *MockIter) For(result interface{}, f func() error) error {
  79. m.ctrl.T.Helper()
  80. ret := m.ctrl.Call(m, "For", result, f)
  81. ret0, _ := ret[0].(error)
  82. return ret0
  83. }
  84. // For indicates an expected call of For
  85. func (mr *MockIterMockRecorder) For(result, f interface{}) *gomock.Call {
  86. mr.mock.ctrl.T.Helper()
  87. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "For", reflect.TypeOf((*MockIter)(nil).For), result, f)
  88. }
  89. // Next mocks base method
  90. func (m *MockIter) Next(result interface{}) bool {
  91. m.ctrl.T.Helper()
  92. ret := m.ctrl.Call(m, "Next", result)
  93. ret0, _ := ret[0].(bool)
  94. return ret0
  95. }
  96. // Next indicates an expected call of Next
  97. func (mr *MockIterMockRecorder) Next(result interface{}) *gomock.Call {
  98. mr.mock.ctrl.T.Helper()
  99. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockIter)(nil).Next), result)
  100. }
  101. // State mocks base method
  102. func (m *MockIter) State() (int64, []bson.Raw) {
  103. m.ctrl.T.Helper()
  104. ret := m.ctrl.Call(m, "State")
  105. ret0, _ := ret[0].(int64)
  106. ret1, _ := ret[1].([]bson.Raw)
  107. return ret0, ret1
  108. }
  109. // State indicates an expected call of State
  110. func (mr *MockIterMockRecorder) State() *gomock.Call {
  111. mr.mock.ctrl.T.Helper()
  112. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "State", reflect.TypeOf((*MockIter)(nil).State))
  113. }
  114. // Timeout mocks base method
  115. func (m *MockIter) Timeout() bool {
  116. m.ctrl.T.Helper()
  117. ret := m.ctrl.Call(m, "Timeout")
  118. ret0, _ := ret[0].(bool)
  119. return ret0
  120. }
  121. // Timeout indicates an expected call of Timeout
  122. func (mr *MockIterMockRecorder) Timeout() *gomock.Call {
  123. mr.mock.ctrl.T.Helper()
  124. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timeout", reflect.TypeOf((*MockIter)(nil).Timeout))
  125. }