mocks

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2025 License: GPL-3.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 ModLoader

type ModLoader struct {
	mock.Mock
}

ModLoader is an autogenerated mock type for the modLoader type

func NewModLoader

func NewModLoader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ModLoader

NewModLoader creates a new instance of ModLoader. 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 (*ModLoader) EXPECT

func (_m *ModLoader) EXPECT() *ModLoader_Expecter

func (*ModLoader) Load

func (_m *ModLoader) Load(path string) (io.ReadCloser, error)

Load provides a mock function with given fields: path

type ModLoader_Expecter

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

func (*ModLoader_Expecter) Load

func (_e *ModLoader_Expecter) Load(path interface{}) *ModLoader_Load_Call

Load is a helper method to define mock.On call

  • path string

type ModLoader_Load_Call

type ModLoader_Load_Call struct {
	*mock.Call
}

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

func (*ModLoader_Load_Call) Return

func (*ModLoader_Load_Call) Run

func (_c *ModLoader_Load_Call) Run(run func(path string)) *ModLoader_Load_Call

func (*ModLoader_Load_Call) RunAndReturn

func (_c *ModLoader_Load_Call) RunAndReturn(run func(string) (io.ReadCloser, error)) *ModLoader_Load_Call

Jump to

Keyboard shortcuts

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