github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/cluster/mocks/verifier_factory.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 cluster "github.com/hyperledger/fabric/orderer/common/cluster" 8 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // VerifierFactory is an autogenerated mock type for the VerifierFactory type 13 type VerifierFactory struct { 14 mock.Mock 15 } 16 17 // VerifierFromConfig provides a mock function with given fields: configuration, channel 18 func (_m *VerifierFactory) VerifierFromConfig(configuration *common.ConfigEnvelope, channel string) (cluster.BlockVerifier, error) { 19 ret := _m.Called(configuration, channel) 20 21 var r0 cluster.BlockVerifier 22 if rf, ok := ret.Get(0).(func(*common.ConfigEnvelope, string) cluster.BlockVerifier); ok { 23 r0 = rf(configuration, channel) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(cluster.BlockVerifier) 27 } 28 } 29 30 var r1 error 31 if rf, ok := ret.Get(1).(func(*common.ConfigEnvelope, string) error); ok { 32 r1 = rf(configuration, channel) 33 } else { 34 r1 = ret.Error(1) 35 } 36 37 return r0, r1 38 }