(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func TestCheckProcMountOnProc(t *testing.T) { |
| 28 | m := mountEntry{ |
| 29 | Mount: &configs.Mount{ |
| 30 | Destination: "/proc", |
| 31 | Source: "foo", |
| 32 | Device: "proc", |
| 33 | }, |
| 34 | } |
| 35 | dest := "/rootfs/proc/" |
| 36 | err := checkProcMount("/rootfs", dest, m) |
| 37 | if err != nil { |
| 38 | t.Fatalf("procfs type mount on /proc should not return an error: %v", err) |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func TestCheckBindMountOnProc(t *testing.T) { |
| 43 | m := mountEntry{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…