github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/volume/volume_linux_test.go (about) 1 // +build linux 2 3 package volume 4 5 import ( 6 "testing" 7 8 mounttypes "github.com/docker/docker/api/types/mount" 9 ) 10 11 func TestConvertTmpfsOptions(t *testing.T) { 12 type testCase struct { 13 opt mounttypes.TmpfsOptions 14 } 15 cases := []testCase{ 16 {mounttypes.TmpfsOptions{SizeBytes: 1024 * 1024, Mode: 0700}}, 17 } 18 for _, c := range cases { 19 if _, err := ConvertTmpfsOptions(&c.opt); err != nil { 20 t.Fatalf("could not convert %+v to string: %v", c.opt, err) 21 } 22 } 23 }