(t *testing.T)
| 52 | } |
| 53 | |
| 54 | func TestSystemdCgroupMemoryController(t *testing.T) { |
| 55 | checkCgroupMode(t) |
| 56 | group := fmt.Sprintf("testing-memory-%d.scope", os.Getpid()) |
| 57 | res := Resources{ |
| 58 | Memory: &Memory{ |
| 59 | Min: pointerInt64(16384), |
| 60 | Max: pointerInt64(629145600), |
| 61 | }, |
| 62 | } |
| 63 | c, err := NewSystemd("", group, os.Getpid(), &res) |
| 64 | require.NoError(t, err, "failed to init new cgroup systemd manager") |
| 65 | |
| 66 | checkFileContent(t, c.path, "memory.min", "16384") |
| 67 | checkFileContent(t, c.path, "memory.max", "629145600") |
| 68 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…