github.com/vipernet-xyz/tm@v0.34.24/evidence/mocks/block_store.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	mock "github.com/stretchr/testify/mock"
     7  
     8  	types "github.com/vipernet-xyz/tm/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  }
    61  
    62  type NewBlockStoreT interface {
    63  	mock.TestingT
    64  	Cleanup(func())
    65  }
    66  
    67  // NewBlockStore creates a new instance of BlockStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    68  func NewBlockStore(t NewBlockStoreT) *BlockStore {
    69  	mock := &BlockStore{}
    70  	mock.Mock.Test(t)
    71  
    72  	t.Cleanup(func() { mock.AssertExpectations(t) })
    73  
    74  	return mock
    75  }