mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
18768fdc2e
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
23 lines
460 B
Go
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)
|
|
}
|
|
}
|
|
}
|