All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 2m10s
Test / Hakurei (push) Successful in 3m10s
Test / Hpkg (push) Successful in 4m8s
Test / Sandbox (race detector) (push) Successful in 4m26s
Test / Hakurei (race detector) (push) Successful in 4m58s
Test / Flake checks (push) Successful in 1m19s
Fixes regression introduced while integrating Absolute. Signed-off-by: Ophestra <cat@gensokyo.uk>
33 lines
697 B
Go
33 lines
697 B
Go
package container
|
|
|
|
import "testing"
|
|
|
|
func TestMountProcOp(t *testing.T) {
|
|
checkOpsBuilder(t, []opsBuilderTestCase{
|
|
{"proc", new(Ops).Proc(MustAbs("/proc/")), Ops{
|
|
&MountProcOp{Target: MustAbs("/proc/")},
|
|
}},
|
|
})
|
|
|
|
checkOpIs(t, []opIsTestCase{
|
|
{"zero", new(MountProcOp), new(MountProcOp), false},
|
|
|
|
{"target differs", &MountProcOp{
|
|
Target: MustAbs("/proc/nonexistent"),
|
|
}, &MountProcOp{
|
|
Target: MustAbs("/proc/"),
|
|
}, false},
|
|
|
|
{"equals", &MountProcOp{
|
|
Target: MustAbs("/proc/"),
|
|
}, &MountProcOp{
|
|
Target: MustAbs("/proc/"),
|
|
}, true},
|
|
})
|
|
|
|
checkOpMeta(t, []opMetaTestCase{
|
|
{"proc", &MountProcOp{Target: MustAbs("/proc/")},
|
|
"mounting", `proc on "/proc/"`},
|
|
})
|
|
}
|