(t *testing.T, data map[string]any)
| 77 | } |
| 78 | |
| 79 | func writeInput(t *testing.T, data map[string]any) string { |
| 80 | t.Helper() |
| 81 | inputBytes, err := json.Marshal(data) |
| 82 | require.NoError(t, err) |
| 83 | inputPath := filepath.Join(t.TempDir(), "input.json") |
| 84 | require.NoError(t, os.WriteFile(inputPath, inputBytes, 0o600)) |
| 85 | return inputPath |
| 86 | } |
| 87 | |
| 88 | type outcomeSummary struct { |
| 89 | failureCodes []string |
no test coverage detected