# Testify API Reference {#testify-api-reference}


A **Sourcey-generated** reference for [Testify](https://github.com/stretchr/testify), built from the
upstream source tree at one pinned commit. Every signature, doc comment and source link on this
site is upstream text, not a paraphrase.

| Field | Value |
|---|---|
| Upstream | [`github.com/stretchr/testify`](https://github.com/stretchr/testify) (MIT) |
| Pinned commit | [`87a7b9d57689f6579db2da795ab8deeab29cb724`](https://github.com/stretchr/testify/commit/87a7b9d57689f6579db2da795ab8deeab29cb724) |
| Generator | Sourcey `v3.8.3`, `godoc` adapter, snapshot build |
| API surface rendered | **711** exported entries across **5** public packages |


## Jump to a package {#jump-to-a-package}


- [`assert`](https://testify.anonymux.org/api/pkg-assert.md) — 327 entries — the assertion functions and the chainable `*Assertions` type
- [`require`](https://testify.anonymux.org/api/pkg-require.md) — 311 entries — the same assertions, failing fast with `t.FailNow()`
- [`mock`](https://testify.anonymux.org/api/pkg-mock.md) — 46 entries — expectation matching, call recording, assertions on calls
- [`suite`](https://testify.anonymux.org/api/pkg-suite.md) — 21 entries — suites with per-test setup and teardown
- [`http`](https://testify.anonymux.org/api/pkg-http.md) — 6 entries — `httptest` response recorder and round tripper


## Read next {#read-next}


- [Introduction](https://testify.anonymux.org/introduction.md) — what this site is and why it exists
- [Quick start](https://testify.anonymux.org/quickstart.md) — the smallest correct example for each package
- [Documentation coverage](https://testify.anonymux.org/coverage.md) — measured doc-comment and example coverage, and where the gaps are
- [Provenance](https://testify.anonymux.org/provenance.md) — the exact commit, licence, Sourcey version and commands


## Machine-readable {#machine-readable}


- [`llms.txt`](https://testify.anonymux.org/llms.txt) — the page index as plain text
- [`llms-full.txt`](https://testify.anonymux.org/llms-full.txt) — the whole site as plain text
- Every page is also available as Markdown by replacing `.html` with `.md`


## About this publication {#about-this-publication}


This site is published by **spore-crew** (AI-assisted work under
[@ASporeTeam](https://github.com/ASporeTeam)) as an independent, open reference to a third-party
library. It is not affiliated with, endorsed by, or published by the Testify maintainers, and it
is not a fork of the upstream project — it is a documentation site **about** Testify, generated
from Testify's own source at a pinned commit.

It is served from the publisher's own domain, `testify.anonymux.org`.

**Who published it.** Anonymux Docs is published by **Anonymux** — the crew that runs this site, publishing as *spore-crew* (AI-assisted work under [@ASporeTeam](https://github.com/ASporeTeam)).

The reference on this site is **our own publication**: we generated it with Sourcey from the upstream source tree at the pinned commit and we host it on our own domain. The library it documents is third-party (Testify, MIT); the documentation of it is ours. The same configuration is offered to the upstream project in [stretchr/testify#1996](https://github.com/stretchr/testify/pull/1996), so the maintainers can generate and host the reference themselves on a domain they control.
 Every page is produced by a build from the pinned upstream commit rather than
edited by hand, and the site is served from a permanent static deployment with a stable address
and a stable address of record.

The publication packet that accompanies this site is public as well:

- [`evidence.json`](https://testify.anonymux.org/packet/evidence.json) — the machine-readable evidence
  file: repository, pinned commit, licence, adapter, exact commands, page list, coverage
  measurements, and ten live observations with the method used to obtain each one
- [`report.md`](https://testify.anonymux.org/packet/report.md) — the maintainer-facing report: what
  upstream ships today, the gaps this reference closes, the gaps it does not, and the limitations
- [`receipt.json`](https://testify.anonymux.org/packet/receipt.json) — the sealed Runx receipt for the
  generation run, with its attestation packet alongside it
  ([`receipt-attestation.json`](https://testify.anonymux.org/packet/receipt-attestation.json))

Anyone can re-verify the receipt with `runx verify` against those bytes, rebuild the site from
the committed snapshot, and check each observation against its own recorded URL and method.
