github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/block_retriever.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	common "github.com/hyperledger/fabric-protos-go/common"
     7  	mock "github.com/stretchr/testify/mock"
     8  )
     9  
    10  // BlockRetriever is an autogenerated mock type for the BlockRetriever type
    11  type BlockRetriever struct {
    12  	mock.Mock
    13  }
    14  
    15  // Block provides a mock function with given fields: number
    16  func (_m *BlockRetriever) Block(number uint64) *common.Block {
    17  	ret := _m.Called(number)
    18  
    19  	var r0 *common.Block
    20  	if rf, ok := ret.Get(0).(func(uint64) *common.Block); ok {
    21  		r0 = rf(number)
    22  	} else {
    23  		if ret.Get(0) != nil {
    24  			r0 = ret.Get(0).(*common.Block)
    25  		}
    26  	}
    27  
    28  	return r0
    29  }