MM-57759: Bump mockery to version 2.42.2 to support go 1.22^ (#26761)
Этот коммит содержится в:
@@ -1,4 +1,4 @@
|
||||
// Code generated by mockery v2.23.2. DO NOT EDIT.
|
||||
// Code generated by mockery v2.42.2. DO NOT EDIT.
|
||||
|
||||
// Regenerate this file using `make filestore-mocks`.
|
||||
|
||||
@@ -23,6 +23,10 @@ type FileBackend struct {
|
||||
func (_m *FileBackend) AppendFile(fr io.Reader, path string) (int64, error) {
|
||||
ret := _m.Called(fr, path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for AppendFile")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(io.Reader, string) (int64, error)); ok {
|
||||
@@ -47,6 +51,10 @@ func (_m *FileBackend) AppendFile(fr io.Reader, path string) (int64, error) {
|
||||
func (_m *FileBackend) CopyFile(oldPath string, newPath string) error {
|
||||
ret := _m.Called(oldPath, newPath)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for CopyFile")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(oldPath, newPath)
|
||||
@@ -61,6 +69,10 @@ func (_m *FileBackend) CopyFile(oldPath string, newPath string) error {
|
||||
func (_m *FileBackend) DriverName() string {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for DriverName")
|
||||
}
|
||||
|
||||
var r0 string
|
||||
if rf, ok := ret.Get(0).(func() string); ok {
|
||||
r0 = rf()
|
||||
@@ -75,6 +87,10 @@ func (_m *FileBackend) DriverName() string {
|
||||
func (_m *FileBackend) FileExists(path string) (bool, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for FileExists")
|
||||
}
|
||||
|
||||
var r0 bool
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
|
||||
@@ -99,6 +115,10 @@ func (_m *FileBackend) FileExists(path string) (bool, error) {
|
||||
func (_m *FileBackend) FileModTime(path string) (time.Time, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for FileModTime")
|
||||
}
|
||||
|
||||
var r0 time.Time
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (time.Time, error)); ok {
|
||||
@@ -123,6 +143,10 @@ func (_m *FileBackend) FileModTime(path string) (time.Time, error) {
|
||||
func (_m *FileBackend) FileSize(path string) (int64, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for FileSize")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (int64, error)); ok {
|
||||
@@ -147,6 +171,10 @@ func (_m *FileBackend) FileSize(path string) (int64, error) {
|
||||
func (_m *FileBackend) ListDirectory(path string) ([]string, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ListDirectory")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]string, error)); ok {
|
||||
@@ -173,6 +201,10 @@ func (_m *FileBackend) ListDirectory(path string) ([]string, error) {
|
||||
func (_m *FileBackend) ListDirectoryRecursively(path string) ([]string, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ListDirectoryRecursively")
|
||||
}
|
||||
|
||||
var r0 []string
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]string, error)); ok {
|
||||
@@ -199,6 +231,10 @@ func (_m *FileBackend) ListDirectoryRecursively(path string) ([]string, error) {
|
||||
func (_m *FileBackend) MoveFile(oldPath string, newPath string) error {
|
||||
ret := _m.Called(oldPath, newPath)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for MoveFile")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string, string) error); ok {
|
||||
r0 = rf(oldPath, newPath)
|
||||
@@ -213,6 +249,10 @@ func (_m *FileBackend) MoveFile(oldPath string, newPath string) error {
|
||||
func (_m *FileBackend) ReadFile(path string) ([]byte, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for ReadFile")
|
||||
}
|
||||
|
||||
var r0 []byte
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) ([]byte, error)); ok {
|
||||
@@ -239,6 +279,10 @@ func (_m *FileBackend) ReadFile(path string) ([]byte, error) {
|
||||
func (_m *FileBackend) Reader(path string) (filestore.ReadCloseSeeker, error) {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for Reader")
|
||||
}
|
||||
|
||||
var r0 filestore.ReadCloseSeeker
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (filestore.ReadCloseSeeker, error)); ok {
|
||||
@@ -265,6 +309,10 @@ func (_m *FileBackend) Reader(path string) (filestore.ReadCloseSeeker, error) {
|
||||
func (_m *FileBackend) RemoveDirectory(path string) error {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveDirectory")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(path)
|
||||
@@ -279,6 +327,10 @@ func (_m *FileBackend) RemoveDirectory(path string) error {
|
||||
func (_m *FileBackend) RemoveFile(path string) error {
|
||||
ret := _m.Called(path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for RemoveFile")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func(string) error); ok {
|
||||
r0 = rf(path)
|
||||
@@ -293,6 +345,10 @@ func (_m *FileBackend) RemoveFile(path string) error {
|
||||
func (_m *FileBackend) TestConnection() error {
|
||||
ret := _m.Called()
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for TestConnection")
|
||||
}
|
||||
|
||||
var r0 error
|
||||
if rf, ok := ret.Get(0).(func() error); ok {
|
||||
r0 = rf()
|
||||
@@ -307,6 +363,10 @@ func (_m *FileBackend) TestConnection() error {
|
||||
func (_m *FileBackend) WriteFile(fr io.Reader, path string) (int64, error) {
|
||||
ret := _m.Called(fr, path)
|
||||
|
||||
if len(ret) == 0 {
|
||||
panic("no return value specified for WriteFile")
|
||||
}
|
||||
|
||||
var r0 int64
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(io.Reader, string) (int64, error)); ok {
|
||||
@@ -327,13 +387,12 @@ func (_m *FileBackend) WriteFile(fr io.Reader, path string) (int64, error) {
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewFileBackend interface {
|
||||
// NewFileBackend creates a new instance of FileBackend. 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 NewFileBackend(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewFileBackend creates a new instance of FileBackend. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewFileBackend(t mockConstructorTestingTNewFileBackend) *FileBackend {
|
||||
}) *FileBackend {
|
||||
mock := &FileBackend{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user