MCPcopy Create free account
hub / github.com/coder/envbox / FakeSysboxManagerReady

Function FakeSysboxManagerReady

cli/clitest/fs.go:13–16  ·  view source on GitHub ↗
(t *testing.T, fs afero.Fs)

Source from the content-addressed store, hash-verified

11)
12
13func FakeSysboxManagerReady(t *testing.T, fs afero.Fs) {
14 err := afero.WriteFile(fs, sysboxutil.ManagerSocketPath, []byte(""), 0o644)
15 require.NoError(t, err)
16}
17
18func FakeCPUGroups(t *testing.T, fs afero.Fs, quota, period string) {
19 err := afero.WriteFile(fs, xunix.CPUPeriodPathCGroupV1, []byte(period), 0o600)

Callers 1

NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected