github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/endorser/mocks/plugin_factory.go (about)

     1  /*
     2  Copyright hechain. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  // Code generated by mockery v1.0.0
     8  package mocks
     9  
    10  import endorsement "github.com/hechain20/hechain/core/handlers/endorsement/api"
    11  import mock "github.com/stretchr/testify/mock"
    12  
    13  // PluginFactory is an autogenerated mock type for the PluginFactory type
    14  type PluginFactory struct {
    15  	mock.Mock
    16  }
    17  
    18  // New provides a mock function with given fields:
    19  func (_m *PluginFactory) New() endorsement.Plugin {
    20  	ret := _m.Called()
    21  
    22  	var r0 endorsement.Plugin
    23  	if rf, ok := ret.Get(0).(func() endorsement.Plugin); ok {
    24  		r0 = rf()
    25  	} else {
    26  		if ret.Get(0) != nil {
    27  			r0 = ret.Get(0).(endorsement.Plugin)
    28  		}
    29  	}
    30  
    31  	return r0
    32  }