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

Function TestSystemdCgroupPidsController

cgroup2/pidsv2_test.go:47–56  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestSystemdCgroupPidsController(t *testing.T) {
48 checkCgroupMode(t)
49 group := fmt.Sprintf("testing-pids-%d.scope", os.Getpid())
50 pid := os.Getpid()
51 res := Resources{}
52 c, err := NewSystemd("", group, pid, &res)
53 require.NoError(t, err, "failed to init new cgroup systemd manager")
54
55 checkFileContent(t, c.path, "cgroup.procs", strconv.Itoa(pid))
56}

Callers

nothing calls this directly

Calls 3

checkCgroupModeFunction · 0.85
checkFileContentFunction · 0.85
NewSystemdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…