github.com/DFWallet/tendermint-cosmos@v0.0.2/proxy/mocks/app_conn_mempool.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/DFWallet/tendermint-cosmos/abci/client" 8 9 types "github.com/DFWallet/tendermint-cosmos/abci/types" 10 ) 11 12 // AppConnMempool is an autogenerated mock type for the AppConnMempool type 13 type AppConnMempool struct { 14 mock.Mock 15 } 16 17 // CheckTxAsync provides a mock function with given fields: _a0 18 func (_m *AppConnMempool) CheckTxAsync(_a0 types.RequestCheckTx) *abcicli.ReqRes { 19 ret := _m.Called(_a0) 20 21 var r0 *abcicli.ReqRes 22 if rf, ok := ret.Get(0).(func(types.RequestCheckTx) *abcicli.ReqRes); ok { 23 r0 = rf(_a0) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(*abcicli.ReqRes) 27 } 28 } 29 30 return r0 31 } 32 33 // CheckTxSync provides a mock function with given fields: _a0 34 func (_m *AppConnMempool) CheckTxSync(_a0 types.RequestCheckTx) (*types.ResponseCheckTx, error) { 35 ret := _m.Called(_a0) 36 37 var r0 *types.ResponseCheckTx 38 if rf, ok := ret.Get(0).(func(types.RequestCheckTx) *types.ResponseCheckTx); ok { 39 r0 = rf(_a0) 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(*types.ResponseCheckTx) 43 } 44 } 45 46 var r1 error 47 if rf, ok := ret.Get(1).(func(types.RequestCheckTx) error); ok { 48 r1 = rf(_a0) 49 } else { 50 r1 = ret.Error(1) 51 } 52 53 return r0, r1 54 } 55 56 // Error provides a mock function with given fields: 57 func (_m *AppConnMempool) Error() error { 58 ret := _m.Called() 59 60 var r0 error 61 if rf, ok := ret.Get(0).(func() error); ok { 62 r0 = rf() 63 } else { 64 r0 = ret.Error(0) 65 } 66 67 return r0 68 } 69 70 // FlushAsync provides a mock function with given fields: 71 func (_m *AppConnMempool) FlushAsync() *abcicli.ReqRes { 72 ret := _m.Called() 73 74 var r0 *abcicli.ReqRes 75 if rf, ok := ret.Get(0).(func() *abcicli.ReqRes); ok { 76 r0 = rf() 77 } else { 78 if ret.Get(0) != nil { 79 r0 = ret.Get(0).(*abcicli.ReqRes) 80 } 81 } 82 83 return r0 84 } 85 86 // FlushSync provides a mock function with given fields: 87 func (_m *AppConnMempool) FlushSync() error { 88 ret := _m.Called() 89 90 var r0 error 91 if rf, ok := ret.Get(0).(func() error); ok { 92 r0 = rf() 93 } else { 94 r0 = ret.Error(0) 95 } 96 97 return r0 98 } 99 100 // SetResponseCallback provides a mock function with given fields: _a0 101 func (_m *AppConnMempool) SetResponseCallback(_a0 abcicli.Callback) { 102 _m.Called(_a0) 103 }