github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/committer/txvalidator/v14/mocks/mapper.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  package mocks
     4  
     5  import (
     6  	plugin "github.com/hechain20/hechain/core/committer/txvalidator/plugin"
     7  	mock "github.com/stretchr/testify/mock"
     8  
     9  	validation "github.com/hechain20/hechain/core/handlers/validation/api"
    10  )
    11  
    12  // Mapper is an autogenerated mock type for the Mapper type
    13  type Mapper struct {
    14  	mock.Mock
    15  }
    16  
    17  // FactoryByName provides a mock function with given fields: name
    18  func (_m *Mapper) FactoryByName(name plugin.Name) validation.PluginFactory {
    19  	ret := _m.Called(name)
    20  
    21  	var r0 validation.PluginFactory
    22  	if rf, ok := ret.Get(0).(func(plugin.Name) validation.PluginFactory); ok {
    23  		r0 = rf(name)
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(validation.PluginFactory)
    27  		}
    28  	}
    29  
    30  	return r0
    31  }