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

Function writeTestAwInfo

pkg/cli/logs_json_test.go:292–304  ·  view source on GitHub ↗
(t *testing.T, runDir string, payload map[string]any)

Source from the content-addressed store, hash-verified

290}
291
292func writeTestAwInfo(t *testing.T, runDir string, payload map[string]any) {
293 t.Helper()
294 if err := os.MkdirAll(runDir, 0o755); err != nil {
295 t.Fatalf("Failed to create run directory %s: %v", runDir, err)
296 }
297 content, err := json.Marshal(payload)
298 if err != nil {
299 t.Fatalf("Failed to marshal aw_info payload: %v", err)
300 }
301 if err := os.WriteFile(filepath.Join(runDir, "aw_info.json"), content, 0o644); err != nil {
302 t.Fatalf("Failed to write aw_info.json: %v", err)
303 }
304}
305
306func TestBuildLogsDataAggregatesDispatchEpisode(t *testing.T) {
307 tmpDir := testutil.TempDir(t, "test-episode-*")

Calls

no outgoing calls

Tested by

no test coverage detected