github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/server/mocks/chain_replicator.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 // ChainReplicator is an autogenerated mock type for the ChainReplicator type 11 type ChainReplicator struct { 12 mock.Mock 13 } 14 15 // ReplicateChains provides a mock function with given fields: lastConfigBlock, chains 16 func (_m *ChainReplicator) ReplicateChains(lastConfigBlock *common.Block, chains []string) []string { 17 ret := _m.Called(lastConfigBlock, chains) 18 19 var r0 []string 20 if rf, ok := ret.Get(0).(func(*common.Block, []string) []string); ok { 21 r0 = rf(lastConfigBlock, chains) 22 } else { 23 if ret.Get(0) != nil { 24 r0 = ret.Get(0).([]string) 25 } 26 } 27 28 return r0 29 }