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

Function batchTestContext

internal/cmd/docs_batch_store_test.go:506–511  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

504}
505
506func 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
513func withDocsBatchStateDir(ctx context.Context, stateDir string) context.Context {
514 return withTestRuntime(ctx, func(runtime *app.Runtime) {

Calls 2

withDocsBatchStateDirFunction · 0.85

Tested by

no test coverage detected