Select Git revision
field_json.go
Downloader.go 1.06 KiB
// Code generated by mockery v2.43.2. DO NOT EDIT.
package mocks
import (
io "io"
files "git.perx.ru/perxis/perxis-go/files"
mock "github.com/stretchr/testify/mock"
)
// Downloader is an autogenerated mock type for the Downloader type
type Downloader struct {
mock.Mock
}
// Download provides a mock function with given fields: dst, file
func (_m *Downloader) Download(dst io.Writer, file *files.File) error {
ret := _m.Called(dst, file)
if len(ret) == 0 {
panic("no return value specified for Download")
}
var r0 error
if rf, ok := ret.Get(0).(func(io.Writer, *files.File) error); ok {
r0 = rf(dst, file)
} else {
r0 = ret.Error(0)
}
return r0
}
// NewDownloader creates a new instance of Downloader. 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 NewDownloader(t interface {
mock.TestingT
Cleanup(func())
}) *Downloader {
mock := &Downloader{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}