graphtest

package
v20.10.38+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverBenchDeepLayerDiff

func DriverBenchDeepLayerDiff(b *testing.B, layerCount int, drivername string, driveroptions ...string)

DriverBenchDeepLayerDiff benchmarks calls to diff on top of a given number of layers.

func DriverBenchDeepLayerRead

func DriverBenchDeepLayerRead(b *testing.B, layerCount int, drivername string, driveroptions ...string)

DriverBenchDeepLayerRead benchmarks calls to read a file under a given number of layers.

func DriverBenchDiffApplyN

func DriverBenchDiffApplyN(b *testing.B, fileCount int, drivername string, driveroptions ...string)

DriverBenchDiffApplyN benchmarks calls to diff and apply together

func DriverBenchDiffBase

func DriverBenchDiffBase(b *testing.B, drivername string, driveroptions ...string)

DriverBenchDiffBase benchmarks calls to diff on a root layer

func DriverBenchDiffN

func DriverBenchDiffN(b *testing.B, bottom, top int, drivername string, driveroptions ...string)

DriverBenchDiffN benchmarks calls to diff on two layers with a provided number of files on the lower and upper layers.

func DriverBenchExists

func DriverBenchExists(b *testing.B, drivername string, driveroptions ...string)

DriverBenchExists benchmarks calls to exist

func DriverBenchGetEmpty

func DriverBenchGetEmpty(b *testing.B, drivername string, driveroptions ...string)

DriverBenchGetEmpty benchmarks calls to get on an empty layer

func DriverTestChanges

func DriverTestChanges(t testing.TB, drivername string, driverOptions ...string)

DriverTestChanges tests computed changes on a layer matches changes made

func DriverTestCreateBase

func DriverTestCreateBase(t testing.TB, drivername string, driverOptions ...string)

DriverTestCreateBase create a base driver and verify.

func DriverTestCreateEmpty

func DriverTestCreateEmpty(t testing.TB, drivername string, driverOptions ...string)

DriverTestCreateEmpty creates a new image and verifies it is empty and the right metadata

func DriverTestCreateSnap

func DriverTestCreateSnap(t testing.TB, drivername string, driverOptions ...string)

DriverTestCreateSnap Create a driver and snap and verify.

func DriverTestDeepLayerRead

func DriverTestDeepLayerRead(t testing.TB, layerCount int, drivername string, driverOptions ...string)

DriverTestDeepLayerRead reads a file from a lower layer under a given number of layers

func DriverTestDiffApply

func DriverTestDiffApply(t testing.TB, fileCount int, drivername string, driverOptions ...string)

DriverTestDiffApply tests diffing and applying produces the same layer

func DriverTestList

func DriverTestList(t *testing.T, drivername string)

func DriverTestSetQuota

func DriverTestSetQuota(t *testing.T, drivername string, required bool)

DriverTestSetQuota Create a driver and test setting quota.

func GetDriver

func GetDriver(t testing.TB, name string, options ...string) graphdriver.Driver

GetDriver create a new driver with given name or return an existing driver with the name updating the reference count.

func PutDriver

func PutDriver(t testing.TB)

PutDriver removes the driver if it is no longer used and updates the reference count.

Types

type Driver

type Driver struct {
	graphdriver.Driver
	// contains filtered or unexported fields
}

Driver conforms to graphdriver.Driver interface and contains information such as root and reference count of the number of clients using it. This helps in testing drivers added into the framework.

Jump to

Keyboard shortcuts

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