Documentation ¶
Index ¶
- type MockMiniParser
- type MockMiniParser_Expecter
- type MockMiniParser_ParseStruct_Call
- func (_c *MockMiniParser_ParseStruct_Call) Return(_a0 error) *MockMiniParser_ParseStruct_Call
- func (_c *MockMiniParser_ParseStruct_Call) Run(...) *MockMiniParser_ParseStruct_Call
- func (_c *MockMiniParser_ParseStruct_Call) RunAndReturn(run func(map[string]interface{}, interface{}, string) error) *MockMiniParser_ParseStruct_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMiniParser ¶
MockMiniParser is a minimal parser
func NewMockMiniParser ¶
func NewMockMiniParser(t interface { mock.TestingT Cleanup(func()) }) *MockMiniParser
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 (*MockMiniParser) ParseStruct ¶
func (_m *MockMiniParser) ParseStruct(data map[string]interface{}, structure interface{}, configPath string) error
ParseStruct provides a mock function with given fields: data, structure, configPath
type MockMiniParser_Expecter ¶
type MockMiniParser_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMiniParser_Expecter) ParseStruct ¶
func (_e *MockMiniParser_Expecter) ParseStruct(data interface{}, structure interface{}, configPath interface{}) *MockMiniParser_ParseStruct_Call
ParseStruct is a helper method to define mock.On call
- data map[string]interface{}
- structure interface{}
- configPath string
type MockMiniParser_ParseStruct_Call ¶
MockMiniParser_ParseStruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseStruct'
func (*MockMiniParser_ParseStruct_Call) Return ¶
func (_c *MockMiniParser_ParseStruct_Call) Return(_a0 error) *MockMiniParser_ParseStruct_Call
func (*MockMiniParser_ParseStruct_Call) Run ¶
func (_c *MockMiniParser_ParseStruct_Call) Run(run func(data map[string]interface{}, structure interface{}, configPath string)) *MockMiniParser_ParseStruct_Call
func (*MockMiniParser_ParseStruct_Call) RunAndReturn ¶
func (_c *MockMiniParser_ParseStruct_Call) RunAndReturn(run func(map[string]interface{}, interface{}, string) error) *MockMiniParser_ParseStruct_Call
Click to show internal directories.
Click to hide internal directories.