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

     1  // Code generated by mockery v2.1.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	types "github.com/arcology-network/consensus-engine/types"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // BlockStore is an autogenerated mock type for the BlockStore type
    11  type BlockStore struct {
    12  	mock.Mock
    13  }
    14  
    15  // LoadBlockCommit provides a mock function with given fields: height
    16  func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit {
    17  	ret := _m.Called(height)
    18  
    19  	var r0 *types.Commit
    20  	if rf, ok := ret.Get(0).(func(int64) *types.Commit); ok {
    21  		r0 = rf(height)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(*types.Commit)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }
    30  
    31  // LoadBlockMeta provides a mock function with given fields: height
    32  func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta {
    33  	ret := _m.Called(height)
    34  
    35  	var r0 *types.BlockMeta
    36  	if rf, ok := ret.Get(0).(func(int64) *types.BlockMeta); ok {
    37  		r0 = rf(height)
    38  	} else {
    39  		if ret.Get(0) != nil {
    40  			r0 = ret.Get(0).(*types.BlockMeta)
    41  		}
    42  	}
    43  
    44  	return r0
    45  }