(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestNonExistingLoop(t *testing.T) { |
| 51 | testutil.RequiresRoot(t) |
| 52 | |
| 53 | backingFile := "setup-loop-test-no-such-file" |
| 54 | _, err := SetupLoop(backingFile, LoopParams{}) |
| 55 | if err == nil { |
| 56 | t.Fatalf("setupLoop with non-existing file should fail") |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | func TestRoLoop(t *testing.T) { |
| 61 | testutil.RequiresRoot(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…