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.

489 lines
12 KiB

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