moby/volume/volume_linux_test.go
Akihiro Suda 18768fdc2e api: add TypeTmpfs to api/types/mount
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
2016-10-28 08:38:32 +00:00

23 lines
460 B
Go

// +build linux
package volume
import (
"testing"
mounttypes "github.com/docker/docker/api/types/mount"
)
func TestConvertTmpfsOptions(t *testing.T) {
type testCase struct {
opt mounttypes.TmpfsOptions
}
cases := []testCase{
{mounttypes.TmpfsOptions{SizeBytes: 1024 * 1024, Mode: 0700}},
}
for _, c := range cases {
if _, err := ConvertTmpfsOptions(&c.opt); err != nil {
t.Fatalf("could not convert %+v to string: %v", c.opt, err)
}
}
}