github.com/true-sqn/fabric@v2.1.1+incompatible/orderer/consensus/etcdraft/mocks/chain_getter.go (about)

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