github.com/number571/tendermint@v0.34.11-gost/proxy/mocks/app_conn_snapshot.go (about) 1 // Code generated by mockery v0.0.0-dev. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 context "context" 7 8 mock "github.com/stretchr/testify/mock" 9 10 types "github.com/number571/tendermint/abci/types" 11 ) 12 13 // AppConnSnapshot is an autogenerated mock type for the AppConnSnapshot type 14 type AppConnSnapshot struct { 15 mock.Mock 16 } 17 18 // ApplySnapshotChunkSync provides a mock function with given fields: _a0, _a1 19 func (_m *AppConnSnapshot) ApplySnapshotChunkSync(_a0 context.Context, _a1 types.RequestApplySnapshotChunk) (*types.ResponseApplySnapshotChunk, error) { 20 ret := _m.Called(_a0, _a1) 21 22 var r0 *types.ResponseApplySnapshotChunk 23 if rf, ok := ret.Get(0).(func(context.Context, types.RequestApplySnapshotChunk) *types.ResponseApplySnapshotChunk); ok { 24 r0 = rf(_a0, _a1) 25 } else { 26 if ret.Get(0) != nil { 27 r0 = ret.Get(0).(*types.ResponseApplySnapshotChunk) 28 } 29 } 30 31 var r1 error 32 if rf, ok := ret.Get(1).(func(context.Context, types.RequestApplySnapshotChunk) error); ok { 33 r1 = rf(_a0, _a1) 34 } else { 35 r1 = ret.Error(1) 36 } 37 38 return r0, r1 39 } 40 41 // Error provides a mock function with given fields: 42 func (_m *AppConnSnapshot) Error() error { 43 ret := _m.Called() 44 45 var r0 error 46 if rf, ok := ret.Get(0).(func() error); ok { 47 r0 = rf() 48 } else { 49 r0 = ret.Error(0) 50 } 51 52 return r0 53 } 54 55 // ListSnapshotsSync provides a mock function with given fields: _a0, _a1 56 func (_m *AppConnSnapshot) ListSnapshotsSync(_a0 context.Context, _a1 types.RequestListSnapshots) (*types.ResponseListSnapshots, error) { 57 ret := _m.Called(_a0, _a1) 58 59 var r0 *types.ResponseListSnapshots 60 if rf, ok := ret.Get(0).(func(context.Context, types.RequestListSnapshots) *types.ResponseListSnapshots); ok { 61 r0 = rf(_a0, _a1) 62 } else { 63 if ret.Get(0) != nil { 64 r0 = ret.Get(0).(*types.ResponseListSnapshots) 65 } 66 } 67 68 var r1 error 69 if rf, ok := ret.Get(1).(func(context.Context, types.RequestListSnapshots) error); ok { 70 r1 = rf(_a0, _a1) 71 } else { 72 r1 = ret.Error(1) 73 } 74 75 return r0, r1 76 } 77 78 // LoadSnapshotChunkSync provides a mock function with given fields: _a0, _a1 79 func (_m *AppConnSnapshot) LoadSnapshotChunkSync(_a0 context.Context, _a1 types.RequestLoadSnapshotChunk) (*types.ResponseLoadSnapshotChunk, error) { 80 ret := _m.Called(_a0, _a1) 81 82 var r0 *types.ResponseLoadSnapshotChunk 83 if rf, ok := ret.Get(0).(func(context.Context, types.RequestLoadSnapshotChunk) *types.ResponseLoadSnapshotChunk); ok { 84 r0 = rf(_a0, _a1) 85 } else { 86 if ret.Get(0) != nil { 87 r0 = ret.Get(0).(*types.ResponseLoadSnapshotChunk) 88 } 89 } 90 91 var r1 error 92 if rf, ok := ret.Get(1).(func(context.Context, types.RequestLoadSnapshotChunk) error); ok { 93 r1 = rf(_a0, _a1) 94 } else { 95 r1 = ret.Error(1) 96 } 97 98 return r0, r1 99 } 100 101 // OfferSnapshotSync provides a mock function with given fields: _a0, _a1 102 func (_m *AppConnSnapshot) OfferSnapshotSync(_a0 context.Context, _a1 types.RequestOfferSnapshot) (*types.ResponseOfferSnapshot, error) { 103 ret := _m.Called(_a0, _a1) 104 105 var r0 *types.ResponseOfferSnapshot 106 if rf, ok := ret.Get(0).(func(context.Context, types.RequestOfferSnapshot) *types.ResponseOfferSnapshot); ok { 107 r0 = rf(_a0, _a1) 108 } else { 109 if ret.Get(0) != nil { 110 r0 = ret.Get(0).(*types.ResponseOfferSnapshot) 111 } 112 } 113 114 var r1 error 115 if rf, ok := ret.Get(1).(func(context.Context, types.RequestOfferSnapshot) error); ok { 116 r1 = rf(_a0, _a1) 117 } else { 118 r1 = ret.Error(1) 119 } 120 121 return r0, r1 122 }