Documentation
¶
Index ¶
- type Inflector
- type Inflector_Expecter
- func (_e *Inflector_Expecter) Language() *Inflector_Language_Call
- func (_e *Inflector_Expecter) Plural(word interface{}) *Inflector_Plural_Call
- func (_e *Inflector_Expecter) SetLanguage(language interface{}) *Inflector_SetLanguage_Call
- func (_e *Inflector_Expecter) Singular(word interface{}) *Inflector_Singular_Call
- type Inflector_Language_Call
- type Inflector_Plural_Call
- type Inflector_SetLanguage_Call
- func (_c *Inflector_SetLanguage_Call) Return(_a0 pluralizer.Inflector) *Inflector_SetLanguage_Call
- func (_c *Inflector_SetLanguage_Call) Run(run func(language pluralizer.Language)) *Inflector_SetLanguage_Call
- func (_c *Inflector_SetLanguage_Call) RunAndReturn(run func(pluralizer.Language) pluralizer.Inflector) *Inflector_SetLanguage_Call
- type Inflector_Singular_Call
- type Language
- type Language_Expecter
- type Language_Name_Call
- type Language_PluralRuleset_Call
- type Language_SingularRuleset_Call
- func (_c *Language_SingularRuleset_Call) Return(_a0 pluralizer.Ruleset) *Language_SingularRuleset_Call
- func (_c *Language_SingularRuleset_Call) Run(run func()) *Language_SingularRuleset_Call
- func (_c *Language_SingularRuleset_Call) RunAndReturn(run func() pluralizer.Ruleset) *Language_SingularRuleset_Call
- type Pattern
- type Pattern_Expecter
- type Pattern_Matches_Call
- type Ruleset
- func (_m *Ruleset) AddIrregular(substitutions ...pluralizer.Substitution) pluralizer.Ruleset
- func (_m *Ruleset) AddUninflected(words ...string) pluralizer.Ruleset
- func (_m *Ruleset) EXPECT() *Ruleset_Expecter
- func (_m *Ruleset) Irregular() pluralizer.Substitutions
- func (_m *Ruleset) Regular() pluralizer.Transformations
- func (_m *Ruleset) Uninflected() pluralizer.Patterns
- type Ruleset_AddIrregular_Call
- func (_c *Ruleset_AddIrregular_Call) Return(_a0 pluralizer.Ruleset) *Ruleset_AddIrregular_Call
- func (_c *Ruleset_AddIrregular_Call) Run(run func(substitutions ...pluralizer.Substitution)) *Ruleset_AddIrregular_Call
- func (_c *Ruleset_AddIrregular_Call) RunAndReturn(run func(...pluralizer.Substitution) pluralizer.Ruleset) *Ruleset_AddIrregular_Call
- type Ruleset_AddUninflected_Call
- func (_c *Ruleset_AddUninflected_Call) Return(_a0 pluralizer.Ruleset) *Ruleset_AddUninflected_Call
- func (_c *Ruleset_AddUninflected_Call) Run(run func(words ...string)) *Ruleset_AddUninflected_Call
- func (_c *Ruleset_AddUninflected_Call) RunAndReturn(run func(...string) pluralizer.Ruleset) *Ruleset_AddUninflected_Call
- type Ruleset_Expecter
- func (_e *Ruleset_Expecter) AddIrregular(substitutions ...interface{}) *Ruleset_AddIrregular_Call
- func (_e *Ruleset_Expecter) AddUninflected(words ...interface{}) *Ruleset_AddUninflected_Call
- func (_e *Ruleset_Expecter) Irregular() *Ruleset_Irregular_Call
- func (_e *Ruleset_Expecter) Regular() *Ruleset_Regular_Call
- func (_e *Ruleset_Expecter) Uninflected() *Ruleset_Uninflected_Call
- type Ruleset_Irregular_Call
- type Ruleset_Regular_Call
- type Ruleset_Uninflected_Call
- type Substitution
- type Substitution_Expecter
- type Substitution_From_Call
- type Substitution_To_Call
- type Transformation
- type Transformation_Apply_Call
- type Transformation_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inflector ¶
Inflector is an autogenerated mock type for the Inflector type
func NewInflector ¶
NewInflector creates a new instance of Inflector. 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 (*Inflector) EXPECT ¶
func (_m *Inflector) EXPECT() *Inflector_Expecter
func (*Inflector) Language ¶
func (_m *Inflector) Language() pluralizer.Language
Language provides a mock function with no fields
func (*Inflector) SetLanguage ¶
func (_m *Inflector) SetLanguage(language pluralizer.Language) pluralizer.Inflector
SetLanguage provides a mock function with given fields: language
type Inflector_Expecter ¶
type Inflector_Expecter struct {
// contains filtered or unexported fields
}
func (*Inflector_Expecter) Language ¶
func (_e *Inflector_Expecter) Language() *Inflector_Language_Call
Language is a helper method to define mock.On call
func (*Inflector_Expecter) Plural ¶
func (_e *Inflector_Expecter) Plural(word interface{}) *Inflector_Plural_Call
Plural is a helper method to define mock.On call
- word string
func (*Inflector_Expecter) SetLanguage ¶
func (_e *Inflector_Expecter) SetLanguage(language interface{}) *Inflector_SetLanguage_Call
SetLanguage is a helper method to define mock.On call
- language pluralizer.Language
func (*Inflector_Expecter) Singular ¶
func (_e *Inflector_Expecter) Singular(word interface{}) *Inflector_Singular_Call
Singular is a helper method to define mock.On call
- word string
type Inflector_Language_Call ¶
Inflector_Language_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Language'
func (*Inflector_Language_Call) Return ¶
func (_c *Inflector_Language_Call) Return(_a0 pluralizer.Language) *Inflector_Language_Call
func (*Inflector_Language_Call) Run ¶
func (_c *Inflector_Language_Call) Run(run func()) *Inflector_Language_Call
func (*Inflector_Language_Call) RunAndReturn ¶
func (_c *Inflector_Language_Call) RunAndReturn(run func() pluralizer.Language) *Inflector_Language_Call
type Inflector_Plural_Call ¶
Inflector_Plural_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Plural'
func (*Inflector_Plural_Call) Return ¶
func (_c *Inflector_Plural_Call) Return(_a0 string) *Inflector_Plural_Call
func (*Inflector_Plural_Call) Run ¶
func (_c *Inflector_Plural_Call) Run(run func(word string)) *Inflector_Plural_Call
func (*Inflector_Plural_Call) RunAndReturn ¶
func (_c *Inflector_Plural_Call) RunAndReturn(run func(string) string) *Inflector_Plural_Call
type Inflector_SetLanguage_Call ¶
Inflector_SetLanguage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLanguage'
func (*Inflector_SetLanguage_Call) Return ¶
func (_c *Inflector_SetLanguage_Call) Return(_a0 pluralizer.Inflector) *Inflector_SetLanguage_Call
func (*Inflector_SetLanguage_Call) Run ¶
func (_c *Inflector_SetLanguage_Call) Run(run func(language pluralizer.Language)) *Inflector_SetLanguage_Call
func (*Inflector_SetLanguage_Call) RunAndReturn ¶
func (_c *Inflector_SetLanguage_Call) RunAndReturn(run func(pluralizer.Language) pluralizer.Inflector) *Inflector_SetLanguage_Call
type Inflector_Singular_Call ¶
Inflector_Singular_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Singular'
func (*Inflector_Singular_Call) Return ¶
func (_c *Inflector_Singular_Call) Return(_a0 string) *Inflector_Singular_Call
func (*Inflector_Singular_Call) Run ¶
func (_c *Inflector_Singular_Call) Run(run func(word string)) *Inflector_Singular_Call
func (*Inflector_Singular_Call) RunAndReturn ¶
func (_c *Inflector_Singular_Call) RunAndReturn(run func(string) string) *Inflector_Singular_Call
type Language ¶
Language is an autogenerated mock type for the Language type
func NewLanguage ¶
NewLanguage creates a new instance of Language. 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 (*Language) EXPECT ¶
func (_m *Language) EXPECT() *Language_Expecter
func (*Language) PluralRuleset ¶
func (_m *Language) PluralRuleset() pluralizer.Ruleset
PluralRuleset provides a mock function with no fields
func (*Language) SingularRuleset ¶
func (_m *Language) SingularRuleset() pluralizer.Ruleset
SingularRuleset provides a mock function with no fields
type Language_Expecter ¶
type Language_Expecter struct {
// contains filtered or unexported fields
}
func (*Language_Expecter) Name ¶
func (_e *Language_Expecter) Name() *Language_Name_Call
Name is a helper method to define mock.On call
func (*Language_Expecter) PluralRuleset ¶
func (_e *Language_Expecter) PluralRuleset() *Language_PluralRuleset_Call
PluralRuleset is a helper method to define mock.On call
func (*Language_Expecter) SingularRuleset ¶
func (_e *Language_Expecter) SingularRuleset() *Language_SingularRuleset_Call
SingularRuleset is a helper method to define mock.On call
type Language_Name_Call ¶
Language_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Language_Name_Call) Return ¶
func (_c *Language_Name_Call) Return(_a0 string) *Language_Name_Call
func (*Language_Name_Call) Run ¶
func (_c *Language_Name_Call) Run(run func()) *Language_Name_Call
func (*Language_Name_Call) RunAndReturn ¶
func (_c *Language_Name_Call) RunAndReturn(run func() string) *Language_Name_Call
type Language_PluralRuleset_Call ¶
Language_PluralRuleset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PluralRuleset'
func (*Language_PluralRuleset_Call) Return ¶
func (_c *Language_PluralRuleset_Call) Return(_a0 pluralizer.Ruleset) *Language_PluralRuleset_Call
func (*Language_PluralRuleset_Call) Run ¶
func (_c *Language_PluralRuleset_Call) Run(run func()) *Language_PluralRuleset_Call
func (*Language_PluralRuleset_Call) RunAndReturn ¶
func (_c *Language_PluralRuleset_Call) RunAndReturn(run func() pluralizer.Ruleset) *Language_PluralRuleset_Call
type Language_SingularRuleset_Call ¶
Language_SingularRuleset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SingularRuleset'
func (*Language_SingularRuleset_Call) Return ¶
func (_c *Language_SingularRuleset_Call) Return(_a0 pluralizer.Ruleset) *Language_SingularRuleset_Call
func (*Language_SingularRuleset_Call) Run ¶
func (_c *Language_SingularRuleset_Call) Run(run func()) *Language_SingularRuleset_Call
func (*Language_SingularRuleset_Call) RunAndReturn ¶
func (_c *Language_SingularRuleset_Call) RunAndReturn(run func() pluralizer.Ruleset) *Language_SingularRuleset_Call
type Pattern ¶
Pattern is an autogenerated mock type for the Pattern type
func NewPattern ¶
NewPattern creates a new instance of Pattern. 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 (*Pattern) EXPECT ¶
func (_m *Pattern) EXPECT() *Pattern_Expecter
type Pattern_Expecter ¶
type Pattern_Expecter struct {
// contains filtered or unexported fields
}
func (*Pattern_Expecter) Matches ¶
func (_e *Pattern_Expecter) Matches(word interface{}) *Pattern_Matches_Call
Matches is a helper method to define mock.On call
- word string
type Pattern_Matches_Call ¶
Pattern_Matches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Matches'
func (*Pattern_Matches_Call) Return ¶
func (_c *Pattern_Matches_Call) Return(_a0 bool) *Pattern_Matches_Call
func (*Pattern_Matches_Call) Run ¶
func (_c *Pattern_Matches_Call) Run(run func(word string)) *Pattern_Matches_Call
func (*Pattern_Matches_Call) RunAndReturn ¶
func (_c *Pattern_Matches_Call) RunAndReturn(run func(string) bool) *Pattern_Matches_Call
type Ruleset ¶
Ruleset is an autogenerated mock type for the Ruleset type
func NewRuleset ¶
NewRuleset creates a new instance of Ruleset. 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 (*Ruleset) AddIrregular ¶
func (_m *Ruleset) AddIrregular(substitutions ...pluralizer.Substitution) pluralizer.Ruleset
AddIrregular provides a mock function with given fields: substitutions
func (*Ruleset) AddUninflected ¶
func (_m *Ruleset) AddUninflected(words ...string) pluralizer.Ruleset
AddUninflected provides a mock function with given fields: words
func (*Ruleset) EXPECT ¶
func (_m *Ruleset) EXPECT() *Ruleset_Expecter
func (*Ruleset) Irregular ¶
func (_m *Ruleset) Irregular() pluralizer.Substitutions
Irregular provides a mock function with no fields
func (*Ruleset) Regular ¶
func (_m *Ruleset) Regular() pluralizer.Transformations
Regular provides a mock function with no fields
func (*Ruleset) Uninflected ¶
func (_m *Ruleset) Uninflected() pluralizer.Patterns
Uninflected provides a mock function with no fields
type Ruleset_AddIrregular_Call ¶
Ruleset_AddIrregular_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddIrregular'
func (*Ruleset_AddIrregular_Call) Return ¶
func (_c *Ruleset_AddIrregular_Call) Return(_a0 pluralizer.Ruleset) *Ruleset_AddIrregular_Call
func (*Ruleset_AddIrregular_Call) Run ¶
func (_c *Ruleset_AddIrregular_Call) Run(run func(substitutions ...pluralizer.Substitution)) *Ruleset_AddIrregular_Call
func (*Ruleset_AddIrregular_Call) RunAndReturn ¶
func (_c *Ruleset_AddIrregular_Call) RunAndReturn(run func(...pluralizer.Substitution) pluralizer.Ruleset) *Ruleset_AddIrregular_Call
type Ruleset_AddUninflected_Call ¶
Ruleset_AddUninflected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUninflected'
func (*Ruleset_AddUninflected_Call) Return ¶
func (_c *Ruleset_AddUninflected_Call) Return(_a0 pluralizer.Ruleset) *Ruleset_AddUninflected_Call
func (*Ruleset_AddUninflected_Call) Run ¶
func (_c *Ruleset_AddUninflected_Call) Run(run func(words ...string)) *Ruleset_AddUninflected_Call
func (*Ruleset_AddUninflected_Call) RunAndReturn ¶
func (_c *Ruleset_AddUninflected_Call) RunAndReturn(run func(...string) pluralizer.Ruleset) *Ruleset_AddUninflected_Call
type Ruleset_Expecter ¶
type Ruleset_Expecter struct {
// contains filtered or unexported fields
}
func (*Ruleset_Expecter) AddIrregular ¶
func (_e *Ruleset_Expecter) AddIrregular(substitutions ...interface{}) *Ruleset_AddIrregular_Call
AddIrregular is a helper method to define mock.On call
- substitutions ...pluralizer.Substitution
func (*Ruleset_Expecter) AddUninflected ¶
func (_e *Ruleset_Expecter) AddUninflected(words ...interface{}) *Ruleset_AddUninflected_Call
AddUninflected is a helper method to define mock.On call
- words ...string
func (*Ruleset_Expecter) Irregular ¶
func (_e *Ruleset_Expecter) Irregular() *Ruleset_Irregular_Call
Irregular is a helper method to define mock.On call
func (*Ruleset_Expecter) Regular ¶
func (_e *Ruleset_Expecter) Regular() *Ruleset_Regular_Call
Regular is a helper method to define mock.On call
func (*Ruleset_Expecter) Uninflected ¶
func (_e *Ruleset_Expecter) Uninflected() *Ruleset_Uninflected_Call
Uninflected is a helper method to define mock.On call
type Ruleset_Irregular_Call ¶
Ruleset_Irregular_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Irregular'
func (*Ruleset_Irregular_Call) Return ¶
func (_c *Ruleset_Irregular_Call) Return(_a0 pluralizer.Substitutions) *Ruleset_Irregular_Call
func (*Ruleset_Irregular_Call) Run ¶
func (_c *Ruleset_Irregular_Call) Run(run func()) *Ruleset_Irregular_Call
func (*Ruleset_Irregular_Call) RunAndReturn ¶
func (_c *Ruleset_Irregular_Call) RunAndReturn(run func() pluralizer.Substitutions) *Ruleset_Irregular_Call
type Ruleset_Regular_Call ¶
Ruleset_Regular_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Regular'
func (*Ruleset_Regular_Call) Return ¶
func (_c *Ruleset_Regular_Call) Return(_a0 pluralizer.Transformations) *Ruleset_Regular_Call
func (*Ruleset_Regular_Call) Run ¶
func (_c *Ruleset_Regular_Call) Run(run func()) *Ruleset_Regular_Call
func (*Ruleset_Regular_Call) RunAndReturn ¶
func (_c *Ruleset_Regular_Call) RunAndReturn(run func() pluralizer.Transformations) *Ruleset_Regular_Call
type Ruleset_Uninflected_Call ¶
Ruleset_Uninflected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Uninflected'
func (*Ruleset_Uninflected_Call) Return ¶
func (_c *Ruleset_Uninflected_Call) Return(_a0 pluralizer.Patterns) *Ruleset_Uninflected_Call
func (*Ruleset_Uninflected_Call) Run ¶
func (_c *Ruleset_Uninflected_Call) Run(run func()) *Ruleset_Uninflected_Call
func (*Ruleset_Uninflected_Call) RunAndReturn ¶
func (_c *Ruleset_Uninflected_Call) RunAndReturn(run func() pluralizer.Patterns) *Ruleset_Uninflected_Call
type Substitution ¶
Substitution is an autogenerated mock type for the Substitution type
func NewSubstitution ¶
func NewSubstitution(t interface {
mock.TestingT
Cleanup(func())
}) *Substitution
NewSubstitution creates a new instance of Substitution. 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 (*Substitution) EXPECT ¶
func (_m *Substitution) EXPECT() *Substitution_Expecter
func (*Substitution) From ¶
func (_m *Substitution) From() string
From provides a mock function with no fields
func (*Substitution) To ¶
func (_m *Substitution) To() string
To provides a mock function with no fields
type Substitution_Expecter ¶
type Substitution_Expecter struct {
// contains filtered or unexported fields
}
func (*Substitution_Expecter) From ¶
func (_e *Substitution_Expecter) From() *Substitution_From_Call
From is a helper method to define mock.On call
func (*Substitution_Expecter) To ¶
func (_e *Substitution_Expecter) To() *Substitution_To_Call
To is a helper method to define mock.On call
type Substitution_From_Call ¶
Substitution_From_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'From'
func (*Substitution_From_Call) Return ¶
func (_c *Substitution_From_Call) Return(_a0 string) *Substitution_From_Call
func (*Substitution_From_Call) Run ¶
func (_c *Substitution_From_Call) Run(run func()) *Substitution_From_Call
func (*Substitution_From_Call) RunAndReturn ¶
func (_c *Substitution_From_Call) RunAndReturn(run func() string) *Substitution_From_Call
type Substitution_To_Call ¶
Substitution_To_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'To'
func (*Substitution_To_Call) Return ¶
func (_c *Substitution_To_Call) Return(_a0 string) *Substitution_To_Call
func (*Substitution_To_Call) Run ¶
func (_c *Substitution_To_Call) Run(run func()) *Substitution_To_Call
func (*Substitution_To_Call) RunAndReturn ¶
func (_c *Substitution_To_Call) RunAndReturn(run func() string) *Substitution_To_Call
type Transformation ¶
Transformation is an autogenerated mock type for the Transformation type
func NewTransformation ¶
func NewTransformation(t interface {
mock.TestingT
Cleanup(func())
}) *Transformation
NewTransformation creates a new instance of Transformation. 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 (*Transformation) Apply ¶
func (_m *Transformation) Apply(word string) string
Apply provides a mock function with given fields: word
func (*Transformation) EXPECT ¶
func (_m *Transformation) EXPECT() *Transformation_Expecter
type Transformation_Apply_Call ¶
Transformation_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*Transformation_Apply_Call) Return ¶
func (_c *Transformation_Apply_Call) Return(_a0 string) *Transformation_Apply_Call
func (*Transformation_Apply_Call) Run ¶
func (_c *Transformation_Apply_Call) Run(run func(word string)) *Transformation_Apply_Call
func (*Transformation_Apply_Call) RunAndReturn ¶
func (_c *Transformation_Apply_Call) RunAndReturn(run func(string) string) *Transformation_Apply_Call
type Transformation_Expecter ¶
type Transformation_Expecter struct {
// contains filtered or unexported fields
}
func (*Transformation_Expecter) Apply ¶
func (_e *Transformation_Expecter) Apply(word interface{}) *Transformation_Apply_Call
Apply is a helper method to define mock.On call
- word string