github.com/Hnampk/fabric@v2.1.1+incompatible/gossip/privdata/mocks/config_history_retriever.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import ledger "github.com/hyperledger/fabric/core/ledger" 6 import mock "github.com/stretchr/testify/mock" 7 8 // ConfigHistoryRetriever is an autogenerated mock type for the ConfigHistoryRetriever type 9 type ConfigHistoryRetriever struct { 10 mock.Mock 11 } 12 13 // CollectionConfigAt provides a mock function with given fields: blockNum, chaincodeName 14 func (_m *ConfigHistoryRetriever) CollectionConfigAt(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error) { 15 ret := _m.Called(blockNum, chaincodeName) 16 17 var r0 *ledger.CollectionConfigInfo 18 if rf, ok := ret.Get(0).(func(uint64, string) *ledger.CollectionConfigInfo); ok { 19 r0 = rf(blockNum, chaincodeName) 20 } else { 21 if ret.Get(0) != nil { 22 r0 = ret.Get(0).(*ledger.CollectionConfigInfo) 23 } 24 } 25 26 var r1 error 27 if rf, ok := ret.Get(1).(func(uint64, string) error); ok { 28 r1 = rf(blockNum, chaincodeName) 29 } else { 30 r1 = ret.Error(1) 31 } 32 33 return r0, r1 34 } 35 36 // MostRecentCollectionConfigBelow provides a mock function with given fields: blockNum, chaincodeName 37 func (_m *ConfigHistoryRetriever) MostRecentCollectionConfigBelow(blockNum uint64, chaincodeName string) (*ledger.CollectionConfigInfo, error) { 38 ret := _m.Called(blockNum, chaincodeName) 39 40 var r0 *ledger.CollectionConfigInfo 41 if rf, ok := ret.Get(0).(func(uint64, string) *ledger.CollectionConfigInfo); ok { 42 r0 = rf(blockNum, chaincodeName) 43 } else { 44 if ret.Get(0) != nil { 45 r0 = ret.Get(0).(*ledger.CollectionConfigInfo) 46 } 47 } 48 49 var r1 error 50 if rf, ok := ret.Get(1).(func(uint64, string) error); ok { 51 r1 = rf(blockNum, chaincodeName) 52 } else { 53 r1 = ret.Error(1) 54 } 55 56 return r0, r1 57 }