(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestCheckMountDestInSys(t *testing.T) { |
| 93 | m := mountEntry{ |
| 94 | Mount: &configs.Mount{ |
| 95 | Destination: "/sys/fs/cgroup", |
| 96 | Source: "tmpfs", |
| 97 | Device: "tmpfs", |
| 98 | }, |
| 99 | } |
| 100 | dest := "/rootfs//sys/fs/cgroup" |
| 101 | err := checkProcMount("/rootfs", dest, m) |
| 102 | if err != nil { |
| 103 | t.Fatalf("destination inside /sys should not return an error: %v", err) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func TestCheckMountDestFalsePositive(t *testing.T) { |
| 108 | m := mountEntry{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…