You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

421 lines
11 KiB

  1. // Code generated by mockery. DO NOT EDIT.
  2. package mocks
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  6. types "github.com/tendermint/tendermint/abci/types"
  7. )
  8. // Client is an autogenerated mock type for the Client type
  9. type Client struct {
  10. mock.Mock
  11. }
  12. // ApplySnapshotChunk provides a mock function with given fields: _a0, _a1
  13. func (_m *Client) ApplySnapshotChunk(_a0 context.Context, _a1 types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) {
  14. ret := _m.Called(_a0, _a1)
  15. var r0 *types.ResponseApplySnapshotChunk
  16. if rf, ok := ret.Get(0).(func(context.Context, types.RequestApplySnapshotChunk) *types.ResponseApplySnapshotChunk); ok {
  17. r0 = rf(_a0, _a1)
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).(*types.ResponseApplySnapshotChunk)
  21. }
  22. }
  23. var r1 error
  24. if rf, ok := ret.Get(1).(func(context.Context, types.RequestApplySnapshotChunk) error); ok {
  25. r1 = rf(_a0, _a1)
  26. } else {
  27. r1 = ret.Error(1)
  28. }
  29. return r0, r1
  30. }
  31. // CheckTx provides a mock function with given fields: _a0, _a1
  32. func (_m *Client) CheckTx(_a0 context.Context, _a1 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
  33. ret := _m.Called(_a0, _a1)
  34. var r0 *types.ResponseCheckTx
  35. if rf, ok := ret.Get(0).(func(context.Context, types.RequestCheckTx) *types.ResponseCheckTx); ok {
  36. r0 = rf(_a0, _a1)
  37. } else {
  38. if ret.Get(0) != nil {
  39. r0 = ret.Get(0).(*types.ResponseCheckTx)
  40. }
  41. }
  42. var r1 error
  43. if rf, ok := ret.Get(1).(func(context.Context, types.RequestCheckTx) error); ok {
  44. r1 = rf(_a0, _a1)
  45. } else {
  46. r1 = ret.Error(1)
  47. }
  48. return r0, r1
  49. }
  50. // Commit provides a mock function with given fields: _a0
  51. func (_m *Client) Commit(_a0 context.Context) (*types.ResponseCommit, error) {
  52. ret := _m.Called(_a0)
  53. var r0 *types.ResponseCommit
  54. if rf, ok := ret.Get(0).(func(context.Context) *types.ResponseCommit); ok {
  55. r0 = rf(_a0)
  56. } else {
  57. if ret.Get(0) != nil {
  58. r0 = ret.Get(0).(*types.ResponseCommit)
  59. }
  60. }
  61. var r1 error
  62. if rf, ok := ret.Get(1).(func(context.Context) error); ok {
  63. r1 = rf(_a0)
  64. } else {
  65. r1 = ret.Error(1)
  66. }
  67. return r0, r1
  68. }
  69. // Echo provides a mock function with given fields: ctx, msg
  70. func (_m *Client) Echo(ctx context.Context, msg string) (*types.ResponseEcho, error) {
  71. ret := _m.Called(ctx, msg)
  72. var r0 *types.ResponseEcho
  73. if rf, ok := ret.Get(0).(func(context.Context, string) *types.ResponseEcho); ok {
  74. r0 = rf(ctx, msg)
  75. } else {
  76. if ret.Get(0) != nil {
  77. r0 = ret.Get(0).(*types.ResponseEcho)
  78. }
  79. }
  80. var r1 error
  81. if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
  82. r1 = rf(ctx, msg)
  83. } else {
  84. r1 = ret.Error(1)
  85. }
  86. return r0, r1
  87. }
  88. // Error provides a mock function with given fields:
  89. func (_m *Client) Error() error {
  90. ret := _m.Called()
  91. var r0 error
  92. if rf, ok := ret.Get(0).(func() error); ok {
  93. r0 = rf()
  94. } else {
  95. r0 = ret.Error(0)
  96. }
  97. return r0
  98. }
  99. // ExtendVote provides a mock function with given fields: _a0, _a1
  100. func (_m *Client) ExtendVote(_a0 context.Context, _a1 types.RequestExtendVote) (*types.ResponseExtendVote, error) {
  101. ret := _m.Called(_a0, _a1)
  102. var r0 *types.ResponseExtendVote
  103. if rf, ok := ret.Get(0).(func(context.Context, types.RequestExtendVote) *types.ResponseExtendVote); ok {
  104. r0 = rf(_a0, _a1)
  105. } else {
  106. if ret.Get(0) != nil {
  107. r0 = ret.Get(0).(*types.ResponseExtendVote)
  108. }
  109. }
  110. var r1 error
  111. if rf, ok := ret.Get(1).(func(context.Context, types.RequestExtendVote) error); ok {
  112. r1 = rf(_a0, _a1)
  113. } else {
  114. r1 = ret.Error(1)
  115. }
  116. return r0, r1
  117. }
  118. // FinalizeBlock provides a mock function with given fields: _a0, _a1
  119. func (_m *Client) FinalizeBlock(_a0 context.Context, _a1 types.RequestFinalizeBlock) (*types.ResponseFinalizeBlock, error) {
  120. ret := _m.Called(_a0, _a1)
  121. var r0 *types.ResponseFinalizeBlock
  122. if rf, ok := ret.Get(0).(func(context.Context, types.RequestFinalizeBlock) *types.ResponseFinalizeBlock); ok {
  123. r0 = rf(_a0, _a1)
  124. } else {
  125. if ret.Get(0) != nil {
  126. r0 = ret.Get(0).(*types.ResponseFinalizeBlock)
  127. }
  128. }
  129. var r1 error
  130. if rf, ok := ret.Get(1).(func(context.Context, types.RequestFinalizeBlock) error); ok {
  131. r1 = rf(_a0, _a1)
  132. } else {
  133. r1 = ret.Error(1)
  134. }
  135. return r0, r1
  136. }
  137. // Flush provides a mock function with given fields: _a0
  138. func (_m *Client) Flush(_a0 context.Context) error {
  139. ret := _m.Called(_a0)
  140. var r0 error
  141. if rf, ok := ret.Get(0).(func(context.Context) error); ok {
  142. r0 = rf(_a0)
  143. } else {
  144. r0 = ret.Error(0)
  145. }
  146. return r0
  147. }
  148. // Info provides a mock function with given fields: _a0, _a1
  149. func (_m *Client) Info(_a0 context.Context, _a1 types.RequestInfo) (*types.ResponseInfo, error) {
  150. ret := _m.Called(_a0, _a1)
  151. var r0 *types.ResponseInfo
  152. if rf, ok := ret.Get(0).(func(context.Context, types.RequestInfo) *types.ResponseInfo); ok {
  153. r0 = rf(_a0, _a1)
  154. } else {
  155. if ret.Get(0) != nil {
  156. r0 = ret.Get(0).(*types.ResponseInfo)
  157. }
  158. }
  159. var r1 error
  160. if rf, ok := ret.Get(1).(func(context.Context, types.RequestInfo) error); ok {
  161. r1 = rf(_a0, _a1)
  162. } else {
  163. r1 = ret.Error(1)
  164. }
  165. return r0, r1
  166. }
  167. // InitChain provides a mock function with given fields: _a0, _a1
  168. func (_m *Client) InitChain(_a0 context.Context, _a1 types.RequestInitChain) (*types.ResponseInitChain, error) {
  169. ret := _m.Called(_a0, _a1)
  170. var r0 *types.ResponseInitChain
  171. if rf, ok := ret.Get(0).(func(context.Context, types.RequestInitChain) *types.ResponseInitChain); ok {
  172. r0 = rf(_a0, _a1)
  173. } else {
  174. if ret.Get(0) != nil {
  175. r0 = ret.Get(0).(*types.ResponseInitChain)
  176. }
  177. }
  178. var r1 error
  179. if rf, ok := ret.Get(1).(func(context.Context, types.RequestInitChain) error); ok {
  180. r1 = rf(_a0, _a1)
  181. } else {
  182. r1 = ret.Error(1)
  183. }
  184. return r0, r1
  185. }
  186. // IsRunning provides a mock function with given fields:
  187. func (_m *Client) IsRunning() bool {
  188. ret := _m.Called()
  189. var r0 bool
  190. if rf, ok := ret.Get(0).(func() bool); ok {
  191. r0 = rf()
  192. } else {
  193. r0 = ret.Get(0).(bool)
  194. }
  195. return r0
  196. }
  197. // ListSnapshots provides a mock function with given fields: _a0, _a1
  198. func (_m *Client) ListSnapshots(_a0 context.Context, _a1 types.RequestListSnapshots) (*types.ResponseListSnapshots, error) {
  199. ret := _m.Called(_a0, _a1)
  200. var r0 *types.ResponseListSnapshots
  201. if rf, ok := ret.Get(0).(func(context.Context, types.RequestListSnapshots) *types.ResponseListSnapshots); ok {
  202. r0 = rf(_a0, _a1)
  203. } else {
  204. if ret.Get(0) != nil {
  205. r0 = ret.Get(0).(*types.ResponseListSnapshots)
  206. }
  207. }
  208. var r1 error
  209. if rf, ok := ret.Get(1).(func(context.Context, types.RequestListSnapshots) error); ok {
  210. r1 = rf(_a0, _a1)
  211. } else {
  212. r1 = ret.Error(1)
  213. }
  214. return r0, r1
  215. }
  216. // LoadSnapshotChunk provides a mock function with given fields: _a0, _a1
  217. func (_m *Client) LoadSnapshotChunk(_a0 context.Context, _a1 types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) {
  218. ret := _m.Called(_a0, _a1)
  219. var r0 *types.ResponseLoadSnapshotChunk
  220. if rf, ok := ret.Get(0).(func(context.Context, types.RequestLoadSnapshotChunk) *types.ResponseLoadSnapshotChunk); ok {
  221. r0 = rf(_a0, _a1)
  222. } else {
  223. if ret.Get(0) != nil {
  224. r0 = ret.Get(0).(*types.ResponseLoadSnapshotChunk)
  225. }
  226. }
  227. var r1 error
  228. if rf, ok := ret.Get(1).(func(context.Context, types.RequestLoadSnapshotChunk) error); ok {
  229. r1 = rf(_a0, _a1)
  230. } else {
  231. r1 = ret.Error(1)
  232. }
  233. return r0, r1
  234. }
  235. // OfferSnapshot provides a mock function with given fields: _a0, _a1
  236. func (_m *Client) OfferSnapshot(_a0 context.Context, _a1 types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) {
  237. ret := _m.Called(_a0, _a1)
  238. var r0 *types.ResponseOfferSnapshot
  239. if rf, ok := ret.Get(0).(func(context.Context, types.RequestOfferSnapshot) *types.ResponseOfferSnapshot); ok {
  240. r0 = rf(_a0, _a1)
  241. } else {
  242. if ret.Get(0) != nil {
  243. r0 = ret.Get(0).(*types.ResponseOfferSnapshot)
  244. }
  245. }
  246. var r1 error
  247. if rf, ok := ret.Get(1).(func(context.Context, types.RequestOfferSnapshot) error); ok {
  248. r1 = rf(_a0, _a1)
  249. } else {
  250. r1 = ret.Error(1)
  251. }
  252. return r0, r1
  253. }
  254. // PrepareProposal provides a mock function with given fields: _a0, _a1
  255. func (_m *Client) PrepareProposal(_a0 context.Context, _a1 types.RequestPrepareProposal) (*types.ResponsePrepareProposal, error) {
  256. ret := _m.Called(_a0, _a1)
  257. var r0 *types.ResponsePrepareProposal
  258. if rf, ok := ret.Get(0).(func(context.Context, types.RequestPrepareProposal) *types.ResponsePrepareProposal); ok {
  259. r0 = rf(_a0, _a1)
  260. } else {
  261. if ret.Get(0) != nil {
  262. r0 = ret.Get(0).(*types.ResponsePrepareProposal)
  263. }
  264. }
  265. var r1 error
  266. if rf, ok := ret.Get(1).(func(context.Context, types.RequestPrepareProposal) error); ok {
  267. r1 = rf(_a0, _a1)
  268. } else {
  269. r1 = ret.Error(1)
  270. }
  271. return r0, r1
  272. }
  273. // ProcessProposal provides a mock function with given fields: _a0, _a1
  274. func (_m *Client) ProcessProposal(_a0 context.Context, _a1 types.RequestProcessProposal) (*types.ResponseProcessProposal, error) {
  275. ret := _m.Called(_a0, _a1)
  276. var r0 *types.ResponseProcessProposal
  277. if rf, ok := ret.Get(0).(func(context.Context, types.RequestProcessProposal) *types.ResponseProcessProposal); ok {
  278. r0 = rf(_a0, _a1)
  279. } else {
  280. if ret.Get(0) != nil {
  281. r0 = ret.Get(0).(*types.ResponseProcessProposal)
  282. }
  283. }
  284. var r1 error
  285. if rf, ok := ret.Get(1).(func(context.Context, types.RequestProcessProposal) error); ok {
  286. r1 = rf(_a0, _a1)
  287. } else {
  288. r1 = ret.Error(1)
  289. }
  290. return r0, r1
  291. }
  292. // Query provides a mock function with given fields: _a0, _a1
  293. func (_m *Client) Query(_a0 context.Context, _a1 types.RequestQuery) (*types.ResponseQuery, error) {
  294. ret := _m.Called(_a0, _a1)
  295. var r0 *types.ResponseQuery
  296. if rf, ok := ret.Get(0).(func(context.Context, types.RequestQuery) *types.ResponseQuery); ok {
  297. r0 = rf(_a0, _a1)
  298. } else {
  299. if ret.Get(0) != nil {
  300. r0 = ret.Get(0).(*types.ResponseQuery)
  301. }
  302. }
  303. var r1 error
  304. if rf, ok := ret.Get(1).(func(context.Context, types.RequestQuery) error); ok {
  305. r1 = rf(_a0, _a1)
  306. } else {
  307. r1 = ret.Error(1)
  308. }
  309. return r0, r1
  310. }
  311. // Start provides a mock function with given fields: _a0
  312. func (_m *Client) Start(_a0 context.Context) error {
  313. ret := _m.Called(_a0)
  314. var r0 error
  315. if rf, ok := ret.Get(0).(func(context.Context) error); ok {
  316. r0 = rf(_a0)
  317. } else {
  318. r0 = ret.Error(0)
  319. }
  320. return r0
  321. }
  322. // VerifyVoteExtension provides a mock function with given fields: _a0, _a1
  323. func (_m *Client) VerifyVoteExtension(_a0 context.Context, _a1 types.RequestVerifyVoteExtension) (*types.ResponseVerifyVoteExtension, error) {
  324. ret := _m.Called(_a0, _a1)
  325. var r0 *types.ResponseVerifyVoteExtension
  326. if rf, ok := ret.Get(0).(func(context.Context, types.RequestVerifyVoteExtension) *types.ResponseVerifyVoteExtension); ok {
  327. r0 = rf(_a0, _a1)
  328. } else {
  329. if ret.Get(0) != nil {
  330. r0 = ret.Get(0).(*types.ResponseVerifyVoteExtension)
  331. }
  332. }
  333. var r1 error
  334. if rf, ok := ret.Get(1).(func(context.Context, types.RequestVerifyVoteExtension) error); ok {
  335. r1 = rf(_a0, _a1)
  336. } else {
  337. r1 = ret.Error(1)
  338. }
  339. return r0, r1
  340. }
  341. // Wait provides a mock function with given fields:
  342. func (_m *Client) Wait() {
  343. _m.Called()
  344. }