Documentation
¶
Overview ¶
Package mock_file is a generated GoMock package.
Index ¶
- type MockCacheDataAllocator
- type MockCacheDataAllocatorMockRecorder
- type MockFileService
- func (m *MockFileService) Close()
- func (m *MockFileService) Cost() *fileservice.CostAttr
- func (m *MockFileService) Delete(ctx context.Context, filePaths ...string) error
- func (m *MockFileService) EXPECT() *MockFileServiceMockRecorder
- func (m *MockFileService) List(ctx context.Context, dirPath string) ([]fileservice.DirEntry, error)
- func (m *MockFileService) Name() string
- func (m *MockFileService) PrefetchFile(ctx context.Context, filePath string) error
- func (m *MockFileService) Read(ctx context.Context, vector *fileservice.IOVector) error
- func (m *MockFileService) ReadCache(ctx context.Context, vector *fileservice.IOVector) error
- func (m *MockFileService) StatFile(ctx context.Context, filePath string) (*fileservice.DirEntry, error)
- func (m *MockFileService) Write(ctx context.Context, vector fileservice.IOVector) error
- type MockFileServiceMockRecorder
- func (mr *MockFileServiceMockRecorder) Close() *gomock.Call
- func (mr *MockFileServiceMockRecorder) Cost() *gomock.Call
- func (mr *MockFileServiceMockRecorder) Delete(ctx any, filePaths ...any) *gomock.Call
- func (mr *MockFileServiceMockRecorder) List(ctx, dirPath any) *gomock.Call
- func (mr *MockFileServiceMockRecorder) Name() *gomock.Call
- func (mr *MockFileServiceMockRecorder) PrefetchFile(ctx, filePath any) *gomock.Call
- func (mr *MockFileServiceMockRecorder) Read(ctx, vector any) *gomock.Call
- func (mr *MockFileServiceMockRecorder) ReadCache(ctx, vector any) *gomock.Call
- func (mr *MockFileServiceMockRecorder) StatFile(ctx, filePath any) *gomock.Call
- func (mr *MockFileServiceMockRecorder) Write(ctx, vector any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCacheDataAllocator ¶
type MockCacheDataAllocator struct {
// contains filtered or unexported fields
}
MockCacheDataAllocator is a mock of CacheDataAllocator interface.
func NewMockCacheDataAllocator ¶
func NewMockCacheDataAllocator(ctrl *gomock.Controller) *MockCacheDataAllocator
NewMockCacheDataAllocator creates a new mock instance.
func (*MockCacheDataAllocator) Alloc ¶
func (m *MockCacheDataAllocator) Alloc(size int) fscache.Data
Alloc mocks base method.
func (*MockCacheDataAllocator) EXPECT ¶
func (m *MockCacheDataAllocator) EXPECT() *MockCacheDataAllocatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheDataAllocatorMockRecorder ¶
type MockCacheDataAllocatorMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheDataAllocatorMockRecorder is the mock recorder for MockCacheDataAllocator.
type MockFileService ¶
type MockFileService struct {
// contains filtered or unexported fields
}
MockFileService is a mock of FileService interface.
func NewMockFileService ¶
func NewMockFileService(ctrl *gomock.Controller) *MockFileService
NewMockFileService creates a new mock instance.
func (*MockFileService) Cost ¶
func (m *MockFileService) Cost() *fileservice.CostAttr
Cost mocks base method.
func (*MockFileService) Delete ¶
func (m *MockFileService) Delete(ctx context.Context, filePaths ...string) error
Delete mocks base method.
func (*MockFileService) EXPECT ¶
func (m *MockFileService) EXPECT() *MockFileServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFileService) List ¶
func (m *MockFileService) List(ctx context.Context, dirPath string) ([]fileservice.DirEntry, error)
List mocks base method.
func (*MockFileService) PrefetchFile ¶
func (m *MockFileService) PrefetchFile(ctx context.Context, filePath string) error
PrefetchFile mocks base method.
func (*MockFileService) Read ¶
func (m *MockFileService) Read(ctx context.Context, vector *fileservice.IOVector) error
Read mocks base method.
func (*MockFileService) ReadCache ¶
func (m *MockFileService) ReadCache(ctx context.Context, vector *fileservice.IOVector) error
ReadCache mocks base method.
func (*MockFileService) StatFile ¶
func (m *MockFileService) StatFile(ctx context.Context, filePath string) (*fileservice.DirEntry, error)
StatFile mocks base method.
func (*MockFileService) Write ¶
func (m *MockFileService) Write(ctx context.Context, vector fileservice.IOVector) error
Write mocks base method.
type MockFileServiceMockRecorder ¶
type MockFileServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockFileServiceMockRecorder is the mock recorder for MockFileService.
func (*MockFileServiceMockRecorder) Close ¶
func (mr *MockFileServiceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockFileServiceMockRecorder) Cost ¶
func (mr *MockFileServiceMockRecorder) Cost() *gomock.Call
Cost indicates an expected call of Cost.
func (*MockFileServiceMockRecorder) Delete ¶
func (mr *MockFileServiceMockRecorder) Delete(ctx any, filePaths ...any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockFileServiceMockRecorder) List ¶
func (mr *MockFileServiceMockRecorder) List(ctx, dirPath any) *gomock.Call
List indicates an expected call of List.
func (*MockFileServiceMockRecorder) Name ¶
func (mr *MockFileServiceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockFileServiceMockRecorder) PrefetchFile ¶
func (mr *MockFileServiceMockRecorder) PrefetchFile(ctx, filePath any) *gomock.Call
PrefetchFile indicates an expected call of PrefetchFile.
func (*MockFileServiceMockRecorder) Read ¶
func (mr *MockFileServiceMockRecorder) Read(ctx, vector any) *gomock.Call
Read indicates an expected call of Read.
func (*MockFileServiceMockRecorder) ReadCache ¶
func (mr *MockFileServiceMockRecorder) ReadCache(ctx, vector any) *gomock.Call
ReadCache indicates an expected call of ReadCache.