MCPcopy
hub / github.com/opencontainers/runc / TestCheckMountDestFalsePositive

Function TestCheckMountDestFalsePositive

libcontainer/rootfs_linux_test.go:107–120  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

105}
106
107func TestCheckMountDestFalsePositive(t *testing.T) {
108 m := mountEntry{
109 Mount: &configs.Mount{
110 Destination: "/sysfiles/fs/cgroup",
111 Source: "tmpfs",
112 Device: "tmpfs",
113 },
114 }
115 dest := "/rootfs/sysfiles/fs/cgroup"
116 err := checkProcMount("/rootfs", dest, m)
117 if err != nil {
118 t.Fatal(err)
119 }
120}
121
122func TestCheckMountDestNsLastPid(t *testing.T) {
123 m := mountEntry{

Callers

nothing calls this directly

Calls 1

checkProcMountFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…