mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfLoader

type ConfLoader struct {
	mock.Mock
}

ConfLoader is an autogenerated mock type for the ConfLoader type

func NewConfLoader

func NewConfLoader(t mockConstructorTestingTNewConfLoader) *ConfLoader

NewConfLoader creates a new instance of ConfLoader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConfLoader) EXPECT

func (_m *ConfLoader) EXPECT() *ConfLoader_Expecter

func (*ConfLoader) LoadConf

func (_m *ConfLoader) LoadConf(bytes []byte) (*types.NetConf, error)

LoadConf provides a mock function with given fields: bytes

type ConfLoader_Expecter

type ConfLoader_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConfLoader_Expecter) LoadConf

func (_e *ConfLoader_Expecter) LoadConf(bytes interface{}) *ConfLoader_LoadConf_Call

LoadConf is a helper method to define mock.On call

  • bytes []byte

type ConfLoader_LoadConf_Call

type ConfLoader_LoadConf_Call struct {
	*mock.Call
}

ConfLoader_LoadConf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadConf'

func (*ConfLoader_LoadConf_Call) Return

func (*ConfLoader_LoadConf_Call) Run

func (_c *ConfLoader_LoadConf_Call) Run(run func(bytes []byte)) *ConfLoader_LoadConf_Call

func (*ConfLoader_LoadConf_Call) RunAndReturn

func (_c *ConfLoader_LoadConf_Call) RunAndReturn(run func([]byte) (*types.NetConf, error)) *ConfLoader_LoadConf_Call

Jump to

Keyboard shortcuts

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