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.

122 lines
3.3 KiB

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