Documentation
¶
Index ¶
- type ImageLoader
- type ImageLoader_AddModsDirectory_Call
- func (_c *ImageLoader_AddModsDirectory_Call) Return() *ImageLoader_AddModsDirectory_Call
- func (_c *ImageLoader_AddModsDirectory_Call) Run(run func(_a0 string)) *ImageLoader_AddModsDirectory_Call
- func (_c *ImageLoader_AddModsDirectory_Call) RunAndReturn(run func(string)) *ImageLoader_AddModsDirectory_Call
- type ImageLoader_Expecter
- type ImageLoader_Load_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageLoader ¶
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
type ImageLoader_AddModsDirectory_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 (_c *ImageLoader_AddModsDirectory_Call) Return() *ImageLoader_AddModsDirectory_Call
func (*ImageLoader_AddModsDirectory_Call) Run ¶
func (_c *ImageLoader_AddModsDirectory_Call) Run(run func(_a0 string)) *ImageLoader_AddModsDirectory_Call
func (*ImageLoader_AddModsDirectory_Call) RunAndReturn ¶
func (_c *ImageLoader_AddModsDirectory_Call) RunAndReturn(run func(string)) *ImageLoader_AddModsDirectory_Call
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 ¶
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 (_c *ImageLoader_Load_Call) Return(_a0 image.Image, _a1 error) *ImageLoader_Load_Call
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