github.com/fnagchunpeng/fabric@v2.1.1+incompatible/core/endorser/mocks/plugin_mapper.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import endorsement "github.com/hyperledger/fabric/core/handlers/endorsement/api" 6 import endorser "github.com/hyperledger/fabric/core/endorser" 7 import mock "github.com/stretchr/testify/mock" 8 9 // PluginMapper is an autogenerated mock type for the PluginMapper type 10 type PluginMapper struct { 11 mock.Mock 12 } 13 14 // PluginFactoryByName provides a mock function with given fields: name 15 func (_m *PluginMapper) PluginFactoryByName(name endorser.PluginName) endorsement.PluginFactory { 16 ret := _m.Called(name) 17 18 var r0 endorsement.PluginFactory 19 if rf, ok := ret.Get(0).(func(endorser.PluginName) endorsement.PluginFactory); ok { 20 r0 = rf(name) 21 } else { 22 if ret.Get(0) != nil { 23 r0 = ret.Get(0).(endorsement.PluginFactory) 24 } 25 } 26 27 return r0 28 }