fstest

package
v1.183.4 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockStdin added in v1.162.5

func MockStdin(t *testing.T, input string) func()

Types

type CreateErrorFs added in v1.63.1

type CreateErrorFs struct {
	afero.MemMapFs
	DenyPath string
}

func (*CreateErrorFs) Create added in v1.63.1

func (m *CreateErrorFs) Create(name string) (afero.File, error)

type OpenErrorFs

type OpenErrorFs struct {
	afero.MemMapFs
	DenyPath string
}

func (*OpenErrorFs) Open

func (m *OpenErrorFs) Open(name string) (afero.File, error)

func (*OpenErrorFs) OpenFile

func (m *OpenErrorFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)

type StatErrorFs added in v1.63.1

type StatErrorFs struct {
	afero.MemMapFs
	DenyPath string
}

func (*StatErrorFs) Stat added in v1.63.1

func (m *StatErrorFs) Stat(name string) (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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