MCPcopy Create free account
hub / github.com/openclaw/gogcli / newCmdRuntimeJSONOutputContext

Function newCmdRuntimeJSONOutputContext

internal/cmd/cmd_testutil_test.go:55–58  ·  view source on GitHub ↗
(t *testing.T, stdout, stderr io.Writer)

Source from the content-addressed store, hash-verified

53}
54
55func 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
60func withTestRuntime(ctx context.Context, configure func(*app.Runtime)) context.Context {
61 if ctx == nil {

Calls 2

WithModeFunction · 0.92

Tested by

no test coverage detected