mocks

package
v0.0.0-...-5f509e1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystem

type FileSystem struct {
	mock.Mock
}

FileSystem is an autogenerated mock type for the FileSystem type

func NewFileSystem

func NewFileSystem(t mockConstructorTestingTNewFileSystem) *FileSystem

NewFileSystem creates a new instance of FileSystem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*FileSystem) Chmod

func (_m *FileSystem) Chmod(name string, mode fs.FileMode) error

Chmod provides a mock function with given fields: name, mode

func (*FileSystem) Copy

func (_m *FileSystem) Copy(dst io.Writer, src io.Reader) (int64, error)

Copy provides a mock function with given fields: dst, src

func (*FileSystem) Create

func (_m *FileSystem) Create(name string) (*os.File, error)

Create provides a mock function with given fields: name

func (*FileSystem) Open

func (_m *FileSystem) Open(name string) (*os.File, error)

Open provides a mock function with given fields: name

func (*FileSystem) ReadDir

func (_m *FileSystem) ReadDir(name string) ([]fs.DirEntry, error)

ReadDir provides a mock function with given fields: name

func (*FileSystem) Stat

func (_m *FileSystem) Stat(name string) (fs.FileInfo, error)

Stat provides a mock function with given fields: name

type MyFileInfo

type MyFileInfo struct {
	mock.Mock
}

MyFileInfo is an autogenerated mock type for the MyFileInfo type

func NewMyFileInfo

func NewMyFileInfo(t mockConstructorTestingTNewMyFileInfo) *MyFileInfo

NewMyFileInfo creates a new instance of MyFileInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MyFileInfo) IsDir

func (_m *MyFileInfo) IsDir() bool

IsDir provides a mock function with given fields:

func (*MyFileInfo) ModTime

func (_m *MyFileInfo) ModTime() time.Time

ModTime provides a mock function with given fields:

func (*MyFileInfo) Mode

func (_m *MyFileInfo) Mode() fs.FileMode

Mode provides a mock function with given fields:

func (*MyFileInfo) Name

func (_m *MyFileInfo) Name() string

Name provides a mock function with given fields:

func (*MyFileInfo) Size

func (_m *MyFileInfo) Size() int64

Size provides a mock function with given fields:

func (*MyFileInfo) Sys

func (_m *MyFileInfo) Sys() interface{}

Sys provides a mock function with given fields:

Jump to

Keyboard shortcuts

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