diff options
Diffstat (limited to 'container/autoroot_test.go')
| -rw-r--r-- | container/autoroot_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/container/autoroot_test.go b/container/autoroot_test.go index 5a77435e..03df7c84 100644 --- a/container/autoroot_test.go +++ b/container/autoroot_test.go @@ -3,6 +3,12 @@ package container import "testing" func TestAutoRootOp(t *testing.T) { + checkOpsValid(t, []opValidTestCase{ + {"nil", (*AutoRootOp)(nil), false}, + {"zero", new(AutoRootOp), false}, + {"valid", &AutoRootOp{Host: MustAbs("/")}, true}, + }) + checkOpsBuilder(t, []opsBuilderTestCase{ {"pd", new(Ops).Root(MustAbs("/"), "048090b6ed8f9ebb10e275ff5d8c0659", BindWritable), Ops{ &AutoRootOp{ |
