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.

697 lines
15 KiB

  1. // Code generated by mockery v2.3.0. DO NOT EDIT.
  2. package mocks
  3. import (
  4. abcicli "github.com/tendermint/tendermint/abci/client"
  5. log "github.com/tendermint/tendermint/libs/log"
  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. // ApplySnapshotChunkAsync provides a mock function with given fields: _a0
  14. func (_m *Client) ApplySnapshotChunkAsync(_a0 types.RequestApplySnapshotChunk) *abcicli.ReqRes {
  15. ret := _m.Called(_a0)
  16. var r0 *abcicli.ReqRes
  17. if rf, ok := ret.Get(0).(func(types.RequestApplySnapshotChunk) *abcicli.ReqRes); ok {
  18. r0 = rf(_a0)
  19. } else {
  20. if ret.Get(0) != nil {
  21. r0 = ret.Get(0).(*abcicli.ReqRes)
  22. }
  23. }
  24. return r0
  25. }
  26. // ApplySnapshotChunkSync provides a mock function with given fields: _a0
  27. func (_m *Client) ApplySnapshotChunkSync(_a0 types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) {
  28. ret := _m.Called(_a0)
  29. var r0 *types.ResponseApplySnapshotChunk
  30. if rf, ok := ret.Get(0).(func(types.RequestApplySnapshotChunk) *types.ResponseApplySnapshotChunk); ok {
  31. r0 = rf(_a0)
  32. } else {
  33. if ret.Get(0) != nil {
  34. r0 = ret.Get(0).(*types.ResponseApplySnapshotChunk)
  35. }
  36. }
  37. var r1 error
  38. if rf, ok := ret.Get(1).(func(types.RequestApplySnapshotChunk) error); ok {
  39. r1 = rf(_a0)
  40. } else {
  41. r1 = ret.Error(1)
  42. }
  43. return r0, r1
  44. }
  45. // BeginBlockAsync provides a mock function with given fields: _a0
  46. func (_m *Client) BeginBlockAsync(_a0 types.RequestBeginBlock) *abcicli.ReqRes {
  47. ret := _m.Called(_a0)
  48. var r0 *abcicli.ReqRes
  49. if rf, ok := ret.Get(0).(func(types.RequestBeginBlock) *abcicli.ReqRes); ok {
  50. r0 = rf(_a0)
  51. } else {
  52. if ret.Get(0) != nil {
  53. r0 = ret.Get(0).(*abcicli.ReqRes)
  54. }
  55. }
  56. return r0
  57. }
  58. // BeginBlockSync provides a mock function with given fields: _a0
  59. func (_m *Client) BeginBlockSync(_a0 types.RequestBeginBlock) (*types.ResponseBeginBlock, error) {
  60. ret := _m.Called(_a0)
  61. var r0 *types.ResponseBeginBlock
  62. if rf, ok := ret.Get(0).(func(types.RequestBeginBlock) *types.ResponseBeginBlock); ok {
  63. r0 = rf(_a0)
  64. } else {
  65. if ret.Get(0) != nil {
  66. r0 = ret.Get(0).(*types.ResponseBeginBlock)
  67. }
  68. }
  69. var r1 error
  70. if rf, ok := ret.Get(1).(func(types.RequestBeginBlock) error); ok {
  71. r1 = rf(_a0)
  72. } else {
  73. r1 = ret.Error(1)
  74. }
  75. return r0, r1
  76. }
  77. // CheckTxAsync provides a mock function with given fields: _a0
  78. func (_m *Client) CheckTxAsync(_a0 types.RequestCheckTx) *abcicli.ReqRes {
  79. ret := _m.Called(_a0)
  80. var r0 *abcicli.ReqRes
  81. if rf, ok := ret.Get(0).(func(types.RequestCheckTx) *abcicli.ReqRes); ok {
  82. r0 = rf(_a0)
  83. } else {
  84. if ret.Get(0) != nil {
  85. r0 = ret.Get(0).(*abcicli.ReqRes)
  86. }
  87. }
  88. return r0
  89. }
  90. // CheckTxSync provides a mock function with given fields: _a0
  91. func (_m *Client) CheckTxSync(_a0 types.RequestCheckTx) (*types.ResponseCheckTx, error) {
  92. ret := _m.Called(_a0)
  93. var r0 *types.ResponseCheckTx
  94. if rf, ok := ret.Get(0).(func(types.RequestCheckTx) *types.ResponseCheckTx); ok {
  95. r0 = rf(_a0)
  96. } else {
  97. if ret.Get(0) != nil {
  98. r0 = ret.Get(0).(*types.ResponseCheckTx)
  99. }
  100. }
  101. var r1 error
  102. if rf, ok := ret.Get(1).(func(types.RequestCheckTx) error); ok {
  103. r1 = rf(_a0)
  104. } else {
  105. r1 = ret.Error(1)
  106. }
  107. return r0, r1
  108. }
  109. // CommitAsync provides a mock function with given fields:
  110. func (_m *Client) CommitAsync() *abcicli.ReqRes {
  111. ret := _m.Called()
  112. var r0 *abcicli.ReqRes
  113. if rf, ok := ret.Get(0).(func() *abcicli.ReqRes); ok {
  114. r0 = rf()
  115. } else {
  116. if ret.Get(0) != nil {
  117. r0 = ret.Get(0).(*abcicli.ReqRes)
  118. }
  119. }
  120. return r0
  121. }
  122. // CommitSync provides a mock function with given fields:
  123. func (_m *Client) CommitSync() (*types.ResponseCommit, error) {
  124. ret := _m.Called()
  125. var r0 *types.ResponseCommit
  126. if rf, ok := ret.Get(0).(func() *types.ResponseCommit); ok {
  127. r0 = rf()
  128. } else {
  129. if ret.Get(0) != nil {
  130. r0 = ret.Get(0).(*types.ResponseCommit)
  131. }
  132. }
  133. var r1 error
  134. if rf, ok := ret.Get(1).(func() error); ok {
  135. r1 = rf()
  136. } else {
  137. r1 = ret.Error(1)
  138. }
  139. return r0, r1
  140. }
  141. // DeliverTxAsync provides a mock function with given fields: _a0
  142. func (_m *Client) DeliverTxAsync(_a0 types.RequestDeliverTx) *abcicli.ReqRes {
  143. ret := _m.Called(_a0)
  144. var r0 *abcicli.ReqRes
  145. if rf, ok := ret.Get(0).(func(types.RequestDeliverTx) *abcicli.ReqRes); ok {
  146. r0 = rf(_a0)
  147. } else {
  148. if ret.Get(0) != nil {
  149. r0 = ret.Get(0).(*abcicli.ReqRes)
  150. }
  151. }
  152. return r0
  153. }
  154. // DeliverTxSync provides a mock function with given fields: _a0
  155. func (_m *Client) DeliverTxSync(_a0 types.RequestDeliverTx) (*types.ResponseDeliverTx, error) {
  156. ret := _m.Called(_a0)
  157. var r0 *types.ResponseDeliverTx
  158. if rf, ok := ret.Get(0).(func(types.RequestDeliverTx) *types.ResponseDeliverTx); ok {
  159. r0 = rf(_a0)
  160. } else {
  161. if ret.Get(0) != nil {
  162. r0 = ret.Get(0).(*types.ResponseDeliverTx)
  163. }
  164. }
  165. var r1 error
  166. if rf, ok := ret.Get(1).(func(types.RequestDeliverTx) error); ok {
  167. r1 = rf(_a0)
  168. } else {
  169. r1 = ret.Error(1)
  170. }
  171. return r0, r1
  172. }
  173. // EchoAsync provides a mock function with given fields: msg
  174. func (_m *Client) EchoAsync(msg string) *abcicli.ReqRes {
  175. ret := _m.Called(msg)
  176. var r0 *abcicli.ReqRes
  177. if rf, ok := ret.Get(0).(func(string) *abcicli.ReqRes); ok {
  178. r0 = rf(msg)
  179. } else {
  180. if ret.Get(0) != nil {
  181. r0 = ret.Get(0).(*abcicli.ReqRes)
  182. }
  183. }
  184. return r0
  185. }
  186. // EchoSync provides a mock function with given fields: msg
  187. func (_m *Client) EchoSync(msg string) (*types.ResponseEcho, error) {
  188. ret := _m.Called(msg)
  189. var r0 *types.ResponseEcho
  190. if rf, ok := ret.Get(0).(func(string) *types.ResponseEcho); ok {
  191. r0 = rf(msg)
  192. } else {
  193. if ret.Get(0) != nil {
  194. r0 = ret.Get(0).(*types.ResponseEcho)
  195. }
  196. }
  197. var r1 error
  198. if rf, ok := ret.Get(1).(func(string) error); ok {
  199. r1 = rf(msg)
  200. } else {
  201. r1 = ret.Error(1)
  202. }
  203. return r0, r1
  204. }
  205. // EndBlockAsync provides a mock function with given fields: _a0
  206. func (_m *Client) EndBlockAsync(_a0 types.RequestEndBlock) *abcicli.ReqRes {
  207. ret := _m.Called(_a0)
  208. var r0 *abcicli.ReqRes
  209. if rf, ok := ret.Get(0).(func(types.RequestEndBlock) *abcicli.ReqRes); ok {
  210. r0 = rf(_a0)
  211. } else {
  212. if ret.Get(0) != nil {
  213. r0 = ret.Get(0).(*abcicli.ReqRes)
  214. }
  215. }
  216. return r0
  217. }
  218. // EndBlockSync provides a mock function with given fields: _a0
  219. func (_m *Client) EndBlockSync(_a0 types.RequestEndBlock) (*types.ResponseEndBlock, error) {
  220. ret := _m.Called(_a0)
  221. var r0 *types.ResponseEndBlock
  222. if rf, ok := ret.Get(0).(func(types.RequestEndBlock) *types.ResponseEndBlock); ok {
  223. r0 = rf(_a0)
  224. } else {
  225. if ret.Get(0) != nil {
  226. r0 = ret.Get(0).(*types.ResponseEndBlock)
  227. }
  228. }
  229. var r1 error
  230. if rf, ok := ret.Get(1).(func(types.RequestEndBlock) error); ok {
  231. r1 = rf(_a0)
  232. } else {
  233. r1 = ret.Error(1)
  234. }
  235. return r0, r1
  236. }
  237. // Error provides a mock function with given fields:
  238. func (_m *Client) Error() error {
  239. ret := _m.Called()
  240. var r0 error
  241. if rf, ok := ret.Get(0).(func() error); ok {
  242. r0 = rf()
  243. } else {
  244. r0 = ret.Error(0)
  245. }
  246. return r0
  247. }
  248. // FlushAsync provides a mock function with given fields:
  249. func (_m *Client) FlushAsync() *abcicli.ReqRes {
  250. ret := _m.Called()
  251. var r0 *abcicli.ReqRes
  252. if rf, ok := ret.Get(0).(func() *abcicli.ReqRes); ok {
  253. r0 = rf()
  254. } else {
  255. if ret.Get(0) != nil {
  256. r0 = ret.Get(0).(*abcicli.ReqRes)
  257. }
  258. }
  259. return r0
  260. }
  261. // FlushSync provides a mock function with given fields:
  262. func (_m *Client) FlushSync() error {
  263. ret := _m.Called()
  264. var r0 error
  265. if rf, ok := ret.Get(0).(func() error); ok {
  266. r0 = rf()
  267. } else {
  268. r0 = ret.Error(0)
  269. }
  270. return r0
  271. }
  272. // InfoAsync provides a mock function with given fields: _a0
  273. func (_m *Client) InfoAsync(_a0 types.RequestInfo) *abcicli.ReqRes {
  274. ret := _m.Called(_a0)
  275. var r0 *abcicli.ReqRes
  276. if rf, ok := ret.Get(0).(func(types.RequestInfo) *abcicli.ReqRes); ok {
  277. r0 = rf(_a0)
  278. } else {
  279. if ret.Get(0) != nil {
  280. r0 = ret.Get(0).(*abcicli.ReqRes)
  281. }
  282. }
  283. return r0
  284. }
  285. // InfoSync provides a mock function with given fields: _a0
  286. func (_m *Client) InfoSync(_a0 types.RequestInfo) (*types.ResponseInfo, error) {
  287. ret := _m.Called(_a0)
  288. var r0 *types.ResponseInfo
  289. if rf, ok := ret.Get(0).(func(types.RequestInfo) *types.ResponseInfo); ok {
  290. r0 = rf(_a0)
  291. } else {
  292. if ret.Get(0) != nil {
  293. r0 = ret.Get(0).(*types.ResponseInfo)
  294. }
  295. }
  296. var r1 error
  297. if rf, ok := ret.Get(1).(func(types.RequestInfo) error); ok {
  298. r1 = rf(_a0)
  299. } else {
  300. r1 = ret.Error(1)
  301. }
  302. return r0, r1
  303. }
  304. // InitChainAsync provides a mock function with given fields: _a0
  305. func (_m *Client) InitChainAsync(_a0 types.RequestInitChain) *abcicli.ReqRes {
  306. ret := _m.Called(_a0)
  307. var r0 *abcicli.ReqRes
  308. if rf, ok := ret.Get(0).(func(types.RequestInitChain) *abcicli.ReqRes); ok {
  309. r0 = rf(_a0)
  310. } else {
  311. if ret.Get(0) != nil {
  312. r0 = ret.Get(0).(*abcicli.ReqRes)
  313. }
  314. }
  315. return r0
  316. }
  317. // InitChainSync provides a mock function with given fields: _a0
  318. func (_m *Client) InitChainSync(_a0 types.RequestInitChain) (*types.ResponseInitChain, error) {
  319. ret := _m.Called(_a0)
  320. var r0 *types.ResponseInitChain
  321. if rf, ok := ret.Get(0).(func(types.RequestInitChain) *types.ResponseInitChain); ok {
  322. r0 = rf(_a0)
  323. } else {
  324. if ret.Get(0) != nil {
  325. r0 = ret.Get(0).(*types.ResponseInitChain)
  326. }
  327. }
  328. var r1 error
  329. if rf, ok := ret.Get(1).(func(types.RequestInitChain) error); ok {
  330. r1 = rf(_a0)
  331. } else {
  332. r1 = ret.Error(1)
  333. }
  334. return r0, r1
  335. }
  336. // IsRunning provides a mock function with given fields:
  337. func (_m *Client) IsRunning() bool {
  338. ret := _m.Called()
  339. var r0 bool
  340. if rf, ok := ret.Get(0).(func() bool); ok {
  341. r0 = rf()
  342. } else {
  343. r0 = ret.Get(0).(bool)
  344. }
  345. return r0
  346. }
  347. // ListSnapshotsAsync provides a mock function with given fields: _a0
  348. func (_m *Client) ListSnapshotsAsync(_a0 types.RequestListSnapshots) *abcicli.ReqRes {
  349. ret := _m.Called(_a0)
  350. var r0 *abcicli.ReqRes
  351. if rf, ok := ret.Get(0).(func(types.RequestListSnapshots) *abcicli.ReqRes); ok {
  352. r0 = rf(_a0)
  353. } else {
  354. if ret.Get(0) != nil {
  355. r0 = ret.Get(0).(*abcicli.ReqRes)
  356. }
  357. }
  358. return r0
  359. }
  360. // ListSnapshotsSync provides a mock function with given fields: _a0
  361. func (_m *Client) ListSnapshotsSync(_a0 types.RequestListSnapshots) (*types.ResponseListSnapshots, error) {
  362. ret := _m.Called(_a0)
  363. var r0 *types.ResponseListSnapshots
  364. if rf, ok := ret.Get(0).(func(types.RequestListSnapshots) *types.ResponseListSnapshots); ok {
  365. r0 = rf(_a0)
  366. } else {
  367. if ret.Get(0) != nil {
  368. r0 = ret.Get(0).(*types.ResponseListSnapshots)
  369. }
  370. }
  371. var r1 error
  372. if rf, ok := ret.Get(1).(func(types.RequestListSnapshots) error); ok {
  373. r1 = rf(_a0)
  374. } else {
  375. r1 = ret.Error(1)
  376. }
  377. return r0, r1
  378. }
  379. // LoadSnapshotChunkAsync provides a mock function with given fields: _a0
  380. func (_m *Client) LoadSnapshotChunkAsync(_a0 types.RequestLoadSnapshotChunk) *abcicli.ReqRes {
  381. ret := _m.Called(_a0)
  382. var r0 *abcicli.ReqRes
  383. if rf, ok := ret.Get(0).(func(types.RequestLoadSnapshotChunk) *abcicli.ReqRes); ok {
  384. r0 = rf(_a0)
  385. } else {
  386. if ret.Get(0) != nil {
  387. r0 = ret.Get(0).(*abcicli.ReqRes)
  388. }
  389. }
  390. return r0
  391. }
  392. // LoadSnapshotChunkSync provides a mock function with given fields: _a0
  393. func (_m *Client) LoadSnapshotChunkSync(_a0 types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) {
  394. ret := _m.Called(_a0)
  395. var r0 *types.ResponseLoadSnapshotChunk
  396. if rf, ok := ret.Get(0).(func(types.RequestLoadSnapshotChunk) *types.ResponseLoadSnapshotChunk); ok {
  397. r0 = rf(_a0)
  398. } else {
  399. if ret.Get(0) != nil {
  400. r0 = ret.Get(0).(*types.ResponseLoadSnapshotChunk)
  401. }
  402. }
  403. var r1 error
  404. if rf, ok := ret.Get(1).(func(types.RequestLoadSnapshotChunk) error); ok {
  405. r1 = rf(_a0)
  406. } else {
  407. r1 = ret.Error(1)
  408. }
  409. return r0, r1
  410. }
  411. // OfferSnapshotAsync provides a mock function with given fields: _a0
  412. func (_m *Client) OfferSnapshotAsync(_a0 types.RequestOfferSnapshot) *abcicli.ReqRes {
  413. ret := _m.Called(_a0)
  414. var r0 *abcicli.ReqRes
  415. if rf, ok := ret.Get(0).(func(types.RequestOfferSnapshot) *abcicli.ReqRes); ok {
  416. r0 = rf(_a0)
  417. } else {
  418. if ret.Get(0) != nil {
  419. r0 = ret.Get(0).(*abcicli.ReqRes)
  420. }
  421. }
  422. return r0
  423. }
  424. // OfferSnapshotSync provides a mock function with given fields: _a0
  425. func (_m *Client) OfferSnapshotSync(_a0 types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) {
  426. ret := _m.Called(_a0)
  427. var r0 *types.ResponseOfferSnapshot
  428. if rf, ok := ret.Get(0).(func(types.RequestOfferSnapshot) *types.ResponseOfferSnapshot); ok {
  429. r0 = rf(_a0)
  430. } else {
  431. if ret.Get(0) != nil {
  432. r0 = ret.Get(0).(*types.ResponseOfferSnapshot)
  433. }
  434. }
  435. var r1 error
  436. if rf, ok := ret.Get(1).(func(types.RequestOfferSnapshot) error); ok {
  437. r1 = rf(_a0)
  438. } else {
  439. r1 = ret.Error(1)
  440. }
  441. return r0, r1
  442. }
  443. // OnReset provides a mock function with given fields:
  444. func (_m *Client) OnReset() error {
  445. ret := _m.Called()
  446. var r0 error
  447. if rf, ok := ret.Get(0).(func() error); ok {
  448. r0 = rf()
  449. } else {
  450. r0 = ret.Error(0)
  451. }
  452. return r0
  453. }
  454. // OnStart provides a mock function with given fields:
  455. func (_m *Client) OnStart() error {
  456. ret := _m.Called()
  457. var r0 error
  458. if rf, ok := ret.Get(0).(func() error); ok {
  459. r0 = rf()
  460. } else {
  461. r0 = ret.Error(0)
  462. }
  463. return r0
  464. }
  465. // OnStop provides a mock function with given fields:
  466. func (_m *Client) OnStop() {
  467. _m.Called()
  468. }
  469. // QueryAsync provides a mock function with given fields: _a0
  470. func (_m *Client) QueryAsync(_a0 types.RequestQuery) *abcicli.ReqRes {
  471. ret := _m.Called(_a0)
  472. var r0 *abcicli.ReqRes
  473. if rf, ok := ret.Get(0).(func(types.RequestQuery) *abcicli.ReqRes); ok {
  474. r0 = rf(_a0)
  475. } else {
  476. if ret.Get(0) != nil {
  477. r0 = ret.Get(0).(*abcicli.ReqRes)
  478. }
  479. }
  480. return r0
  481. }
  482. // QuerySync provides a mock function with given fields: _a0
  483. func (_m *Client) QuerySync(_a0 types.RequestQuery) (*types.ResponseQuery, error) {
  484. ret := _m.Called(_a0)
  485. var r0 *types.ResponseQuery
  486. if rf, ok := ret.Get(0).(func(types.RequestQuery) *types.ResponseQuery); ok {
  487. r0 = rf(_a0)
  488. } else {
  489. if ret.Get(0) != nil {
  490. r0 = ret.Get(0).(*types.ResponseQuery)
  491. }
  492. }
  493. var r1 error
  494. if rf, ok := ret.Get(1).(func(types.RequestQuery) error); ok {
  495. r1 = rf(_a0)
  496. } else {
  497. r1 = ret.Error(1)
  498. }
  499. return r0, r1
  500. }
  501. // Quit provides a mock function with given fields:
  502. func (_m *Client) Quit() <-chan struct{} {
  503. ret := _m.Called()
  504. var r0 <-chan struct{}
  505. if rf, ok := ret.Get(0).(func() <-chan struct{}); ok {
  506. r0 = rf()
  507. } else {
  508. if ret.Get(0) != nil {
  509. r0 = ret.Get(0).(<-chan struct{})
  510. }
  511. }
  512. return r0
  513. }
  514. // Reset provides a mock function with given fields:
  515. func (_m *Client) Reset() error {
  516. ret := _m.Called()
  517. var r0 error
  518. if rf, ok := ret.Get(0).(func() error); ok {
  519. r0 = rf()
  520. } else {
  521. r0 = ret.Error(0)
  522. }
  523. return r0
  524. }
  525. // SetLogger provides a mock function with given fields: _a0
  526. func (_m *Client) SetLogger(_a0 log.Logger) {
  527. _m.Called(_a0)
  528. }
  529. // SetResponseCallback provides a mock function with given fields: _a0
  530. func (_m *Client) SetResponseCallback(_a0 abcicli.Callback) {
  531. _m.Called(_a0)
  532. }
  533. // Start provides a mock function with given fields:
  534. func (_m *Client) Start() error {
  535. ret := _m.Called()
  536. var r0 error
  537. if rf, ok := ret.Get(0).(func() error); ok {
  538. r0 = rf()
  539. } else {
  540. r0 = ret.Error(0)
  541. }
  542. return r0
  543. }
  544. // Stop provides a mock function with given fields:
  545. func (_m *Client) Stop() error {
  546. ret := _m.Called()
  547. var r0 error
  548. if rf, ok := ret.Get(0).(func() error); ok {
  549. r0 = rf()
  550. } else {
  551. r0 = ret.Error(0)
  552. }
  553. return r0
  554. }
  555. // String provides a mock function with given fields:
  556. func (_m *Client) String() string {
  557. ret := _m.Called()
  558. var r0 string
  559. if rf, ok := ret.Get(0).(func() string); ok {
  560. r0 = rf()
  561. } else {
  562. r0 = ret.Get(0).(string)
  563. }
  564. return r0
  565. }