Documentation
¶
Overview ¶
Package downloader_test is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDownloader ¶
type MockDownloader struct {
// contains filtered or unexported fields
}
MockDownloader is a mock of Downloader interface.
func NewMockDownloader ¶
func NewMockDownloader(ctrl *gomock.Controller) *MockDownloader
NewMockDownloader creates a new mock instance.
func (*MockDownloader) Download ¶
func (m *MockDownloader) Download(ctx context.Context, uri, destPath string) error
Download mocks base method.
func (*MockDownloader) EXPECT ¶
func (m *MockDownloader) EXPECT() *MockDownloaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDownloader) FetchStream ¶
func (m *MockDownloader) FetchStream(ctx context.Context, uri string) (io.ReadCloser, error)
FetchStream mocks base method.
type MockDownloaderMockRecorder ¶
type MockDownloaderMockRecorder struct {
// contains filtered or unexported fields
}
MockDownloaderMockRecorder is the mock recorder for MockDownloader.
func (*MockDownloaderMockRecorder) Download ¶
func (mr *MockDownloaderMockRecorder) Download(ctx, uri, destPath any) *gomock.Call
Download indicates an expected call of Download.
func (*MockDownloaderMockRecorder) FetchStream ¶
func (mr *MockDownloaderMockRecorder) FetchStream(ctx, uri any) *gomock.Call
FetchStream indicates an expected call of FetchStream.
Click to show internal directories.
Click to hide internal directories.