github.com/ewagmig/fabric@v2.1.1+incompatible/common/deliver/interfaces_test.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package deliver_test
     8  
     9  import (
    10  	"github.com/hyperledger/fabric/common/ledger/blockledger"
    11  )
    12  
    13  //go:generate counterfeiter -o mock/block_reader.go -fake-name BlockReader . blockledgerReader
    14  type blockledgerReader interface {
    15  	blockledger.Reader
    16  }
    17  
    18  //go:generate counterfeiter -o mock/block_iterator.go -fake-name BlockIterator . blockledgerIterator
    19  type blockledgerIterator interface {
    20  	blockledger.Iterator
    21  }