github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/committer/txvalidator/v20/mocks/channel_resources.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 channelconfig "github.com/hechain20/hechain/common/channelconfig" 8 9 mock "github.com/stretchr/testify/mock" 10 11 msp "github.com/hechain20/hechain/msp" 12 ) 13 14 // ChannelResources is an autogenerated mock type for the ChannelResources type 15 type ChannelResources struct { 16 mock.Mock 17 } 18 19 // Apply provides a mock function with given fields: configtx 20 func (_m *ChannelResources) Apply(configtx *common.ConfigEnvelope) error { 21 ret := _m.Called(configtx) 22 23 var r0 error 24 if rf, ok := ret.Get(0).(func(*common.ConfigEnvelope) error); ok { 25 r0 = rf(configtx) 26 } else { 27 r0 = ret.Error(0) 28 } 29 30 return r0 31 } 32 33 // Capabilities provides a mock function with given fields: 34 func (_m *ChannelResources) Capabilities() channelconfig.ApplicationCapabilities { 35 ret := _m.Called() 36 37 var r0 channelconfig.ApplicationCapabilities 38 if rf, ok := ret.Get(0).(func() channelconfig.ApplicationCapabilities); ok { 39 r0 = rf() 40 } else { 41 if ret.Get(0) != nil { 42 r0 = ret.Get(0).(channelconfig.ApplicationCapabilities) 43 } 44 } 45 46 return r0 47 } 48 49 // GetMSPIDs provides a mock function with given fields: 50 func (_m *ChannelResources) GetMSPIDs() []string { 51 ret := _m.Called() 52 53 var r0 []string 54 if rf, ok := ret.Get(0).(func() []string); ok { 55 r0 = rf() 56 } else { 57 if ret.Get(0) != nil { 58 r0 = ret.Get(0).([]string) 59 } 60 } 61 62 return r0 63 } 64 65 // MSPManager provides a mock function with given fields: 66 func (_m *ChannelResources) MSPManager() msp.MSPManager { 67 ret := _m.Called() 68 69 var r0 msp.MSPManager 70 if rf, ok := ret.Get(0).(func() msp.MSPManager); ok { 71 r0 = rf() 72 } else { 73 if ret.Get(0) != nil { 74 r0 = ret.Get(0).(msp.MSPManager) 75 } 76 } 77 78 return r0 79 }