parser

package
v0.0.0-...-a5e107f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockParser

type MockParser struct {
	mock.Mock
}

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

type MockParser_ParseConfig_Call struct {
	*mock.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 (*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

type MockParser_ParseStruct_Call struct {
	*mock.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 (*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

type MockParser_ParseTag_Call struct {
	*mock.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 (*MockParser_ParseTag_Call) Run

func (*MockParser_ParseTag_Call) RunAndReturn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL