(t *testing.T)
| 504 | } |
| 505 | |
| 506 | func batchTestContext(t *testing.T) context.Context { |
| 507 | t.Helper() |
| 508 | var stdout bytes.Buffer |
| 509 | var stderr bytes.Buffer |
| 510 | return withDocsBatchStateDir(newCmdRuntimeOutputContext(t, &stdout, &stderr), t.TempDir()) |
| 511 | } |
| 512 | |
| 513 | func withDocsBatchStateDir(ctx context.Context, stateDir string) context.Context { |
| 514 | return withTestRuntime(ctx, func(runtime *app.Runtime) { |
no test coverage detected