Documentation ¶
Index ¶
- type SimilarityManager
- func (_m *SimilarityManager) EXPECT() *SimilarityManager_Expecter
- func (_m *SimilarityManager) JaroWinkler(value string, ref string) float64
- func (_m *SimilarityManager) Levenshtein(value string, ref string) float64
- func (_m *SimilarityManager) SimpleDate(value string, ref string) float64
- func (_m *SimilarityManager) Weight(key string) float64
- type SimilarityManager_Expecter
- func (_e *SimilarityManager_Expecter) JaroWinkler(value interface{}, ref interface{}) *SimilarityManager_JaroWinkler_Call
- func (_e *SimilarityManager_Expecter) Levenshtein(value interface{}, ref interface{}) *SimilarityManager_Levenshtein_Call
- func (_e *SimilarityManager_Expecter) SimpleDate(value interface{}, ref interface{}) *SimilarityManager_SimpleDate_Call
- func (_e *SimilarityManager_Expecter) Weight(key interface{}) *SimilarityManager_Weight_Call
- type SimilarityManager_JaroWinkler_Call
- func (_c *SimilarityManager_JaroWinkler_Call) Return(score float64) *SimilarityManager_JaroWinkler_Call
- func (_c *SimilarityManager_JaroWinkler_Call) Run(run func(value string, ref string)) *SimilarityManager_JaroWinkler_Call
- func (_c *SimilarityManager_JaroWinkler_Call) RunAndReturn(run func(string, string) float64) *SimilarityManager_JaroWinkler_Call
- type SimilarityManager_Levenshtein_Call
- func (_c *SimilarityManager_Levenshtein_Call) Return(score float64) *SimilarityManager_Levenshtein_Call
- func (_c *SimilarityManager_Levenshtein_Call) Run(run func(value string, ref string)) *SimilarityManager_Levenshtein_Call
- func (_c *SimilarityManager_Levenshtein_Call) RunAndReturn(run func(string, string) float64) *SimilarityManager_Levenshtein_Call
- type SimilarityManager_SimpleDate_Call
- func (_c *SimilarityManager_SimpleDate_Call) Return(score float64) *SimilarityManager_SimpleDate_Call
- func (_c *SimilarityManager_SimpleDate_Call) Run(run func(value string, ref string)) *SimilarityManager_SimpleDate_Call
- func (_c *SimilarityManager_SimpleDate_Call) RunAndReturn(run func(string, string) float64) *SimilarityManager_SimpleDate_Call
- type SimilarityManager_Weight_Call
- func (_c *SimilarityManager_Weight_Call) Return(_a0 float64) *SimilarityManager_Weight_Call
- func (_c *SimilarityManager_Weight_Call) Run(run func(key string)) *SimilarityManager_Weight_Call
- func (_c *SimilarityManager_Weight_Call) RunAndReturn(run func(string) float64) *SimilarityManager_Weight_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimilarityManager ¶
SimilarityManager is an autogenerated mock type for the SimilarityManager type
func NewSimilarityManager ¶
func NewSimilarityManager(t interface { mock.TestingT Cleanup(func()) }) *SimilarityManager
NewSimilarityManager creates a new instance of SimilarityManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SimilarityManager) EXPECT ¶
func (_m *SimilarityManager) EXPECT() *SimilarityManager_Expecter
func (*SimilarityManager) JaroWinkler ¶
func (_m *SimilarityManager) JaroWinkler(value string, ref string) float64
JaroWinkler provides a mock function with given fields: value, ref
func (*SimilarityManager) Levenshtein ¶
func (_m *SimilarityManager) Levenshtein(value string, ref string) float64
Levenshtein provides a mock function with given fields: value, ref
func (*SimilarityManager) SimpleDate ¶
func (_m *SimilarityManager) SimpleDate(value string, ref string) float64
SimpleDate provides a mock function with given fields: value, ref
func (*SimilarityManager) Weight ¶
func (_m *SimilarityManager) Weight(key string) float64
Weight provides a mock function with given fields: key
type SimilarityManager_Expecter ¶
type SimilarityManager_Expecter struct {
// contains filtered or unexported fields
}
func (*SimilarityManager_Expecter) JaroWinkler ¶
func (_e *SimilarityManager_Expecter) JaroWinkler(value interface{}, ref interface{}) *SimilarityManager_JaroWinkler_Call
JaroWinkler is a helper method to define mock.On call
- value string
- ref string
func (*SimilarityManager_Expecter) Levenshtein ¶
func (_e *SimilarityManager_Expecter) Levenshtein(value interface{}, ref interface{}) *SimilarityManager_Levenshtein_Call
Levenshtein is a helper method to define mock.On call
- value string
- ref string
func (*SimilarityManager_Expecter) SimpleDate ¶
func (_e *SimilarityManager_Expecter) SimpleDate(value interface{}, ref interface{}) *SimilarityManager_SimpleDate_Call
SimpleDate is a helper method to define mock.On call
- value string
- ref string
func (*SimilarityManager_Expecter) Weight ¶
func (_e *SimilarityManager_Expecter) Weight(key interface{}) *SimilarityManager_Weight_Call
Weight is a helper method to define mock.On call
- key string
type SimilarityManager_JaroWinkler_Call ¶
SimilarityManager_JaroWinkler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JaroWinkler'
func (*SimilarityManager_JaroWinkler_Call) Return ¶
func (_c *SimilarityManager_JaroWinkler_Call) Return(score float64) *SimilarityManager_JaroWinkler_Call
func (*SimilarityManager_JaroWinkler_Call) Run ¶
func (_c *SimilarityManager_JaroWinkler_Call) Run(run func(value string, ref string)) *SimilarityManager_JaroWinkler_Call
func (*SimilarityManager_JaroWinkler_Call) RunAndReturn ¶
func (_c *SimilarityManager_JaroWinkler_Call) RunAndReturn(run func(string, string) float64) *SimilarityManager_JaroWinkler_Call
type SimilarityManager_Levenshtein_Call ¶
SimilarityManager_Levenshtein_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Levenshtein'
func (*SimilarityManager_Levenshtein_Call) Return ¶
func (_c *SimilarityManager_Levenshtein_Call) Return(score float64) *SimilarityManager_Levenshtein_Call
func (*SimilarityManager_Levenshtein_Call) Run ¶
func (_c *SimilarityManager_Levenshtein_Call) Run(run func(value string, ref string)) *SimilarityManager_Levenshtein_Call
func (*SimilarityManager_Levenshtein_Call) RunAndReturn ¶
func (_c *SimilarityManager_Levenshtein_Call) RunAndReturn(run func(string, string) float64) *SimilarityManager_Levenshtein_Call
type SimilarityManager_SimpleDate_Call ¶
SimilarityManager_SimpleDate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimpleDate'
func (*SimilarityManager_SimpleDate_Call) Return ¶
func (_c *SimilarityManager_SimpleDate_Call) Return(score float64) *SimilarityManager_SimpleDate_Call
func (*SimilarityManager_SimpleDate_Call) Run ¶
func (_c *SimilarityManager_SimpleDate_Call) Run(run func(value string, ref string)) *SimilarityManager_SimpleDate_Call
func (*SimilarityManager_SimpleDate_Call) RunAndReturn ¶
func (_c *SimilarityManager_SimpleDate_Call) RunAndReturn(run func(string, string) float64) *SimilarityManager_SimpleDate_Call
type SimilarityManager_Weight_Call ¶
SimilarityManager_Weight_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Weight'
func (*SimilarityManager_Weight_Call) Return ¶
func (_c *SimilarityManager_Weight_Call) Return(_a0 float64) *SimilarityManager_Weight_Call
func (*SimilarityManager_Weight_Call) Run ¶
func (_c *SimilarityManager_Weight_Call) Run(run func(key string)) *SimilarityManager_Weight_Call
func (*SimilarityManager_Weight_Call) RunAndReturn ¶
func (_c *SimilarityManager_Weight_Call) RunAndReturn(run func(string) float64) *SimilarityManager_Weight_Call