Documentation ¶
Index ¶
- type MockParser
- func (_m *MockParser) EXPECT() *MockParser_Expecter
- func (_m *MockParser) ParseConfig(data map[string]interface{}, config *types.Config, configPath string) error
- func (_m *MockParser) ParseStruct(data map[string]interface{}, structure interface{}, configPath string) error
- func (_m *MockParser) ParseTag(tag string) (map[parser.ConfigParam]string, error)
- type MockParser_Expecter
- func (_e *MockParser_Expecter) ParseConfig(data interface{}, config interface{}, configPath interface{}) *MockParser_ParseConfig_Call
- func (_e *MockParser_Expecter) ParseStruct(data interface{}, structure interface{}, configPath interface{}) *MockParser_ParseStruct_Call
- func (_e *MockParser_Expecter) ParseTag(tag interface{}) *MockParser_ParseTag_Call
- type MockParser_ParseConfig_Call
- func (_c *MockParser_ParseConfig_Call) Return(_a0 error) *MockParser_ParseConfig_Call
- func (_c *MockParser_ParseConfig_Call) Run(run func(data map[string]interface{}, config *types.Config, configPath string)) *MockParser_ParseConfig_Call
- func (_c *MockParser_ParseConfig_Call) RunAndReturn(run func(map[string]interface{}, *types.Config, string) error) *MockParser_ParseConfig_Call
- type MockParser_ParseStruct_Call
- func (_c *MockParser_ParseStruct_Call) Return(_a0 error) *MockParser_ParseStruct_Call
- func (_c *MockParser_ParseStruct_Call) Run(...) *MockParser_ParseStruct_Call
- func (_c *MockParser_ParseStruct_Call) RunAndReturn(run func(map[string]interface{}, interface{}, string) error) *MockParser_ParseStruct_Call
- type MockParser_ParseTag_Call
- func (_c *MockParser_ParseTag_Call) Return(_a0 map[parser.ConfigParam]string, _a1 error) *MockParser_ParseTag_Call
- func (_c *MockParser_ParseTag_Call) Run(run func(tag string)) *MockParser_ParseTag_Call
- func (_c *MockParser_ParseTag_Call) RunAndReturn(run func(string) (map[parser.ConfigParam]string, error)) *MockParser_ParseTag_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockParser ¶
MockParser is an autogenerated mock type for the Parser type
func NewMockParser ¶
func NewMockParser(t interface { mock.TestingT Cleanup(func()) }) *MockParser
NewMockParser creates a new instance of MockParser. 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 (*MockParser) EXPECT ¶
func (_m *MockParser) EXPECT() *MockParser_Expecter
func (*MockParser) ParseConfig ¶
func (_m *MockParser) ParseConfig(data map[string]interface{}, config *types.Config, configPath string) error
ParseConfig provides a mock function with given fields: data, config, configPath
func (*MockParser) ParseStruct ¶
func (_m *MockParser) ParseStruct(data map[string]interface{}, structure interface{}, configPath string) error
ParseStruct provides a mock function with given fields: data, structure, configPath
func (*MockParser) ParseTag ¶
func (_m *MockParser) ParseTag(tag string) (map[parser.ConfigParam]string, error)
ParseTag provides a mock function with given fields: tag
type MockParser_Expecter ¶
type MockParser_Expecter struct {
// contains filtered or unexported fields
}
func (*MockParser_Expecter) ParseConfig ¶
func (_e *MockParser_Expecter) ParseConfig(data interface{}, config interface{}, configPath interface{}) *MockParser_ParseConfig_Call
ParseConfig is a helper method to define mock.On call
- data map[string]interface{}
- config *types.Config
- configPath string
func (*MockParser_Expecter) ParseStruct ¶
func (_e *MockParser_Expecter) ParseStruct(data interface{}, structure interface{}, configPath interface{}) *MockParser_ParseStruct_Call
ParseStruct is a helper method to define mock.On call
- data map[string]interface{}
- structure interface{}
- configPath string
func (*MockParser_Expecter) ParseTag ¶
func (_e *MockParser_Expecter) ParseTag(tag interface{}) *MockParser_ParseTag_Call
ParseTag is a helper method to define mock.On call
- tag string
type MockParser_ParseConfig_Call ¶
MockParser_ParseConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseConfig'
func (*MockParser_ParseConfig_Call) Return ¶
func (_c *MockParser_ParseConfig_Call) Return(_a0 error) *MockParser_ParseConfig_Call
func (*MockParser_ParseConfig_Call) Run ¶
func (_c *MockParser_ParseConfig_Call) Run(run func(data map[string]interface{}, config *types.Config, configPath string)) *MockParser_ParseConfig_Call
func (*MockParser_ParseConfig_Call) RunAndReturn ¶
func (_c *MockParser_ParseConfig_Call) RunAndReturn(run func(map[string]interface{}, *types.Config, string) error) *MockParser_ParseConfig_Call
type MockParser_ParseStruct_Call ¶
MockParser_ParseStruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseStruct'
func (*MockParser_ParseStruct_Call) Return ¶
func (_c *MockParser_ParseStruct_Call) Return(_a0 error) *MockParser_ParseStruct_Call
func (*MockParser_ParseStruct_Call) Run ¶
func (_c *MockParser_ParseStruct_Call) Run(run func(data map[string]interface{}, structure interface{}, configPath string)) *MockParser_ParseStruct_Call
func (*MockParser_ParseStruct_Call) RunAndReturn ¶
func (_c *MockParser_ParseStruct_Call) RunAndReturn(run func(map[string]interface{}, interface{}, string) error) *MockParser_ParseStruct_Call
type MockParser_ParseTag_Call ¶
MockParser_ParseTag_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseTag'
func (*MockParser_ParseTag_Call) Return ¶
func (_c *MockParser_ParseTag_Call) Return(_a0 map[parser.ConfigParam]string, _a1 error) *MockParser_ParseTag_Call
func (*MockParser_ParseTag_Call) Run ¶
func (_c *MockParser_ParseTag_Call) Run(run func(tag string)) *MockParser_ParseTag_Call
func (*MockParser_ParseTag_Call) RunAndReturn ¶
func (_c *MockParser_ParseTag_Call) RunAndReturn(run func(string) (map[parser.ConfigParam]string, error)) *MockParser_ParseTag_Call