Skip to content

Rewrite the README as a complete guide to the library - #173

Merged
steinfletcher merged 1 commit into
masterfrom
readme-refresh
Sep 3, 2026
Merged

Rewrite the README as a complete guide to the library#173
steinfletcher merged 1 commit into
masterfrom
readme-refresh

Conversation

@steinfletcher

Copy link
Copy Markdown
Owner

Summary

A rewrite of the README as a complete guide to the library, organised by task rather than as a list of snippets.

  • Dead CircleCI badge replaced with the GitHub Actions badge; godoc badge replaced with pkg.go.dev. All CI is on GitHub Actions now.
  • Documents features that were missing: HttpRequest, GraphQL, JSON request bodies, HeaderPresent/HeaderNotPresent, custom assertions and the IsSuccess helpers, Result.JSON, the mock request and response builders, Times/AnyTimes/UnmatchedMocks, FixedDelay/Timeout, ObserveMocks, standalone mocks, HttpClient and the caveat about parallel tests, Meta participant names, x/db database recording, custom reporters, EnableNetworking, TestingT/Ginkgo and Verifier.
  • Fixes examples that did not compile: apitest.Cookie(...) is not a function (it's NewCookie), var x := ..., and a malformed query-collection snippet.
  • Adds the websocket and database examples to the examples table.

Every Go snippet in the README was extracted and compiled against the library to check it.

🤖 Generated with Claude Code

- Replace the dead CircleCI badge with the GitHub Actions one and the
  godoc badge with pkg.go.dev.
- Organise the content by task: building requests, asserting on
  responses, mocking, sequence diagrams, networking, debugging,
  framework integration.
- Document features that were missing: HttpRequest, GraphQL, JSON
  request bodies, HeaderPresent/NotPresent, custom assertions and the
  IsSuccess helpers, Result.JSON, mock request/response builders,
  Times/AnyTimes/UnmatchedMocks, FixedDelay/Timeout, ObserveMocks,
  standalone mocks, HttpClient and the parallel-test caveat, Meta
  participant names, x/db database recording, custom reporters,
  EnableNetworking, TestingT/Ginkgo and Verifier.
- Fix examples that did not compile: apitest.Cookie is not a function
  (NewCookie), 'var x :=', and a malformed query collection snippet.
- Add the websocket and database examples to the examples table.

Every Go snippet in the README was extracted and compiled against the
library.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@steinfletcher
steinfletcher merged commit 75a51d4 into master Sep 3, 2026
3 checks passed
@steinfletcher
steinfletcher deleted the readme-refresh branch September 3, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant