96 lines
1.8 KiB
Go
96 lines
1.8 KiB
Go
|
// Code generated by mockery v2.14.0. DO NOT EDIT.
|
||
|
|
||
|
package mocks
|
||
|
|
||
|
import mock "github.com/stretchr/testify/mock"
|
||
|
|
||
|
// File is an autogenerated mock type for the File type
|
||
|
type File struct {
|
||
|
mock.Mock
|
||
|
}
|
||
|
|
||
|
// Close provides a mock function with given fields:
|
||
|
func (_m *File) Close() error {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 error
|
||
|
if rf, ok := ret.Get(0).(func() error); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
r0 = ret.Error(0)
|
||
|
}
|
||
|
|
||
|
return r0
|
||
|
}
|
||
|
|
||
|
// Seek provides a mock function with given fields: _a0, _a1
|
||
|
func (_m *File) Seek(_a0 int64, _a1 int) (int64, error) {
|
||
|
ret := _m.Called(_a0, _a1)
|
||
|
|
||
|
var r0 int64
|
||
|
if rf, ok := ret.Get(0).(func(int64, int) int64); ok {
|
||
|
r0 = rf(_a0, _a1)
|
||
|
} else {
|
||
|
r0 = ret.Get(0).(int64)
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func(int64, int) error); ok {
|
||
|
r1 = rf(_a0, _a1)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
// Sync provides a mock function with given fields:
|
||
|
func (_m *File) Sync() error {
|
||
|
ret := _m.Called()
|
||
|
|
||
|
var r0 error
|
||
|
if rf, ok := ret.Get(0).(func() error); ok {
|
||
|
r0 = rf()
|
||
|
} else {
|
||
|
r0 = ret.Error(0)
|
||
|
}
|
||
|
|
||
|
return r0
|
||
|
}
|
||
|
|
||
|
// Write provides a mock function with given fields: _a0
|
||
|
func (_m *File) Write(_a0 []byte) (int, error) {
|
||
|
ret := _m.Called(_a0)
|
||
|
|
||
|
var r0 int
|
||
|
if rf, ok := ret.Get(0).(func([]byte) int); ok {
|
||
|
r0 = rf(_a0)
|
||
|
} else {
|
||
|
r0 = ret.Get(0).(int)
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func([]byte) error); ok {
|
||
|
r1 = rf(_a0)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|
||
|
|
||
|
type mockConstructorTestingTNewFile interface {
|
||
|
mock.TestingT
|
||
|
Cleanup(func())
|
||
|
}
|
||
|
|
||
|
// NewFile creates a new instance of File. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||
|
func NewFile(t mockConstructorTestingTNewFile) *File {
|
||
|
mock := &File{}
|
||
|
mock.Mock.Test(t)
|
||
|
|
||
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
||
|
|
||
|
return mock
|
||
|
}
|