MCPcopy Index your code
hub / github.com/coder/envbox / WriteFile

Function WriteFile

integration/integrationtest/os.go:38–44  ·  view source on GitHub ↗
(t *testing.T, path, contents string)

Source from the content-addressed store, hash-verified

36}
37
38func WriteFile(t *testing.T, path, contents string) {
39 t.Helper()
40
41 //nolint:gosec
42 err := os.WriteFile(path, []byte(contents), 0o644)
43 require.NoError(t, err)
44}

Callers 2

pushLocalImageFunction · 0.85
GenerateRegistryAuthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected