github.com/koko1123/flow-go-1@v0.29.6/storage/mock/epoch_states.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	badger "github.com/dgraph-io/badger/v3"
     7  	flow "github.com/koko1123/flow-go-1/model/flow"
     8  
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // EpochStates is an autogenerated mock type for the EpochStates type
    13  type EpochStates struct {
    14  	mock.Mock
    15  }
    16  
    17  // ByBlockID provides a mock function with given fields: _a0
    18  func (_m *EpochStates) ByBlockID(_a0 flow.Identifier) (*flow.EpochStatus, error) {
    19  	ret := _m.Called(_a0)
    20  
    21  	var r0 *flow.EpochStatus
    22  	if rf, ok := ret.Get(0).(func(flow.Identifier) *flow.EpochStatus); ok {
    23  		r0 = rf(_a0)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(*flow.EpochStatus)
    27  		}
    28  	}
    29  
    30  	var r1 error
    31  	if rf, ok := ret.Get(1).(func(flow.Identifier) error); ok {
    32  		r1 = rf(_a0)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  // StoreTx provides a mock function with given fields: blockID, state
    41  func (_m *EpochStates) StoreTx(blockID flow.Identifier, state *flow.EpochStatus) func(*badger.Txn) error {
    42  	ret := _m.Called(blockID, state)
    43  
    44  	var r0 func(*badger.Txn) error
    45  	if rf, ok := ret.Get(0).(func(flow.Identifier, *flow.EpochStatus) func(*badger.Txn) error); ok {
    46  		r0 = rf(blockID, state)
    47  	} else {
    48  		if ret.Get(0) != nil {
    49  			r0 = ret.Get(0).(func(*badger.Txn) error)
    50  		}
    51  	}
    52  
    53  	return r0
    54  }