package graphtest
import "github.com/docker/cli/components/engine/daemon/graphdriver/graphtest"
Index ¶
- func DriverBenchDeepLayerDiff(b *testing.B, layerCount int, drivername string, driveroptions ...string)
- func DriverBenchDeepLayerRead(b *testing.B, layerCount int, drivername string, driveroptions ...string)
- func DriverBenchDiffApplyN(b *testing.B, fileCount int, drivername string, driveroptions ...string)
- func DriverBenchDiffBase(b *testing.B, drivername string, driveroptions ...string)
- func DriverBenchDiffN(b *testing.B, bottom, top int, drivername string, driveroptions ...string)
- func DriverBenchExists(b *testing.B, drivername string, driveroptions ...string)
- func DriverBenchGetEmpty(b *testing.B, drivername string, driveroptions ...string)
- func DriverTestChanges(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestCreateBase(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestCreateEmpty(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestCreateSnap(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestDeepLayerRead(t testing.TB, layerCount int, drivername string, driverOptions ...string)
- func DriverTestDiffApply(t testing.TB, fileCount int, drivername string, driverOptions ...string)
- func DriverTestSetQuota(t *testing.T, drivername string, required bool)
- func GetDriver(t testing.TB, name string, options ...string) graphdriver.Driver
- func PutDriver(t testing.TB)
- type Driver
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 ¶
DriverBenchDiffApplyN benchmarks calls to diff and apply together
func DriverBenchDiffBase ¶
DriverBenchDiffBase benchmarks calls to diff on a root layer
func DriverBenchDiffN ¶
DriverBenchDiffN benchmarks calls to diff on two layers with a provided number of files on the lower and upper layers.
func DriverBenchExists ¶
DriverBenchExists benchmarks calls to exist
func DriverBenchGetEmpty ¶
DriverBenchGetEmpty benchmarks calls to get on an empty layer
func DriverTestChanges ¶
DriverTestChanges tests computed changes on a layer matches changes made
func DriverTestCreateBase ¶
DriverTestCreateBase create a base driver and verify.
func DriverTestCreateEmpty ¶
DriverTestCreateEmpty creates a new image and verifies it is empty and the right metadata
func DriverTestCreateSnap ¶
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 ¶
DriverTestDiffApply tests diffing and applying produces the same layer
func DriverTestSetQuota ¶
DriverTestSetQuota Create a driver and test setting quota.
func GetDriver ¶
GetDriver create a new driver with given name or return an existing driver with the name updating the reference count.
func PutDriver ¶
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.
Source Files ¶
graphbench_unix.go graphtest_unix.go testutil.go testutil_unix.go
- Version
- v17.12.0-ce-rc1+incompatible
- Published
- Dec 7, 2017
- Platform
- linux/amd64
- Imports
- 21 packages
- Last checked
- 12 minutes ago –
Tools for package owners.