Documentation ¶
Overview ¶
Package testutil provides utilities which help test the FAT filesystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRandomBuffer ¶
MakeRandomBuffer creates a random buffer of a specified size
Types ¶
type FileFAT ¶
type FileFAT struct {
// contains filtered or unexported fields
}
FileFAT describes a file-backed FAT image which can be treated like a FAT filesystem.
func MkfsFAT ¶
func MkfsFAT(t *testing.T, size string, numFATs, numHiddenSectors, sectorsPerCluster, sectorSize int) *FileFAT
MkfsFAT creates a new FAT filesystem image. The name of the FAT image is returned.
func (*FileFAT) GetDevice ¶
GetDevice opens and returns a file-backed device which corresponds to the image.
func (*FileFAT) GetRawDevice ¶
GetRawDevice opens and returns a file-backed device without a cache.
Click to show internal directories.
Click to hide internal directories.