github.com/arcology-network/consensus-engine@v1.9.0/state/mocks/store.go (about)

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