github.com/badrootd/nibiru-cometbft@v0.37.5-0.20240307173500-2a75559eee9b/abci/types/mocks/application.go (about) 1 // Code generated by mockery. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 types "github.com/badrootd/nibiru-cometbft/abci/types" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Application is an autogenerated mock type for the Application type 11 type Application struct { 12 mock.Mock 13 } 14 15 // ApplySnapshotChunk provides a mock function with given fields: _a0 16 func (_m *Application) ApplySnapshotChunk(_a0 types.RequestApplySnapshotChunk) types.ResponseApplySnapshotChunk { 17 ret := _m.Called(_a0) 18 19 var r0 types.ResponseApplySnapshotChunk 20 if rf, ok := ret.Get(0).(func(types.RequestApplySnapshotChunk) types.ResponseApplySnapshotChunk); ok { 21 r0 = rf(_a0) 22 } else { 23 r0 = ret.Get(0).(types.ResponseApplySnapshotChunk) 24 } 25 26 return r0 27 } 28 29 // BeginBlock provides a mock function with given fields: _a0 30 func (_m *Application) BeginBlock(_a0 types.RequestBeginBlock) types.ResponseBeginBlock { 31 ret := _m.Called(_a0) 32 33 var r0 types.ResponseBeginBlock 34 if rf, ok := ret.Get(0).(func(types.RequestBeginBlock) types.ResponseBeginBlock); ok { 35 r0 = rf(_a0) 36 } else { 37 r0 = ret.Get(0).(types.ResponseBeginBlock) 38 } 39 40 return r0 41 } 42 43 // CheckTx provides a mock function with given fields: _a0 44 func (_m *Application) CheckTx(_a0 types.RequestCheckTx) types.ResponseCheckTx { 45 ret := _m.Called(_a0) 46 47 var r0 types.ResponseCheckTx 48 if rf, ok := ret.Get(0).(func(types.RequestCheckTx) types.ResponseCheckTx); ok { 49 r0 = rf(_a0) 50 } else { 51 r0 = ret.Get(0).(types.ResponseCheckTx) 52 } 53 54 return r0 55 } 56 57 // Commit provides a mock function with given fields: 58 func (_m *Application) Commit() types.ResponseCommit { 59 ret := _m.Called() 60 61 var r0 types.ResponseCommit 62 if rf, ok := ret.Get(0).(func() types.ResponseCommit); ok { 63 r0 = rf() 64 } else { 65 r0 = ret.Get(0).(types.ResponseCommit) 66 } 67 68 return r0 69 } 70 71 // DeliverTx provides a mock function with given fields: _a0 72 func (_m *Application) DeliverTx(_a0 types.RequestDeliverTx) types.ResponseDeliverTx { 73 ret := _m.Called(_a0) 74 75 var r0 types.ResponseDeliverTx 76 if rf, ok := ret.Get(0).(func(types.RequestDeliverTx) types.ResponseDeliverTx); ok { 77 r0 = rf(_a0) 78 } else { 79 r0 = ret.Get(0).(types.ResponseDeliverTx) 80 } 81 82 return r0 83 } 84 85 // EndBlock provides a mock function with given fields: _a0 86 func (_m *Application) EndBlock(_a0 types.RequestEndBlock) types.ResponseEndBlock { 87 ret := _m.Called(_a0) 88 89 var r0 types.ResponseEndBlock 90 if rf, ok := ret.Get(0).(func(types.RequestEndBlock) types.ResponseEndBlock); ok { 91 r0 = rf(_a0) 92 } else { 93 r0 = ret.Get(0).(types.ResponseEndBlock) 94 } 95 96 return r0 97 } 98 99 // Info provides a mock function with given fields: _a0 100 func (_m *Application) Info(_a0 types.RequestInfo) types.ResponseInfo { 101 ret := _m.Called(_a0) 102 103 var r0 types.ResponseInfo 104 if rf, ok := ret.Get(0).(func(types.RequestInfo) types.ResponseInfo); ok { 105 r0 = rf(_a0) 106 } else { 107 r0 = ret.Get(0).(types.ResponseInfo) 108 } 109 110 return r0 111 } 112 113 // InitChain provides a mock function with given fields: _a0 114 func (_m *Application) InitChain(_a0 types.RequestInitChain) types.ResponseInitChain { 115 ret := _m.Called(_a0) 116 117 var r0 types.ResponseInitChain 118 if rf, ok := ret.Get(0).(func(types.RequestInitChain) types.ResponseInitChain); ok { 119 r0 = rf(_a0) 120 } else { 121 r0 = ret.Get(0).(types.ResponseInitChain) 122 } 123 124 return r0 125 } 126 127 // ListSnapshots provides a mock function with given fields: _a0 128 func (_m *Application) ListSnapshots(_a0 types.RequestListSnapshots) types.ResponseListSnapshots { 129 ret := _m.Called(_a0) 130 131 var r0 types.ResponseListSnapshots 132 if rf, ok := ret.Get(0).(func(types.RequestListSnapshots) types.ResponseListSnapshots); ok { 133 r0 = rf(_a0) 134 } else { 135 r0 = ret.Get(0).(types.ResponseListSnapshots) 136 } 137 138 return r0 139 } 140 141 // LoadSnapshotChunk provides a mock function with given fields: _a0 142 func (_m *Application) LoadSnapshotChunk(_a0 types.RequestLoadSnapshotChunk) types.ResponseLoadSnapshotChunk { 143 ret := _m.Called(_a0) 144 145 var r0 types.ResponseLoadSnapshotChunk 146 if rf, ok := ret.Get(0).(func(types.RequestLoadSnapshotChunk) types.ResponseLoadSnapshotChunk); ok { 147 r0 = rf(_a0) 148 } else { 149 r0 = ret.Get(0).(types.ResponseLoadSnapshotChunk) 150 } 151 152 return r0 153 } 154 155 // OfferSnapshot provides a mock function with given fields: _a0 156 func (_m *Application) OfferSnapshot(_a0 types.RequestOfferSnapshot) types.ResponseOfferSnapshot { 157 ret := _m.Called(_a0) 158 159 var r0 types.ResponseOfferSnapshot 160 if rf, ok := ret.Get(0).(func(types.RequestOfferSnapshot) types.ResponseOfferSnapshot); ok { 161 r0 = rf(_a0) 162 } else { 163 r0 = ret.Get(0).(types.ResponseOfferSnapshot) 164 } 165 166 return r0 167 } 168 169 // PrepareProposal provides a mock function with given fields: _a0 170 func (_m *Application) PrepareProposal(_a0 types.RequestPrepareProposal) types.ResponsePrepareProposal { 171 ret := _m.Called(_a0) 172 173 var r0 types.ResponsePrepareProposal 174 if rf, ok := ret.Get(0).(func(types.RequestPrepareProposal) types.ResponsePrepareProposal); ok { 175 r0 = rf(_a0) 176 } else { 177 r0 = ret.Get(0).(types.ResponsePrepareProposal) 178 } 179 180 return r0 181 } 182 183 // ProcessProposal provides a mock function with given fields: _a0 184 func (_m *Application) ProcessProposal(_a0 types.RequestProcessProposal) types.ResponseProcessProposal { 185 ret := _m.Called(_a0) 186 187 var r0 types.ResponseProcessProposal 188 if rf, ok := ret.Get(0).(func(types.RequestProcessProposal) types.ResponseProcessProposal); ok { 189 r0 = rf(_a0) 190 } else { 191 r0 = ret.Get(0).(types.ResponseProcessProposal) 192 } 193 194 return r0 195 } 196 197 // Query provides a mock function with given fields: _a0 198 func (_m *Application) Query(_a0 types.RequestQuery) types.ResponseQuery { 199 ret := _m.Called(_a0) 200 201 var r0 types.ResponseQuery 202 if rf, ok := ret.Get(0).(func(types.RequestQuery) types.ResponseQuery); ok { 203 r0 = rf(_a0) 204 } else { 205 r0 = ret.Get(0).(types.ResponseQuery) 206 } 207 208 return r0 209 } 210 211 type mockConstructorTestingTNewApplication interface { 212 mock.TestingT 213 Cleanup(func()) 214 } 215 216 // NewApplication creates a new instance of Application. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 217 func NewApplication(t mockConstructorTestingTNewApplication) *Application { 218 mock := &Application{} 219 mock.Mock.Test(t) 220 221 t.Cleanup(func() { mock.AssertExpectations(t) }) 222 223 return mock 224 }