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.

120 lines
3.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. // AppConnSnapshot is an autogenerated mock type for the AppConnSnapshot type
  8. type AppConnSnapshot struct {
  9. mock.Mock
  10. }
  11. // ApplySnapshotChunkSync provides a mock function with given fields: _a0
  12. func (_m *AppConnSnapshot) ApplySnapshotChunkSync(_a0 types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) {
  13. ret := _m.Called(_a0)
  14. var r0 *types.ResponseApplySnapshotChunk
  15. if rf, ok := ret.Get(0).(func(types.RequestApplySnapshotChunk) *types.ResponseApplySnapshotChunk); ok {
  16. r0 = rf(_a0)
  17. } else {
  18. if ret.Get(0) != nil {
  19. r0 = ret.Get(0).(*types.ResponseApplySnapshotChunk)
  20. }
  21. }
  22. var r1 error
  23. if rf, ok := ret.Get(1).(func(types.RequestApplySnapshotChunk) 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 *AppConnSnapshot) 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. // ListSnapshotsSync provides a mock function with given fields: _a0
  42. func (_m *AppConnSnapshot) ListSnapshotsSync(_a0 types.RequestListSnapshots) (*types.ResponseListSnapshots, error) {
  43. ret := _m.Called(_a0)
  44. var r0 *types.ResponseListSnapshots
  45. if rf, ok := ret.Get(0).(func(types.RequestListSnapshots) *types.ResponseListSnapshots); ok {
  46. r0 = rf(_a0)
  47. } else {
  48. if ret.Get(0) != nil {
  49. r0 = ret.Get(0).(*types.ResponseListSnapshots)
  50. }
  51. }
  52. var r1 error
  53. if rf, ok := ret.Get(1).(func(types.RequestListSnapshots) error); ok {
  54. r1 = rf(_a0)
  55. } else {
  56. r1 = ret.Error(1)
  57. }
  58. return r0, r1
  59. }
  60. // LoadSnapshotChunkSync provides a mock function with given fields: _a0
  61. func (_m *AppConnSnapshot) LoadSnapshotChunkSync(_a0 types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) {
  62. ret := _m.Called(_a0)
  63. var r0 *types.ResponseLoadSnapshotChunk
  64. if rf, ok := ret.Get(0).(func(types.RequestLoadSnapshotChunk) *types.ResponseLoadSnapshotChunk); ok {
  65. r0 = rf(_a0)
  66. } else {
  67. if ret.Get(0) != nil {
  68. r0 = ret.Get(0).(*types.ResponseLoadSnapshotChunk)
  69. }
  70. }
  71. var r1 error
  72. if rf, ok := ret.Get(1).(func(types.RequestLoadSnapshotChunk) error); ok {
  73. r1 = rf(_a0)
  74. } else {
  75. r1 = ret.Error(1)
  76. }
  77. return r0, r1
  78. }
  79. // OfferSnapshotSync provides a mock function with given fields: _a0
  80. func (_m *AppConnSnapshot) OfferSnapshotSync(_a0 types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) {
  81. ret := _m.Called(_a0)
  82. var r0 *types.ResponseOfferSnapshot
  83. if rf, ok := ret.Get(0).(func(types.RequestOfferSnapshot) *types.ResponseOfferSnapshot); ok {
  84. r0 = rf(_a0)
  85. } else {
  86. if ret.Get(0) != nil {
  87. r0 = ret.Get(0).(*types.ResponseOfferSnapshot)
  88. }
  89. }
  90. var r1 error
  91. if rf, ok := ret.Get(1).(func(types.RequestOfferSnapshot) error); ok {
  92. r1 = rf(_a0)
  93. } else {
  94. r1 = ret.Error(1)
  95. }
  96. return r0, r1
  97. }