gitlab.com/gpdionisio/tendermint@v0.34.19-dev2/state/mocks/store.go (about) 1 // Code generated by mockery 2.9.0. DO NOT EDIT. 2 3 package mocks 4 5 import ( 6 mock "github.com/stretchr/testify/mock" 7 8 state "github.com/tendermint/tendermint/state" 9 10 tendermintstate "github.com/tendermint/tendermint/proto/tendermint/state" 11 12 tenderminttypes "github.com/tendermint/tendermint/types" 13 14 types "github.com/tendermint/tendermint/proto/tendermint/types" 15 ) 16 17 // Store is an autogenerated mock type for the Store type 18 type Store struct { 19 mock.Mock 20 } 21 22 // Bootstrap provides a mock function with given fields: _a0 23 func (_m *Store) Bootstrap(_a0 state.State) error { 24 ret := _m.Called(_a0) 25 26 var r0 error 27 if rf, ok := ret.Get(0).(func(state.State) error); ok { 28 r0 = rf(_a0) 29 } else { 30 r0 = ret.Error(0) 31 } 32 33 return r0 34 } 35 36 // Close provides a mock function with given fields: 37 func (_m *Store) Close() error { 38 ret := _m.Called() 39 40 var r0 error 41 if rf, ok := ret.Get(0).(func() error); ok { 42 r0 = rf() 43 } else { 44 r0 = ret.Error(0) 45 } 46 47 return r0 48 } 49 50 // Load provides a mock function with given fields: 51 func (_m *Store) Load() (state.State, error) { 52 ret := _m.Called() 53 54 var r0 state.State 55 if rf, ok := ret.Get(0).(func() state.State); ok { 56 r0 = rf() 57 } else { 58 r0 = ret.Get(0).(state.State) 59 } 60 61 var r1 error 62 if rf, ok := ret.Get(1).(func() error); ok { 63 r1 = rf() 64 } else { 65 r1 = ret.Error(1) 66 } 67 68 return r0, r1 69 } 70 71 // LoadABCIResponses provides a mock function with given fields: _a0 72 func (_m *Store) LoadABCIResponses(_a0 int64) (*tendermintstate.ABCIResponses, error) { 73 ret := _m.Called(_a0) 74 75 var r0 *tendermintstate.ABCIResponses 76 if rf, ok := ret.Get(0).(func(int64) *tendermintstate.ABCIResponses); ok { 77 r0 = rf(_a0) 78 } else { 79 if ret.Get(0) != nil { 80 r0 = ret.Get(0).(*tendermintstate.ABCIResponses) 81 } 82 } 83 84 var r1 error 85 if rf, ok := ret.Get(1).(func(int64) error); ok { 86 r1 = rf(_a0) 87 } else { 88 r1 = ret.Error(1) 89 } 90 91 return r0, r1 92 } 93 94 // LoadConsensusParams provides a mock function with given fields: _a0 95 func (_m *Store) LoadConsensusParams(_a0 int64) (types.ConsensusParams, error) { 96 ret := _m.Called(_a0) 97 98 var r0 types.ConsensusParams 99 if rf, ok := ret.Get(0).(func(int64) types.ConsensusParams); ok { 100 r0 = rf(_a0) 101 } else { 102 r0 = ret.Get(0).(types.ConsensusParams) 103 } 104 105 var r1 error 106 if rf, ok := ret.Get(1).(func(int64) error); ok { 107 r1 = rf(_a0) 108 } else { 109 r1 = ret.Error(1) 110 } 111 112 return r0, r1 113 } 114 115 // LoadFromDBOrGenesisDoc provides a mock function with given fields: _a0 116 func (_m *Store) LoadFromDBOrGenesisDoc(_a0 *tenderminttypes.GenesisDoc) (state.State, error) { 117 ret := _m.Called(_a0) 118 119 var r0 state.State 120 if rf, ok := ret.Get(0).(func(*tenderminttypes.GenesisDoc) state.State); ok { 121 r0 = rf(_a0) 122 } else { 123 r0 = ret.Get(0).(state.State) 124 } 125 126 var r1 error 127 if rf, ok := ret.Get(1).(func(*tenderminttypes.GenesisDoc) error); ok { 128 r1 = rf(_a0) 129 } else { 130 r1 = ret.Error(1) 131 } 132 133 return r0, r1 134 } 135 136 // LoadFromDBOrGenesisFile provides a mock function with given fields: _a0 137 func (_m *Store) LoadFromDBOrGenesisFile(_a0 string) (state.State, error) { 138 ret := _m.Called(_a0) 139 140 var r0 state.State 141 if rf, ok := ret.Get(0).(func(string) state.State); ok { 142 r0 = rf(_a0) 143 } else { 144 r0 = ret.Get(0).(state.State) 145 } 146 147 var r1 error 148 if rf, ok := ret.Get(1).(func(string) error); ok { 149 r1 = rf(_a0) 150 } else { 151 r1 = ret.Error(1) 152 } 153 154 return r0, r1 155 } 156 157 // LoadValidators provides a mock function with given fields: _a0 158 func (_m *Store) LoadValidators(_a0 int64) (*tenderminttypes.ValidatorSet, error) { 159 ret := _m.Called(_a0) 160 161 var r0 *tenderminttypes.ValidatorSet 162 if rf, ok := ret.Get(0).(func(int64) *tenderminttypes.ValidatorSet); ok { 163 r0 = rf(_a0) 164 } else { 165 if ret.Get(0) != nil { 166 r0 = ret.Get(0).(*tenderminttypes.ValidatorSet) 167 } 168 } 169 170 var r1 error 171 if rf, ok := ret.Get(1).(func(int64) error); ok { 172 r1 = rf(_a0) 173 } else { 174 r1 = ret.Error(1) 175 } 176 177 return r0, r1 178 } 179 180 // PruneStates provides a mock function with given fields: _a0, _a1 181 func (_m *Store) PruneStates(_a0 int64, _a1 int64) error { 182 ret := _m.Called(_a0, _a1) 183 184 var r0 error 185 if rf, ok := ret.Get(0).(func(int64, int64) error); ok { 186 r0 = rf(_a0, _a1) 187 } else { 188 r0 = ret.Error(0) 189 } 190 191 return r0 192 } 193 194 // Save provides a mock function with given fields: _a0 195 func (_m *Store) Save(_a0 state.State) error { 196 ret := _m.Called(_a0) 197 198 var r0 error 199 if rf, ok := ret.Get(0).(func(state.State) error); ok { 200 r0 = rf(_a0) 201 } else { 202 r0 = ret.Error(0) 203 } 204 205 return r0 206 } 207 208 // SaveABCIResponses provides a mock function with given fields: _a0, _a1 209 func (_m *Store) SaveABCIResponses(_a0 int64, _a1 *tendermintstate.ABCIResponses) error { 210 ret := _m.Called(_a0, _a1) 211 212 var r0 error 213 if rf, ok := ret.Get(0).(func(int64, *tendermintstate.ABCIResponses) error); ok { 214 r0 = rf(_a0, _a1) 215 } else { 216 r0 = ret.Error(0) 217 } 218 219 return r0 220 }