MCPcopy
hub / github.com/containerd/containerd / TestNonExistingLoop

Function TestNonExistingLoop

core/mount/losetup_linux_test.go:50–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func 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
60func TestRoLoop(t *testing.T) {
61 testutil.RequiresRoot(t)

Callers

nothing calls this directly

Calls 1

SetupLoopFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…