gitlab.com/gpdionisio/tendermint@v0.34.19-dev2/evidence/mocks/block_store.go (about)

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