github.com/line/ostracon@v1.0.10-0.20230328032236-7f20145f065d/proxy/mocks/app_conn_mempool.go (about) 1 // Code generated by mockery v2.16.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 abcicli "github.com/line/ostracon/abci/client" 7 abcitypes "github.com/tendermint/tendermint/abci/types" 8 9 mock "github.com/stretchr/testify/mock" 10 11 types "github.com/line/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 if rf, ok := ret.Get(0).(func(types.RequestBeginRecheckTx) *types.ResponseBeginRecheckTx); ok { 25 r0 = rf(_a0) 26 } else { 27 if ret.Get(0) != nil { 28 r0 = ret.Get(0).(*types.ResponseBeginRecheckTx) 29 } 30 } 31 32 var r1 error 33 if rf, ok := ret.Get(1).(func(types.RequestBeginRecheckTx) error); ok { 34 r1 = rf(_a0) 35 } else { 36 r1 = ret.Error(1) 37 } 38 39 return r0, r1 40 } 41 42 // CheckTxAsync provides a mock function with given fields: _a0, _a1 43 func (_m *AppConnMempool) CheckTxAsync(_a0 abcitypes.RequestCheckTx, _a1 abcicli.ResponseCallback) *abcicli.ReqRes { 44 ret := _m.Called(_a0, _a1) 45 46 var r0 *abcicli.ReqRes 47 if rf, ok := ret.Get(0).(func(abcitypes.RequestCheckTx, abcicli.ResponseCallback) *abcicli.ReqRes); ok { 48 r0 = rf(_a0, _a1) 49 } else { 50 if ret.Get(0) != nil { 51 r0 = ret.Get(0).(*abcicli.ReqRes) 52 } 53 } 54 55 return r0 56 } 57 58 // CheckTxSync provides a mock function with given fields: _a0 59 func (_m *AppConnMempool) CheckTxSync(_a0 abcitypes.RequestCheckTx) (*types.ResponseCheckTx, error) { 60 ret := _m.Called(_a0) 61 62 var r0 *types.ResponseCheckTx 63 if rf, ok := ret.Get(0).(func(abcitypes.RequestCheckTx) *types.ResponseCheckTx); ok { 64 r0 = rf(_a0) 65 } else { 66 if ret.Get(0) != nil { 67 r0 = ret.Get(0).(*types.ResponseCheckTx) 68 } 69 } 70 71 var r1 error 72 if rf, ok := ret.Get(1).(func(abcitypes.RequestCheckTx) error); ok { 73 r1 = rf(_a0) 74 } else { 75 r1 = ret.Error(1) 76 } 77 78 return r0, r1 79 } 80 81 // EndRecheckTxSync provides a mock function with given fields: _a0 82 func (_m *AppConnMempool) EndRecheckTxSync(_a0 types.RequestEndRecheckTx) (*types.ResponseEndRecheckTx, error) { 83 ret := _m.Called(_a0) 84 85 var r0 *types.ResponseEndRecheckTx 86 if rf, ok := ret.Get(0).(func(types.RequestEndRecheckTx) *types.ResponseEndRecheckTx); ok { 87 r0 = rf(_a0) 88 } else { 89 if ret.Get(0) != nil { 90 r0 = ret.Get(0).(*types.ResponseEndRecheckTx) 91 } 92 } 93 94 var r1 error 95 if rf, ok := ret.Get(1).(func(types.RequestEndRecheckTx) error); ok { 96 r1 = rf(_a0) 97 } else { 98 r1 = ret.Error(1) 99 } 100 101 return r0, r1 102 } 103 104 // Error provides a mock function with given fields: 105 func (_m *AppConnMempool) Error() error { 106 ret := _m.Called() 107 108 var r0 error 109 if rf, ok := ret.Get(0).(func() error); ok { 110 r0 = rf() 111 } else { 112 r0 = ret.Error(0) 113 } 114 115 return r0 116 } 117 118 // FlushAsync provides a mock function with given fields: _a0 119 func (_m *AppConnMempool) FlushAsync(_a0 abcicli.ResponseCallback) *abcicli.ReqRes { 120 ret := _m.Called(_a0) 121 122 var r0 *abcicli.ReqRes 123 if rf, ok := ret.Get(0).(func(abcicli.ResponseCallback) *abcicli.ReqRes); ok { 124 r0 = rf(_a0) 125 } else { 126 if ret.Get(0) != nil { 127 r0 = ret.Get(0).(*abcicli.ReqRes) 128 } 129 } 130 131 return r0 132 } 133 134 // FlushSync provides a mock function with given fields: 135 func (_m *AppConnMempool) FlushSync() (*abcitypes.ResponseFlush, error) { 136 ret := _m.Called() 137 138 var r0 *abcitypes.ResponseFlush 139 if rf, ok := ret.Get(0).(func() *abcitypes.ResponseFlush); ok { 140 r0 = rf() 141 } else { 142 if ret.Get(0) != nil { 143 r0 = ret.Get(0).(*abcitypes.ResponseFlush) 144 } 145 } 146 147 var r1 error 148 if rf, ok := ret.Get(1).(func() error); ok { 149 r1 = rf() 150 } else { 151 r1 = ret.Error(1) 152 } 153 154 return r0, r1 155 } 156 157 // SetGlobalCallback provides a mock function with given fields: _a0 158 func (_m *AppConnMempool) SetGlobalCallback(_a0 abcicli.GlobalCallback) { 159 _m.Called(_a0) 160 } 161 162 type mockConstructorTestingTNewAppConnMempool interface { 163 mock.TestingT 164 Cleanup(func()) 165 } 166 167 // 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. 168 func NewAppConnMempool(t mockConstructorTestingTNewAppConnMempool) *AppConnMempool { 169 mock := &AppConnMempool{} 170 mock.Mock.Test(t) 171 172 t.Cleanup(func() { mock.AssertExpectations(t) }) 173 174 return mock 175 }