github.com/DFWallet/tendermint-cosmos@v0.0.2/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  	types "github.com/DFWallet/tendermint-cosmos/types"
     8  )
     9  
    10  // BlockStore is an autogenerated mock type for the BlockStore type
    11  type BlockStore struct {
    12  	mock.Mock
    13  }
    14  
    15  // Height provides a mock function with given fields:
    16  func (_m *BlockStore) Height() int64 {
    17  	ret := _m.Called()
    18  
    19  	var r0 int64
    20  	if rf, ok := ret.Get(0).(func() int64); ok {
    21  		r0 = rf()
    22  	} else {
    23  		r0 = ret.Get(0).(int64)
    24  	}
    25  
    26  	return r0
    27  }
    28  
    29  // LoadBlockCommit provides a mock function with given fields: height
    30  func (_m *BlockStore) LoadBlockCommit(height int64) *types.Commit {
    31  	ret := _m.Called(height)
    32  
    33  	var r0 *types.Commit
    34  	if rf, ok := ret.Get(0).(func(int64) *types.Commit); ok {
    35  		r0 = rf(height)
    36  	} else {
    37  		if ret.Get(0) != nil {
    38  			r0 = ret.Get(0).(*types.Commit)
    39  		}
    40  	}
    41  
    42  	return r0
    43  }
    44  
    45  // LoadBlockMeta provides a mock function with given fields: height
    46  func (_m *BlockStore) LoadBlockMeta(height int64) *types.BlockMeta {
    47  	ret := _m.Called(height)
    48  
    49  	var r0 *types.BlockMeta
    50  	if rf, ok := ret.Get(0).(func(int64) *types.BlockMeta); ok {
    51  		r0 = rf(height)
    52  	} else {
    53  		if ret.Get(0) != nil {
    54  			r0 = ret.Get(0).(*types.BlockMeta)
    55  		}
    56  	}
    57  
    58  	return r0
    59  }