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