{"modulePath":"github.com/wloophq/wloop","version":"v0.2.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package githubtest\n\nPackage githubtest serves a github.Client from the ghcli.Runner fakes the tests already have.\n\n## Functions\n\n```go\nfunc Client(t http.RoundTripper) *github.Client\n```\nClient builds a Client over t with a fixed token and no backoff sleeps.\n\n```go\nfunc Runner(r ghcli.Runner) *github.Client\n```\nRunner is Client over RunnerTransport{r}.\n\n## Types\n\n```go\ntype RunnerTransport struct{ R ghcli.Runner }\n```\nRunnerTransport answers POST /graphql by passing the query to R as \\`api graphql -f query=\\\u003cq\u003e\\` and every other request as \\`api \\\u003cpath\u003e\\`. A runner error naming \"HTTP \\\u003cstatus\u003e\" answers that status with the runner's output; any other error answers 200 with the output when there is some, as gh prints a GraphQL response with errors, and fails the round trip when there is none.\n\n```go\nfunc (t RunnerTransport) RoundTrip(req *http.Request) (*http.Response, error)\n```\n\n","path":"github.com/wloophq/wloop/internal/github/githubtest","name":"githubtest","synopsis":"Package githubtest serves a github.Client from the ghcli.Runner fakes the tests already have.","isRedistributable":true}
