package graphtest
import "github.com/docker/docker/daemon/graphdriver/graphtest"
Index ¶
- func DriverTestCreateBase(t *testing.T, drivername string)
- func DriverTestCreateEmpty(t *testing.T, drivername string)
- func DriverTestCreateSnap(t *testing.T, drivername string)
- func GetDriver(t *testing.T, name string) graphdriver.Driver
- func InitLoopbacks() error
- func PutDriver(t *testing.T)
- type Driver
Functions ¶
func DriverTestCreateBase ¶
DriverTestCreateBase create a base driver and verify.
func DriverTestCreateEmpty ¶
DriverTestCreateEmpty creates an new image and verifies it is empty and the right metadata
func DriverTestCreateSnap ¶
DriverTestCreateSnap Create a driver and snap and verify.
func GetDriver ¶
func GetDriver(t *testing.T, name string) graphdriver.Driver
GetDriver create a new driver with given name or return a existing driver with the name updating the reference count.
func InitLoopbacks ¶
func InitLoopbacks() error
InitLoopbacks ensures that the loopback devices are properly created within the system running the device mapper tests.
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 ¶
- Version
- v1.9.0-rc1
- Published
- Oct 14, 2015
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 1 minute ago –
Tools for package owners.