{"modulePath":"github.com/CompassLabs/cli","version":"v0.1.81","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testclient\n\n## Types\n\n```go\ntype TestHTTPClient struct {\n\t// contains filtered or unexported fields\n}\n```\nTestHTTPClient wraps an HTTP client and injects test headers when env vars are set.\n\n```go\nfunc NewTestHTTPClient() *TestHTTPClient\n```\nNewTestHTTPClient creates a new test HTTP client if test env vars are set. Returns nil if not in test mode.\n\n```go\nfunc (c *TestHTTPClient) Do(req *http.Request) (*http.Response, error)\n```\nDo executes the HTTP request, injecting test headers. Intercepts OAuth2 token exchange requests and returns a mock token response so tests don't require a real token endpoint on the mock server.\n\n","path":"github.com/CompassLabs/cli/internal/testclient","name":"testclient","synopsis":"","isRedistributable":true}
