github.com/aakash4dev/cometbft@v0.38.2/evidence/mocks/block_store.go (about)

     1  // Code generated by mockery. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	types "github.com/aakash4dev/cometbft/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  // 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  }
    60  
    61  // 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.
    62  // The first argument is typically a *testing.T value.
    63  func NewBlockStore(t interface {
    64  	mock.TestingT
    65  	Cleanup(func())
    66  }) *BlockStore {
    67  	mock := &BlockStore{}
    68  	mock.Mock.Test(t)
    69  
    70  	t.Cleanup(func() { mock.AssertExpectations(t) })
    71  
    72  	return mock
    73  }