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

Function withDocsBatchHTTPTest

internal/cmd/docs_batch_store_test.go:494–504  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, server *httptest.Server)

Source from the content-addressed store, hash-verified

492}
493
494func withDocsBatchHTTPTest(t *testing.T, ctx context.Context, server *httptest.Server) context.Context {
495 t.Helper()
496 oldBaseURL := docsBatchBaseURL
497 docsBatchBaseURL = server.URL
498 t.Cleanup(func() {
499 docsBatchBaseURL = oldBaseURL
500 })
501 return withDocsTestHTTPClientFactory(ctx, func(context.Context, string) (*http.Client, error) {
502 return server.Client(), nil
503 })
504}
505
506func batchTestContext(t *testing.T) context.Context {
507 t.Helper()

Calls 2

CleanupMethod · 0.80

Tested by

no test coverage detected