mock.go 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: go-common/app/job/main/figure-timer/dao (interfaces: DaoInt)
  3. // Package mock_dao is a generated GoMock package.
  4. package mock_dao
  5. import (
  6. context "context"
  7. model "go-common/app/job/main/figure-timer/model"
  8. reflect "reflect"
  9. gomock "github.com/golang/mock/gomock"
  10. )
  11. // MockDaoInt is a mock of DaoInt interface
  12. type MockDaoInt struct {
  13. ctrl *gomock.Controller
  14. recorder *MockDaoIntMockRecorder
  15. }
  16. // MockDaoIntMockRecorder is the mock recorder for MockDaoInt
  17. type MockDaoIntMockRecorder struct {
  18. mock *MockDaoInt
  19. }
  20. // NewMockDaoInt creates a new mock instance
  21. func NewMockDaoInt(ctrl *gomock.Controller) *MockDaoInt {
  22. mock := &MockDaoInt{ctrl: ctrl}
  23. mock.recorder = &MockDaoIntMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use
  27. func (m *MockDaoInt) EXPECT() *MockDaoIntMockRecorder {
  28. return m.recorder
  29. }
  30. // ActionCounter mocks base method
  31. func (m *MockDaoInt) ActionCounter(arg0 context.Context, arg1, arg2 int64) (*model.ActionCounter, error) {
  32. ret := m.ctrl.Call(m, "ActionCounter", arg0, arg1, arg2)
  33. ret0, _ := ret[0].(*model.ActionCounter)
  34. ret1, _ := ret[1].(error)
  35. return ret0, ret1
  36. }
  37. // ActionCounter indicates an expected call of ActionCounter
  38. func (mr *MockDaoIntMockRecorder) ActionCounter(arg0, arg1, arg2 interface{}) *gomock.Call {
  39. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActionCounter", reflect.TypeOf((*MockDaoInt)(nil).ActionCounter), arg0, arg1, arg2)
  40. }
  41. // CalcRecords mocks base method
  42. func (m *MockDaoInt) CalcRecords(arg0 context.Context, arg1, arg2, arg3 int64) ([]*model.FigureRecord, error) {
  43. ret := m.ctrl.Call(m, "CalcRecords", arg0, arg1, arg2, arg3)
  44. ret0, _ := ret[0].([]*model.FigureRecord)
  45. ret1, _ := ret[1].(error)
  46. return ret0, ret1
  47. }
  48. // CalcRecords indicates an expected call of CalcRecords
  49. func (mr *MockDaoIntMockRecorder) CalcRecords(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  50. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CalcRecords", reflect.TypeOf((*MockDaoInt)(nil).CalcRecords), arg0, arg1, arg2, arg3)
  51. }
  52. // Close mocks base method
  53. func (m *MockDaoInt) Close() {
  54. m.ctrl.Call(m, "Close")
  55. }
  56. // Close indicates an expected call of Close
  57. func (mr *MockDaoIntMockRecorder) Close() *gomock.Call {
  58. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockDaoInt)(nil).Close))
  59. }
  60. // Figure mocks base method
  61. func (m *MockDaoInt) Figure(arg0 context.Context, arg1 int64) (*model.Figure, error) {
  62. ret := m.ctrl.Call(m, "Figure", arg0, arg1)
  63. ret0, _ := ret[0].(*model.Figure)
  64. ret1, _ := ret[1].(error)
  65. return ret0, ret1
  66. }
  67. // Figure indicates an expected call of Figure
  68. func (mr *MockDaoIntMockRecorder) Figure(arg0, arg1 interface{}) *gomock.Call {
  69. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Figure", reflect.TypeOf((*MockDaoInt)(nil).Figure), arg0, arg1)
  70. }
  71. // FigureCache mocks base method
  72. func (m *MockDaoInt) FigureCache(arg0 context.Context, arg1 int64) (*model.Figure, error) {
  73. ret := m.ctrl.Call(m, "FigureCache", arg0, arg1)
  74. ret0, _ := ret[0].(*model.Figure)
  75. ret1, _ := ret[1].(error)
  76. return ret0, ret1
  77. }
  78. // FigureCache indicates an expected call of FigureCache
  79. func (mr *MockDaoIntMockRecorder) FigureCache(arg0, arg1 interface{}) *gomock.Call {
  80. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FigureCache", reflect.TypeOf((*MockDaoInt)(nil).FigureCache), arg0, arg1)
  81. }
  82. // Figures mocks base method
  83. func (m *MockDaoInt) Figures(arg0 context.Context, arg1 int64, arg2 int) ([]*model.Figure, bool, error) {
  84. ret := m.ctrl.Call(m, "Figures", arg0, arg1, arg2)
  85. ret0, _ := ret[0].([]*model.Figure)
  86. ret1, _ := ret[1].(bool)
  87. ret2, _ := ret[2].(error)
  88. return ret0, ret1, ret2
  89. }
  90. // Figures indicates an expected call of Figures
  91. func (mr *MockDaoIntMockRecorder) Figures(arg0, arg1, arg2 interface{}) *gomock.Call {
  92. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Figures", reflect.TypeOf((*MockDaoInt)(nil).Figures), arg0, arg1, arg2)
  93. }
  94. // InsertRankHistory mocks base method
  95. func (m *MockDaoInt) InsertRankHistory(arg0 context.Context, arg1 *model.Rank) (int64, error) {
  96. ret := m.ctrl.Call(m, "InsertRankHistory", arg0, arg1)
  97. ret0, _ := ret[0].(int64)
  98. ret1, _ := ret[1].(error)
  99. return ret0, ret1
  100. }
  101. // InsertRankHistory indicates an expected call of InsertRankHistory
  102. func (mr *MockDaoIntMockRecorder) InsertRankHistory(arg0, arg1 interface{}) *gomock.Call {
  103. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertRankHistory", reflect.TypeOf((*MockDaoInt)(nil).InsertRankHistory), arg0, arg1)
  104. }
  105. // PendingMidsCache mocks base method
  106. func (m *MockDaoInt) PendingMidsCache(arg0 context.Context, arg1, arg2 int64) ([]int64, error) {
  107. ret := m.ctrl.Call(m, "PendingMidsCache", arg0, arg1, arg2)
  108. ret0, _ := ret[0].([]int64)
  109. ret1, _ := ret[1].(error)
  110. return ret0, ret1
  111. }
  112. // PendingMidsCache indicates an expected call of PendingMidsCache
  113. func (mr *MockDaoIntMockRecorder) PendingMidsCache(arg0, arg1, arg2 interface{}) *gomock.Call {
  114. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PendingMidsCache", reflect.TypeOf((*MockDaoInt)(nil).PendingMidsCache), arg0, arg1, arg2)
  115. }
  116. // Ping mocks base method
  117. func (m *MockDaoInt) Ping(arg0 context.Context) error {
  118. ret := m.ctrl.Call(m, "Ping", arg0)
  119. ret0, _ := ret[0].(error)
  120. return ret0
  121. }
  122. // Ping indicates an expected call of Ping
  123. func (mr *MockDaoIntMockRecorder) Ping(arg0 interface{}) *gomock.Call {
  124. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ping", reflect.TypeOf((*MockDaoInt)(nil).Ping), arg0)
  125. }
  126. // PutCalcRecord mocks base method
  127. func (m *MockDaoInt) PutCalcRecord(arg0 context.Context, arg1 *model.FigureRecord, arg2 int64) error {
  128. ret := m.ctrl.Call(m, "PutCalcRecord", arg0, arg1, arg2)
  129. ret0, _ := ret[0].(error)
  130. return ret0
  131. }
  132. // PutCalcRecord indicates an expected call of PutCalcRecord
  133. func (mr *MockDaoIntMockRecorder) PutCalcRecord(arg0, arg1, arg2 interface{}) *gomock.Call {
  134. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutCalcRecord", reflect.TypeOf((*MockDaoInt)(nil).PutCalcRecord), arg0, arg1, arg2)
  135. }
  136. // RemoveCache mocks base method
  137. func (m *MockDaoInt) RemoveCache(arg0 context.Context, arg1 int64) error {
  138. ret := m.ctrl.Call(m, "RemoveCache", arg0, arg1)
  139. ret0, _ := ret[0].(error)
  140. return ret0
  141. }
  142. // RemoveCache indicates an expected call of RemoveCache
  143. func (mr *MockDaoIntMockRecorder) RemoveCache(arg0, arg1 interface{}) *gomock.Call {
  144. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveCache", reflect.TypeOf((*MockDaoInt)(nil).RemoveCache), arg0, arg1)
  145. }
  146. // SetFigureCache mocks base method
  147. func (m *MockDaoInt) SetFigureCache(arg0 context.Context, arg1 *model.Figure) error {
  148. ret := m.ctrl.Call(m, "SetFigureCache", arg0, arg1)
  149. ret0, _ := ret[0].(error)
  150. return ret0
  151. }
  152. // SetFigureCache indicates an expected call of SetFigureCache
  153. func (mr *MockDaoIntMockRecorder) SetFigureCache(arg0, arg1 interface{}) *gomock.Call {
  154. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFigureCache", reflect.TypeOf((*MockDaoInt)(nil).SetFigureCache), arg0, arg1)
  155. }
  156. // UpsertFigure mocks base method
  157. func (m *MockDaoInt) UpsertFigure(arg0 context.Context, arg1 *model.Figure) (int64, error) {
  158. ret := m.ctrl.Call(m, "UpsertFigure", arg0, arg1)
  159. ret0, _ := ret[0].(int64)
  160. ret1, _ := ret[1].(error)
  161. return ret0, ret1
  162. }
  163. // UpsertFigure indicates an expected call of UpsertFigure
  164. func (mr *MockDaoIntMockRecorder) UpsertFigure(arg0, arg1 interface{}) *gomock.Call {
  165. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertFigure", reflect.TypeOf((*MockDaoInt)(nil).UpsertFigure), arg0, arg1)
  166. }
  167. // UpsertRank mocks base method
  168. func (m *MockDaoInt) UpsertRank(arg0 context.Context, arg1 *model.Rank) (int64, error) {
  169. ret := m.ctrl.Call(m, "UpsertRank", arg0, arg1)
  170. ret0, _ := ret[0].(int64)
  171. ret1, _ := ret[1].(error)
  172. return ret0, ret1
  173. }
  174. // UpsertRank indicates an expected call of UpsertRank
  175. func (mr *MockDaoIntMockRecorder) UpsertRank(arg0, arg1 interface{}) *gomock.Call {
  176. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertRank", reflect.TypeOf((*MockDaoInt)(nil).UpsertRank), arg0, arg1)
  177. }
  178. // UserInfo mocks base method
  179. func (m *MockDaoInt) UserInfo(arg0 context.Context, arg1, arg2 int64) (*model.UserInfo, error) {
  180. ret := m.ctrl.Call(m, "UserInfo", arg0, arg1, arg2)
  181. ret0, _ := ret[0].(*model.UserInfo)
  182. ret1, _ := ret[1].(error)
  183. return ret0, ret1
  184. }
  185. // UserInfo indicates an expected call of UserInfo
  186. func (mr *MockDaoIntMockRecorder) UserInfo(arg0, arg1, arg2 interface{}) *gomock.Call {
  187. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserInfo", reflect.TypeOf((*MockDaoInt)(nil).UserInfo), arg0, arg1, arg2)
  188. }