github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/chain_puller.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  // ChainPuller is an autogenerated mock type for the ChainPuller type
    11  type ChainPuller struct {
    12  	mock.Mock
    13  }
    14  
    15  // Close provides a mock function with given fields:
    16  func (_m *ChainPuller) Close() {
    17  	_m.Called()
    18  }
    19  
    20  // HeightsByEndpoints provides a mock function with given fields:
    21  func (_m *ChainPuller) HeightsByEndpoints() (map[string]uint64, error) {
    22  	ret := _m.Called()
    23  
    24  	var r0 map[string]uint64
    25  	if rf, ok := ret.Get(0).(func() map[string]uint64); ok {
    26  		r0 = rf()
    27  	} else {
    28  		if ret.Get(0) != nil {
    29  			r0 = ret.Get(0).(map[string]uint64)
    30  		}
    31  	}
    32  
    33  	var r1 error
    34  	if rf, ok := ret.Get(1).(func() error); ok {
    35  		r1 = rf()
    36  	} else {
    37  		r1 = ret.Error(1)
    38  	}
    39  
    40  	return r0, r1
    41  }
    42  
    43  // PullBlock provides a mock function with given fields: seq
    44  func (_m *ChainPuller) PullBlock(seq uint64) *common.Block {
    45  	ret := _m.Called(seq)
    46  
    47  	var r0 *common.Block
    48  	if rf, ok := ret.Get(0).(func(uint64) *common.Block); ok {
    49  		r0 = rf(seq)
    50  	} else {
    51  		if ret.Get(0) != nil {
    52  			r0 = ret.Get(0).(*common.Block)
    53  		}
    54  	}
    55  
    56  	return r0
    57  }