MCPcopy Create free account
hub / github.com/containerd/cgroups / TestNamedPath

Function TestNamedPath

cgroup1/named_test.go:28–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestNamedPath(t *testing.T) {
29 n := NewNamed("/sys/fs/cgroup", "systemd")
30 path := n.Path("/test")
31 if expected := "/sys/fs/cgroup/systemd/test"; path != expected {
32 t.Fatalf("expected %q but received %q from named cgroup", expected, path)
33 }
34}

Callers

nothing calls this directly

Calls 2

NewNamedFunction · 0.85
PathMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…