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.

99 lines
2.2 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. // AppConnQuery is an autogenerated mock type for the AppConnQuery type
  9. type AppConnQuery struct {
  10. mock.Mock
  11. }
  12. // Echo provides a mock function with given fields: _a0, _a1
  13. func (_m *AppConnQuery) Echo(_a0 context.Context, _a1 string) (*types.ResponseEcho, error) {
  14. ret := _m.Called(_a0, _a1)
  15. var r0 *types.ResponseEcho
  16. if rf, ok := ret.Get(0).(func(context.Context, string) *types.ResponseEcho); ok {
  17. r0 = rf(_a0, _a1)
  18. } else {
  19. if ret.Get(0) != nil {
  20. r0 = ret.Get(0).(*types.ResponseEcho)
  21. }
  22. }
  23. var r1 error
  24. if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
  25. r1 = rf(_a0, _a1)
  26. } else {
  27. r1 = ret.Error(1)
  28. }
  29. return r0, r1
  30. }
  31. // Error provides a mock function with given fields:
  32. func (_m *AppConnQuery) Error() error {
  33. ret := _m.Called()
  34. var r0 error
  35. if rf, ok := ret.Get(0).(func() error); ok {
  36. r0 = rf()
  37. } else {
  38. r0 = ret.Error(0)
  39. }
  40. return r0
  41. }
  42. // Info provides a mock function with given fields: _a0, _a1
  43. func (_m *AppConnQuery) Info(_a0 context.Context, _a1 types.RequestInfo) (*types.ResponseInfo, error) {
  44. ret := _m.Called(_a0, _a1)
  45. var r0 *types.ResponseInfo
  46. if rf, ok := ret.Get(0).(func(context.Context, types.RequestInfo) *types.ResponseInfo); ok {
  47. r0 = rf(_a0, _a1)
  48. } else {
  49. if ret.Get(0) != nil {
  50. r0 = ret.Get(0).(*types.ResponseInfo)
  51. }
  52. }
  53. var r1 error
  54. if rf, ok := ret.Get(1).(func(context.Context, types.RequestInfo) error); ok {
  55. r1 = rf(_a0, _a1)
  56. } else {
  57. r1 = ret.Error(1)
  58. }
  59. return r0, r1
  60. }
  61. // Query provides a mock function with given fields: _a0, _a1
  62. func (_m *AppConnQuery) Query(_a0 context.Context, _a1 types.RequestQuery) (*types.ResponseQuery, error) {
  63. ret := _m.Called(_a0, _a1)
  64. var r0 *types.ResponseQuery
  65. if rf, ok := ret.Get(0).(func(context.Context, types.RequestQuery) *types.ResponseQuery); ok {
  66. r0 = rf(_a0, _a1)
  67. } else {
  68. if ret.Get(0) != nil {
  69. r0 = ret.Get(0).(*types.ResponseQuery)
  70. }
  71. }
  72. var r1 error
  73. if rf, ok := ret.Get(1).(func(context.Context, types.RequestQuery) error); ok {
  74. r1 = rf(_a0, _a1)
  75. } else {
  76. r1 = ret.Error(1)
  77. }
  78. return r0, r1
  79. }