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.

97 lines
2.0 KiB

  1. // Code generated by mockery v2.2.1. DO NOT EDIT.
  2. package mocks
  3. import (
  4. mock "github.com/stretchr/testify/mock"
  5. types "github.com/tendermint/tendermint/abci/types"
  6. )
  7. // AppConnQuery is an autogenerated mock type for the AppConnQuery type
  8. type AppConnQuery struct {
  9. mock.Mock
  10. }
  11. // EchoSync provides a mock function with given fields: _a0
  12. func (_m *AppConnQuery) EchoSync(_a0 string) (*types.ResponseEcho, error) {
  13. ret := _m.Called(_a0)
  14. var r0 *types.ResponseEcho
  15. if rf, ok := ret.Get(0).(func(string) *types.ResponseEcho); ok {
  16. r0 = rf(_a0)
  17. } else {
  18. if ret.Get(0) != nil {
  19. r0 = ret.Get(0).(*types.ResponseEcho)
  20. }
  21. }
  22. var r1 error
  23. if rf, ok := ret.Get(1).(func(string) error); ok {
  24. r1 = rf(_a0)
  25. } else {
  26. r1 = ret.Error(1)
  27. }
  28. return r0, r1
  29. }
  30. // Error provides a mock function with given fields:
  31. func (_m *AppConnQuery) Error() error {
  32. ret := _m.Called()
  33. var r0 error
  34. if rf, ok := ret.Get(0).(func() error); ok {
  35. r0 = rf()
  36. } else {
  37. r0 = ret.Error(0)
  38. }
  39. return r0
  40. }
  41. // InfoSync provides a mock function with given fields: _a0
  42. func (_m *AppConnQuery) InfoSync(_a0 types.RequestInfo) (*types.ResponseInfo, error) {
  43. ret := _m.Called(_a0)
  44. var r0 *types.ResponseInfo
  45. if rf, ok := ret.Get(0).(func(types.RequestInfo) *types.ResponseInfo); ok {
  46. r0 = rf(_a0)
  47. } else {
  48. if ret.Get(0) != nil {
  49. r0 = ret.Get(0).(*types.ResponseInfo)
  50. }
  51. }
  52. var r1 error
  53. if rf, ok := ret.Get(1).(func(types.RequestInfo) error); ok {
  54. r1 = rf(_a0)
  55. } else {
  56. r1 = ret.Error(1)
  57. }
  58. return r0, r1
  59. }
  60. // QuerySync provides a mock function with given fields: _a0
  61. func (_m *AppConnQuery) QuerySync(_a0 types.RequestQuery) (*types.ResponseQuery, error) {
  62. ret := _m.Called(_a0)
  63. var r0 *types.ResponseQuery
  64. if rf, ok := ret.Get(0).(func(types.RequestQuery) *types.ResponseQuery); ok {
  65. r0 = rf(_a0)
  66. } else {
  67. if ret.Get(0) != nil {
  68. r0 = ret.Get(0).(*types.ResponseQuery)
  69. }
  70. }
  71. var r1 error
  72. if rf, ok := ret.Get(1).(func(types.RequestQuery) error); ok {
  73. r1 = rf(_a0)
  74. } else {
  75. r1 = ret.Error(1)
  76. }
  77. return r0, r1
  78. }