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

Function checkFileContent

cgroup2/testutils_test.go:60–64  ·  view source on GitHub ↗
(t *testing.T, path, filename, value string)

Source from the content-addressed store, hash-verified

58}
59
60func checkFileContent(t *testing.T, path, filename, value string) {
61 out, err := os.ReadFile(filepath.Join(path, filename))
62 require.NoErrorf(t, err, "failed to read %s file", filename)
63 assert.Equal(t, value, strings.TrimSpace(string(out)))
64}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…