(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestAttachDetachLoopDevice(t *testing.T) { |
| 93 | testutil.RequiresRoot(t) |
| 94 | |
| 95 | path := createTempFile(t) |
| 96 | |
| 97 | dev, err := AttachLoopDevice(path) |
| 98 | require.NoError(t, err) |
| 99 | |
| 100 | err = DetachLoopDevice(dev) |
| 101 | require.NoError(t, err) |
| 102 | } |
| 103 | |
| 104 | func TestAutoclearTrueLoop(t *testing.T) { |
| 105 | testutil.RequiresRoot(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…