(t *testing.T)
| 105 | } |
| 106 | |
| 107 | func 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 | |
| 122 | func TestCheckMountDestNsLastPid(t *testing.T) { |
| 123 | m := mountEntry{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…