github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/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/hechain20/hechain/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  }