github.com/number571/tendermint@v0.34.11-gost/proxy/mocks/app_conn_consensus.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 abcicli "github.com/number571/tendermint/abci/client" 9 10 mock "github.com/stretchr/testify/mock" 11 12 types "github.com/number571/tendermint/abci/types" 13 ) 14 15 // AppConnConsensus is an autogenerated mock type for the AppConnConsensus type 16 type AppConnConsensus struct { 17 mock.Mock 18 } 19 20 // BeginBlockSync provides a mock function with given fields: _a0, _a1 21 func (_m *AppConnConsensus) BeginBlockSync(_a0 context.Context, _a1 types.RequestBeginBlock) (*types.ResponseBeginBlock, error) { 22 ret := _m.Called(_a0, _a1) 23 24 var r0 *types.ResponseBeginBlock 25 if rf, ok := ret.Get(0).(func(context.Context, types.RequestBeginBlock) *types.ResponseBeginBlock); ok { 26 r0 = rf(_a0, _a1) 27 } else { 28 if ret.Get(0) != nil { 29 r0 = ret.Get(0).(*types.ResponseBeginBlock) 30 } 31 } 32 33 var r1 error 34 if rf, ok := ret.Get(1).(func(context.Context, types.RequestBeginBlock) error); ok { 35 r1 = rf(_a0, _a1) 36 } else { 37 r1 = ret.Error(1) 38 } 39 40 return r0, r1 41 } 42 43 // CommitSync provides a mock function with given fields: _a0 44 func (_m *AppConnConsensus) CommitSync(_a0 context.Context) (*types.ResponseCommit, error) { 45 ret := _m.Called(_a0) 46 47 var r0 *types.ResponseCommit 48 if rf, ok := ret.Get(0).(func(context.Context) *types.ResponseCommit); ok { 49 r0 = rf(_a0) 50 } else { 51 if ret.Get(0) != nil { 52 r0 = ret.Get(0).(*types.ResponseCommit) 53 } 54 } 55 56 var r1 error 57 if rf, ok := ret.Get(1).(func(context.Context) error); ok { 58 r1 = rf(_a0) 59 } else { 60 r1 = ret.Error(1) 61 } 62 63 return r0, r1 64 } 65 66 // DeliverTxAsync provides a mock function with given fields: _a0, _a1 67 func (_m *AppConnConsensus) DeliverTxAsync(_a0 context.Context, _a1 types.RequestDeliverTx) (*abcicli.ReqRes, error) { 68 ret := _m.Called(_a0, _a1) 69 70 var r0 *abcicli.ReqRes 71 if rf, ok := ret.Get(0).(func(context.Context, types.RequestDeliverTx) *abcicli.ReqRes); ok { 72 r0 = rf(_a0, _a1) 73 } else { 74 if ret.Get(0) != nil { 75 r0 = ret.Get(0).(*abcicli.ReqRes) 76 } 77 } 78 79 var r1 error 80 if rf, ok := ret.Get(1).(func(context.Context, types.RequestDeliverTx) error); ok { 81 r1 = rf(_a0, _a1) 82 } else { 83 r1 = ret.Error(1) 84 } 85 86 return r0, r1 87 } 88 89 // EndBlockSync provides a mock function with given fields: _a0, _a1 90 func (_m *AppConnConsensus) EndBlockSync(_a0 context.Context, _a1 types.RequestEndBlock) (*types.ResponseEndBlock, error) { 91 ret := _m.Called(_a0, _a1) 92 93 var r0 *types.ResponseEndBlock 94 if rf, ok := ret.Get(0).(func(context.Context, types.RequestEndBlock) *types.ResponseEndBlock); ok { 95 r0 = rf(_a0, _a1) 96 } else { 97 if ret.Get(0) != nil { 98 r0 = ret.Get(0).(*types.ResponseEndBlock) 99 } 100 } 101 102 var r1 error 103 if rf, ok := ret.Get(1).(func(context.Context, types.RequestEndBlock) error); ok { 104 r1 = rf(_a0, _a1) 105 } else { 106 r1 = ret.Error(1) 107 } 108 109 return r0, r1 110 } 111 112 // Error provides a mock function with given fields: 113 func (_m *AppConnConsensus) Error() error { 114 ret := _m.Called() 115 116 var r0 error 117 if rf, ok := ret.Get(0).(func() error); ok { 118 r0 = rf() 119 } else { 120 r0 = ret.Error(0) 121 } 122 123 return r0 124 } 125 126 // InitChainSync provides a mock function with given fields: _a0, _a1 127 func (_m *AppConnConsensus) InitChainSync(_a0 context.Context, _a1 types.RequestInitChain) (*types.ResponseInitChain, error) { 128 ret := _m.Called(_a0, _a1) 129 130 var r0 *types.ResponseInitChain 131 if rf, ok := ret.Get(0).(func(context.Context, types.RequestInitChain) *types.ResponseInitChain); ok { 132 r0 = rf(_a0, _a1) 133 } else { 134 if ret.Get(0) != nil { 135 r0 = ret.Get(0).(*types.ResponseInitChain) 136 } 137 } 138 139 var r1 error 140 if rf, ok := ret.Get(1).(func(context.Context, types.RequestInitChain) error); ok { 141 r1 = rf(_a0, _a1) 142 } else { 143 r1 = ret.Error(1) 144 } 145 146 return r0, r1 147 } 148 149 // SetResponseCallback provides a mock function with given fields: _a0 150 func (_m *AppConnConsensus) SetResponseCallback(_a0 abcicli.Callback) { 151 _m.Called(_a0) 152 }