local

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMiniParser

type MockMiniParser struct {
	mock.Mock
}

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

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

Jump to

Keyboard shortcuts

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