mock

package
v0.0.0-...-36b1106 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullFile

type FullFile interface {
	fsx.File
	io.ReaderAt
	io.WriterAt
	io.Seeker
}

FullFile is a helper interface for mock generation. It combines fsx.File with io.ReaderAt, io.WriterAt, and io.Seeker.

type MockFullFile

type MockFullFile struct {
	// contains filtered or unexported fields
}

MockFullFile is a mock of FullFile interface.

func NewMockFullFile

func NewMockFullFile(ctrl *gomock.Controller) *MockFullFile

NewMockFullFile creates a new mock instance.

func (*MockFullFile) Close

func (m *MockFullFile) Close() error

Close mocks base method.

func (*MockFullFile) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFullFile) Read

func (m *MockFullFile) Read(arg0 []byte) (int, error)

Read mocks base method.

func (*MockFullFile) ReadAt

func (m *MockFullFile) ReadAt(p []byte, off int64) (int, error)

ReadAt mocks base method.

func (*MockFullFile) Seek

func (m *MockFullFile) Seek(offset int64, whence int) (int64, error)

Seek mocks base method.

func (*MockFullFile) Stat

func (m *MockFullFile) Stat() (fs.FileInfo, error)

Stat mocks base method.

func (*MockFullFile) Truncate

func (m *MockFullFile) Truncate(size int64) error

Truncate mocks base method.

func (*MockFullFile) Write

func (m *MockFullFile) Write(p []byte) (int, error)

Write mocks base method.

func (*MockFullFile) WriteAt

func (m *MockFullFile) WriteAt(p []byte, off int64) (int, error)

WriteAt mocks base method.

type MockFullFileMockRecorder

type MockFullFileMockRecorder struct {
	// contains filtered or unexported fields
}

MockFullFileMockRecorder is the mock recorder for MockFullFile.

func (*MockFullFileMockRecorder) Close

func (mr *MockFullFileMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockFullFileMockRecorder) Read

func (mr *MockFullFileMockRecorder) Read(arg0 any) *gomock.Call

Read indicates an expected call of Read.

func (*MockFullFileMockRecorder) ReadAt

func (mr *MockFullFileMockRecorder) ReadAt(p, off any) *gomock.Call

ReadAt indicates an expected call of ReadAt.

func (*MockFullFileMockRecorder) Seek

func (mr *MockFullFileMockRecorder) Seek(offset, whence any) *gomock.Call

Seek indicates an expected call of Seek.

func (*MockFullFileMockRecorder) Stat

func (mr *MockFullFileMockRecorder) Stat() *gomock.Call

Stat indicates an expected call of Stat.

func (*MockFullFileMockRecorder) Truncate

func (mr *MockFullFileMockRecorder) Truncate(size any) *gomock.Call

Truncate indicates an expected call of Truncate.

func (*MockFullFileMockRecorder) Write

func (mr *MockFullFileMockRecorder) Write(p any) *gomock.Call

Write indicates an expected call of Write.

func (*MockFullFileMockRecorder) WriteAt

func (mr *MockFullFileMockRecorder) WriteAt(p, off any) *gomock.Call

WriteAt indicates an expected call of WriteAt.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL