MCPcopy Create free account
hub / github.com/github/gh-aw / writeAWJSONRaw

Function writeAWJSONRaw

pkg/workflow/repo_config_test.go:378–383  ·  view source on GitHub ↗

writeAWJSONRaw creates .github/workflows/aw.json with raw (possibly invalid) content.

(t *testing.T, gitRoot, content string)

Source from the content-addressed store, hash-verified

376
377// writeAWJSONRaw creates .github/workflows/aw.json with raw (possibly invalid) content.
378func writeAWJSONRaw(t *testing.T, gitRoot, content string) {
379 t.Helper()
380 dir := filepath.Join(gitRoot, ".github", "workflows")
381 require.NoError(t, os.MkdirAll(dir, 0o755), "failed to create workflows dir")
382 require.NoError(t, os.WriteFile(filepath.Join(dir, "aw.json"), []byte(content), 0o600), "failed to write aw.json")
383}

Callers 2

writeAWJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected