partutiltest

package
v0.0.0-...-b71eeb1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupFakeDisk

func SetupFakeDisk(copyName, srcPrefix string, t *testing.T, testNames *TestNames)

SetupFakeDisk copys a file to simulate the disk and work on the copy for tests.

func TearDown

func TearDown(testNames *TestNames)

TearDown delete the loop device and the copied file for testing environment.

Types

type TestNames

type TestNames struct {
	CopyFile string
	DiskName string
}

TestNames is used for testing environment setup and teardown.

Jump to

Keyboard shortcuts

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