(t *testing.T, stdout, stderr io.Writer)
| 53 | } |
| 54 | |
| 55 | func newCmdRuntimeJSONOutputContext(t *testing.T, stdout, stderr io.Writer) context.Context { |
| 56 | t.Helper() |
| 57 | return outfmt.WithMode(newCmdRuntimeOutputContext(t, stdout, stderr), outfmt.Mode{JSON: true}) |
| 58 | } |
| 59 | |
| 60 | func withTestRuntime(ctx context.Context, configure func(*app.Runtime)) context.Context { |
| 61 | if ctx == nil { |
no test coverage detected