github.com/fcwu/docker@v1.4.2-0.20150115145920-2a69ca89f0df/daemon/graphdriver/btrfs/btrfs_test.go (about)

     1  package btrfs
     2  
     3  import (
     4  	"github.com/docker/docker/daemon/graphdriver/graphtest"
     5  	"testing"
     6  )
     7  
     8  // This avoids creating a new driver for each test if all tests are run
     9  // Make sure to put new tests between TestBtrfsSetup and TestBtrfsTeardown
    10  func TestBtrfsSetup(t *testing.T) {
    11  	graphtest.GetDriver(t, "btrfs")
    12  }
    13  
    14  func TestBtrfsCreateEmpty(t *testing.T) {
    15  	graphtest.DriverTestCreateEmpty(t, "btrfs")
    16  }
    17  
    18  func TestBtrfsCreateBase(t *testing.T) {
    19  	graphtest.DriverTestCreateBase(t, "btrfs")
    20  }
    21  
    22  func TestBtrfsCreateSnap(t *testing.T) {
    23  	graphtest.DriverTestCreateSnap(t, "btrfs")
    24  }
    25  
    26  func TestBtrfsTeardown(t *testing.T) {
    27  	graphtest.PutDriver(t)
    28  }