mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDownloader

type MockDownloader struct {
	mock.Mock
}

MockDownloader is an autogenerated mock type for the Downloader type

func NewMockDownloader

func NewMockDownloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDownloader

NewMockDownloader creates a new instance of MockDownloader. 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 (*MockDownloader) Download

func (_mock *MockDownloader) Download() error

Download provides a mock function for the type MockDownloader

func (*MockDownloader) EXPECT

func (*MockDownloader) FilePath

func (_mock *MockDownloader) FilePath() string

FilePath provides a mock function for the type MockDownloader

type MockDownloader_Download_Call

type MockDownloader_Download_Call struct {
	*mock.Call
}

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

func (*MockDownloader_Download_Call) Return

func (*MockDownloader_Download_Call) Run

func (*MockDownloader_Download_Call) RunAndReturn

func (_c *MockDownloader_Download_Call) RunAndReturn(run func() error) *MockDownloader_Download_Call

type MockDownloader_Expecter

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

func (*MockDownloader_Expecter) Download

Download is a helper method to define mock.On call

func (*MockDownloader_Expecter) FilePath

FilePath is a helper method to define mock.On call

type MockDownloader_FilePath_Call

type MockDownloader_FilePath_Call struct {
	*mock.Call
}

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

func (*MockDownloader_FilePath_Call) Return

func (*MockDownloader_FilePath_Call) Run

func (*MockDownloader_FilePath_Call) RunAndReturn

Jump to

Keyboard shortcuts

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