(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…