Testify API Reference

A Sourcey-generated reference for 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.

Upstreamgithub.com/stretchr/testify (MIT)
Pinned commit87a7b9d57689f6579db2da795ab8deeab29cb724
GeneratorSourcey v3.8.3, godoc adapter, snapshot build
API surface rendered711 exported entries across 5 public packages

Jump to a package

  • assert — 327 entries — the assertion functions and the chainable *Assertions type
  • require — 311 entries — the same assertions, failing fast with t.FailNow()
  • mock — 46 entries — expectation matching, call recording, assertions on calls
  • suite — 21 entries — suites with per-test setup and teardown
  • http — 6 entries — httptest response recorder and round tripper
  • Introduction — what this site is and why it exists
  • Quick start — the smallest correct example for each package
  • Documentation coverage — measured doc-comment and example coverage, and where the gaps are
  • Provenance — the exact commit, licence, Sourcey version and commands

Machine-readable

  • llms.txt — the page index as plain text
  • llms-full.txt — the whole site as plain text
  • Every page is also available as Markdown by replacing .html with .md
Generated with Sourcey v3.8.3 from github.com/stretchr/testify at commit 87a7b9d57689f6579db2da795ab8deeab29cb724. Upstream is MIT licensed.Docs by Sourcey