Documentation ¶
Overview ¶
Package vfs wraps the mock fs from vfs package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultFilesystem ¶
func SetDefaultFilesystem()
SetDefaultFilesystem sets the current fs manager to vfs.DefaultFilesystem, which should be vfs.NativeFilesystem.
func SetFilesystem ¶
func SetFilesystem(fs vfs.Filesystem)
SetFilesystem sets the current filesystem manager to the provided one.
Types ¶
type MockFilesystem ¶
type MockFilesystem struct {
*vfs.MockFilesystem
}
MockFilesystem wraps vfs.MockFilesystem.
func NewMockFilesystem ¶
func NewMockFilesystem(files ...string) *MockFilesystem
NewFilesystem returns a new mock filesystem with the supplied filenames created in the root tree, if any...
Click to show internal directories.
Click to hide internal directories.