github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/daemon/graphdriver/zfs/zfs_test.go (about) 1 //go:build linux 2 3 package zfs // import "github.com/Prakhar-Agarwal-byte/moby/daemon/graphdriver/zfs" 4 5 import ( 6 "testing" 7 8 "github.com/Prakhar-Agarwal-byte/moby/daemon/graphdriver/graphtest" 9 ) 10 11 // This avoids creating a new driver for each test if all tests are run 12 // Make sure to put new tests between TestZfsSetup and TestZfsTeardown 13 func TestZfsSetup(t *testing.T) { 14 graphtest.GetDriver(t, "zfs") 15 } 16 17 func TestZfsCreateEmpty(t *testing.T) { 18 graphtest.DriverTestCreateEmpty(t, "zfs") 19 } 20 21 func TestZfsCreateBase(t *testing.T) { 22 graphtest.DriverTestCreateBase(t, "zfs") 23 } 24 25 func TestZfsCreateSnap(t *testing.T) { 26 graphtest.DriverTestCreateSnap(t, "zfs") 27 } 28 29 func TestZfsSetQuota(t *testing.T) { 30 graphtest.DriverTestSetQuota(t, "zfs", true) 31 } 32 33 func TestZfsTeardown(t *testing.T) { 34 graphtest.PutDriver(t) 35 }