github.com/Hnampk/my-fabric@v0.0.0-20201028083322-75069da399c0/core/endorser/mocks/transient_store_retriever.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package mocks 4 5 import mock "github.com/stretchr/testify/mock" 6 import transientstore "github.com/hyperledger/fabric/core/transientstore" 7 8 // TransientStoreRetriever is an autogenerated mock type for the TransientStoreRetriever type 9 type TransientStoreRetriever struct { 10 mock.Mock 11 } 12 13 // StoreForChannel provides a mock function with given fields: channel 14 func (_m *TransientStoreRetriever) StoreForChannel(channel string) *transientstore.Store { 15 ret := _m.Called(channel) 16 17 var r0 *transientstore.Store 18 if rf, ok := ret.Get(0).(func(string) *transientstore.Store); ok { 19 r0 = rf(channel) 20 } else { 21 if ret.Get(0) != nil { 22 r0 = ret.Get(0).(*transientstore.Store) 23 } 24 } 25 26 return r0 27 }