Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDownloader ¶
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 (_m *MockDownloader) EXPECT() *MockDownloader_Expecter
func (*MockDownloader) FilePath ¶
func (_mock *MockDownloader) FilePath() string
FilePath provides a mock function for the type MockDownloader
type MockDownloader_Download_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 (_c *MockDownloader_Download_Call) Return(err error) *MockDownloader_Download_Call
func (*MockDownloader_Download_Call) Run ¶
func (_c *MockDownloader_Download_Call) Run(run func()) *MockDownloader_Download_Call
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 ¶
func (_e *MockDownloader_Expecter) Download() *MockDownloader_Download_Call
Download is a helper method to define mock.On call
func (*MockDownloader_Expecter) FilePath ¶
func (_e *MockDownloader_Expecter) FilePath() *MockDownloader_FilePath_Call
FilePath is a helper method to define mock.On call
type MockDownloader_FilePath_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 (_c *MockDownloader_FilePath_Call) Return(s string) *MockDownloader_FilePath_Call
func (*MockDownloader_FilePath_Call) Run ¶
func (_c *MockDownloader_FilePath_Call) Run(run func()) *MockDownloader_FilePath_Call
func (*MockDownloader_FilePath_Call) RunAndReturn ¶
func (_c *MockDownloader_FilePath_Call) RunAndReturn(run func() string) *MockDownloader_FilePath_Call