Select Git revision
Uploader.go 1.05 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"
)
// Uploader is an autogenerated mock type for the Uploader type
type Uploader struct {
mock.Mock
}
// Upload provides a mock function with given fields: src, upload
func (_m *Uploader) Upload(src io.Reader, upload *files.Upload) error {
ret := _m.Called(src, upload)
if len(ret) == 0 {
panic("no return value specified for Upload")
}
var r0 error
if rf, ok := ret.Get(0).(func(io.Reader, *files.Upload) error); ok {
r0 = rf(src, upload)
} else {
r0 = ret.Error(0)
}
return r0
}
// NewUploader creates a new instance of Uploader. 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 NewUploader(t interface {
mock.TestingT
Cleanup(func())
}) *Uploader {
mock := &Uploader{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}