Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequiresCgroupV2 ¶
RequiresCgroupV2 skips if there is no cgroupv2 mount point.
func RequiresCommands ¶
func RequiresCommands(cmds ...string)
RequiresCommands exits if required command is not found.
Types ¶
type FlakeyDevice ¶
type FlakeyDevice interface { // RootFS returns root filesystem. RootFS() string // PowerFailure simulates power failure with drop all the writes. PowerFailure(mntOpt string) error dmflakey.Flakey }
FlakeyDevice extends dmflakey.Flakey interface.
func InitFlakeyDevice ¶
func InitFlakeyDevice(t *testing.T, name string, fsType dmflakey.FSType, mntOpt string) FlakeyDevice
InitFlakeyDevice returns FlakeyDevice instance with a given filesystem.
Click to show internal directories.
Click to hide internal directories.