github.com/Finschia/ostracon@v1.1.5/proxy/mocks/app_conn_mempool.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 abcicli "github.com/Finschia/ostracon/abci/client" 7 abcitypes "github.com/tendermint/tendermint/abci/types" 8 9 mock "github.com/stretchr/testify/mock" 10 11 types "github.com/Finschia/ostracon/abci/types" 12 ) 13 14 // AppConnMempool is an autogenerated mock type for the AppConnMempool type 15 type AppConnMempool struct { 16 mock.Mock 17 } 18 19 // BeginRecheckTxSync provides a mock function with given fields: _a0 20 func (_m *AppConnMempool) BeginRecheckTxSync(_a0 types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error) { 21 ret := _m.Called(_a0) 22 23 var r0 *types.ResponseBeginRecheckTx 24 var r1 error 25 if rf, ok := ret.Get(0).(func(types.RequestBeginRecheckTx) (*types.ResponseBeginRecheckTx, error)); ok { 26 return rf(_a0) 27 } 28 if rf, ok := ret.Get(0).(func(types.RequestBeginRecheckTx) *types.ResponseBeginRecheckTx); ok { 29 r0 = rf(_a0) 30 } else { 31 if ret.Get(0) != nil { 32 r0 = ret.Get(0).(*types.ResponseBeginRecheckTx) 33 } 34 } 35 36 if rf, ok := ret.Get(1).(func(types.RequestBeginRecheckTx) error); ok { 37 r1 = rf(_a0) 38 } else { 39 r1 = ret.Error(1) 40 } 41 42 return r0, r1 43 } 44 45 // CheckTxAsync provides a mock function with given fields: _a0, _a1 46 func (_m *AppConnMempool) CheckTxAsync(_a0 abcitypes.RequestCheckTx, _a1 abcicli.ResponseCallback) *abcicli.ReqRes { 47 ret := _m.Called(_a0, _a1) 48 49 var r0 *abcicli.ReqRes 50 if rf, ok := ret.Get(0).(func(abcitypes.RequestCheckTx, abcicli.ResponseCallback) *abcicli.ReqRes); ok { 51 r0 = rf(_a0, _a1) 52 } else { 53 if ret.Get(0) != nil { 54 r0 = ret.Get(0).(*abcicli.ReqRes) 55 } 56 } 57 58 return r0 59 } 60 61 // CheckTxSync provides a mock function with given fields: _a0 62 func (_m *AppConnMempool) CheckTxSync(_a0 abcitypes.RequestCheckTx) (*types.ResponseCheckTx, error) { 63 ret := _m.Called(_a0) 64 65 var r0 *types.ResponseCheckTx 66 var r1 error 67 if rf, ok := ret.Get(0).(func(abcitypes.RequestCheckTx) (*types.ResponseCheckTx, error)); ok { 68 return rf(_a0) 69 } 70 if rf, ok := ret.Get(0).(func(abcitypes.RequestCheckTx) *types.ResponseCheckTx); ok { 71 r0 = rf(_a0) 72 } else { 73 if ret.Get(0) != nil { 74 r0 = ret.Get(0).(*types.ResponseCheckTx) 75 } 76 } 77 78 if rf, ok := ret.Get(1).(func(abcitypes.RequestCheckTx) error); ok { 79 r1 = rf(_a0) 80 } else { 81 r1 = ret.Error(1) 82 } 83 84 return r0, r1 85 } 86 87 // EndRecheckTxSync provides a mock function with given fields: _a0 88 func (_m *AppConnMempool) EndRecheckTxSync(_a0 types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { 89 ret := _m.Called(_a0) 90 91 var r0 *types.ResponseEndRecheckTx 92 var r1 error 93 if rf, ok := ret.Get(0).(func(types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error)); ok { 94 return rf(_a0) 95 } 96 if rf, ok := ret.Get(0).(func(types.RequestEndRecheckTx) *types.ResponseEndRecheckTx); ok { 97 r0 = rf(_a0) 98 } else { 99 if ret.Get(0) != nil { 100 r0 = ret.Get(0).(*types.ResponseEndRecheckTx) 101 } 102 } 103 104 if rf, ok := ret.Get(1).(func(types.RequestEndRecheckTx) error); ok { 105 r1 = rf(_a0) 106 } else { 107 r1 = ret.Error(1) 108 } 109 110 return r0, r1 111 } 112 113 // Error provides a mock function with given fields: 114 func (_m *AppConnMempool) Error() error { 115 ret := _m.Called() 116 117 var r0 error 118 if rf, ok := ret.Get(0).(func() error); ok { 119 r0 = rf() 120 } else { 121 r0 = ret.Error(0) 122 } 123 124 return r0 125 } 126 127 // FlushAsync provides a mock function with given fields: _a0 128 func (_m *AppConnMempool) FlushAsync(_a0 abcicli.ResponseCallback) *abcicli.ReqRes { 129 ret := _m.Called(_a0) 130 131 var r0 *abcicli.ReqRes 132 if rf, ok := ret.Get(0).(func(abcicli.ResponseCallback) *abcicli.ReqRes); ok { 133 r0 = rf(_a0) 134 } else { 135 if ret.Get(0) != nil { 136 r0 = ret.Get(0).(*abcicli.ReqRes) 137 } 138 } 139 140 return r0 141 } 142 143 // FlushSync provides a mock function with given fields: 144 func (_m *AppConnMempool) FlushSync() (*abcitypes.ResponseFlush, error) { 145 ret := _m.Called() 146 147 var r0 *abcitypes.ResponseFlush 148 var r1 error 149 if rf, ok := ret.Get(0).(func() (*abcitypes.ResponseFlush, error)); ok { 150 return rf() 151 } 152 if rf, ok := ret.Get(0).(func() *abcitypes.ResponseFlush); ok { 153 r0 = rf() 154 } else { 155 if ret.Get(0) != nil { 156 r0 = ret.Get(0).(*abcitypes.ResponseFlush) 157 } 158 } 159 160 if rf, ok := ret.Get(1).(func() error); ok { 161 r1 = rf() 162 } else { 163 r1 = ret.Error(1) 164 } 165 166 return r0, r1 167 } 168 169 // SetGlobalCallback provides a mock function with given fields: _a0 170 func (_m *AppConnMempool) SetGlobalCallback(_a0 abcicli.GlobalCallback) { 171 _m.Called(_a0) 172 } 173 174 // NewAppConnMempool creates a new instance of AppConnMempool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 175 // The first argument is typically a *testing.T value. 176 func NewAppConnMempool(t interface { 177 mock.TestingT 178 Cleanup(func()) 179 }) *AppConnMempool { 180 mock := &AppConnMempool{} 181 mock.Mock.Test(t) 182 183 t.Cleanup(func() { mock.AssertExpectations(t) }) 184 185 return mock 186 }