graphtest

package
v20.10.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverBenchDeepLayerDiff added in v1.12.0

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 added in v1.12.0

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 added in v1.12.0

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

DriverBenchDiffApplyN benchmarks calls to diff and apply together

func DriverBenchDiffBase added in v1.12.0

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

DriverBenchDiffBase benchmarks calls to diff on a root layer

func DriverBenchDiffN added in v1.12.0

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 added in v1.12.0

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

DriverBenchExists benchmarks calls to exist

func DriverBenchGetEmpty added in v1.12.0

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

DriverBenchGetEmpty benchmarks calls to get on an empty layer

func DriverTestChanges added in v1.12.0

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 added in v1.12.0

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 added in v1.12.0

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

DriverTestDiffApply tests diffing and applying produces the same layer

func DriverTestSetQuota added in v1.12.0

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