aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/inittmpfs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'container/inittmpfs_test.go')
-rw-r--r--container/inittmpfs_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/container/inittmpfs_test.go b/container/inittmpfs_test.go
index c36820cd..c9245869 100644
--- a/container/inittmpfs_test.go
+++ b/container/inittmpfs_test.go
@@ -6,6 +6,14 @@ import (
)
func TestMountTmpfsOp(t *testing.T) {
+ checkOpsValid(t, []opValidTestCase{
+ {"nil", (*MountTmpfsOp)(nil), false},
+ {"zero", new(MountTmpfsOp), false},
+ {"nil path", &MountTmpfsOp{FSName: "tmpfs"}, false},
+ {"zero fsname", &MountTmpfsOp{Path: MustAbs("/tmp/")}, false},
+ {"valid", &MountTmpfsOp{FSName: "tmpfs", Path: MustAbs("/tmp/")}, true},
+ })
+
checkOpsBuilder(t, []opsBuilderTestCase{
{"runtime", new(Ops).Tmpfs(
MustAbs("/run/user"),