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 ImageLoader

type ImageLoader struct {
	mock.Mock
}

ImageLoader is an autogenerated mock type for the imageLoader type

func NewImageLoader

func NewImageLoader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ImageLoader

NewImageLoader creates a new instance of ImageLoader. 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 (*ImageLoader) AddModsDirectory

func (_m *ImageLoader) AddModsDirectory(_a0 string)

AddModsDirectory provides a mock function with given fields: _a0

func (*ImageLoader) EXPECT

func (_m *ImageLoader) EXPECT() *ImageLoader_Expecter

func (*ImageLoader) Load

func (_m *ImageLoader) Load(_a0 string) (image.Image, error)

Load provides a mock function with given fields: _a0

type ImageLoader_AddModsDirectory_Call

type ImageLoader_AddModsDirectory_Call struct {
	*mock.Call
}

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

func (*ImageLoader_AddModsDirectory_Call) Return

func (*ImageLoader_AddModsDirectory_Call) Run

func (*ImageLoader_AddModsDirectory_Call) RunAndReturn

type ImageLoader_Expecter

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

func (*ImageLoader_Expecter) AddModsDirectory

func (_e *ImageLoader_Expecter) AddModsDirectory(_a0 interface{}) *ImageLoader_AddModsDirectory_Call

AddModsDirectory is a helper method to define mock.On call

  • _a0 string

func (*ImageLoader_Expecter) Load

func (_e *ImageLoader_Expecter) Load(_a0 interface{}) *ImageLoader_Load_Call

Load is a helper method to define mock.On call

  • _a0 string

type ImageLoader_Load_Call

type ImageLoader_Load_Call struct {
	*mock.Call
}

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

func (*ImageLoader_Load_Call) Return

func (*ImageLoader_Load_Call) Run

func (_c *ImageLoader_Load_Call) Run(run func(_a0 string)) *ImageLoader_Load_Call

func (*ImageLoader_Load_Call) RunAndReturn

func (_c *ImageLoader_Load_Call) RunAndReturn(run func(string) (image.Image, error)) *ImageLoader_Load_Call

Jump to

Keyboard shortcuts

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