Documentation
¶
Overview ¶
Package vfstest provides facilities for interacting with or faking filesystems during tests and benchmarks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DiscardFile vfs.File = (*discardFile)(nil)
DiscardFile implements vfs.File but discards all written data and reads without mutating input buffers.
Functions ¶
func WithOpenFileTracking ¶
WithOpenFileTracking wraps a FS, returning an FS that will monitor open files. The second return value is a func that when invoked prints the stacks that opened the currently open files. If no files are open, the func writes nothing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.