import "github.com/docker/docker/daemon/graphdriver/graphtest"
graphbench_unix.go graphtest_unix.go testutil.go testutil_unix.go
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(b *testing.B, layerCount int, drivername string, driveroptions ...string)
DriverBenchDeepLayerRead benchmarks calls to read a file under a given number of layers.
func DriverBenchDiffApplyN(b *testing.B, fileCount int, drivername string, driveroptions ...string)
DriverBenchDiffApplyN benchmarks calls to diff and apply together
DriverBenchDiffBase benchmarks calls to diff on a root layer
DriverBenchDiffN benchmarks calls to diff on two layers with a provided number of files on the lower and upper layers.
DriverBenchExists benchmarks calls to exist
DriverBenchGetEmpty benchmarks calls to get on an empty layer
DriverTestChanges tests computed changes on a layer matches changes made
DriverTestCreateBase create a base driver and verify.
DriverTestCreateEmpty creates a new image and verifies it is empty and the right metadata
DriverTestCreateSnap Create a driver and snap and verify.
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
DriverTestDiffApply tests diffing and applying produces the same layer
DriverTestSetQuota Create a driver and test setting quota.
GetDriver create a new driver with given name or return an existing driver with the name updating the reference count.
PutDriver removes the driver if it is no longer used and updates the reference count.
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.
Package graphtest imports 21 packages (graph). Updated 2020-10-17. Refresh now. Tools for package owners.