fake

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFakeRootDev

func WithFakeRootDev(t *testing.T, size uint64, toCall func(devPath, devDir string))

WithFakeRootDev calls the specified function passing it the path to the fake block device and its containing directory.

func WithFakeRootDevs

func WithFakeRootDevs(t *testing.T, size uint64, names []string, toCall func(devPaths []string, devDir string))

WithFakeRootDevs calls the specified function passing it the paths to the fake block devices and their containing directory.

func WithFakeRootDevsAndSysfs

func WithFakeRootDevsAndSysfs(t *testing.T, toCall func(devPaths []string, table, devDir, sysfsDir string))

WithFakeRootDevsAndSysfs calls the specified function passing it the paths to the fake block devices and their containing directory, as well as the path to fake sysfs containing uevent entries for the fake devices.

Types

This section is empty.

Jump to

Keyboard shortcuts

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