These numbers are measured from the pinned source tree, not estimated. They come from two independent passes over the same commit:
- the Go toolchain's own godoc snapshot (what this site renders), and
- a source-level parse of every non-test
.gofile in the five public packages.
Pinned commit: 87a7b9d57689f6579db2da795ab8deeab29cb724
API surface
| Package | Entries rendered on this site | Exported symbols in source | With a doc comment | Runnable examples |
|---|---|---|---|---|
assert | 327 | 327 | 327 (100.0%) | 5 |
require | 311 | 311 | 311 (100.0%) | 4 |
mock | 46 | 49 | 46 (93.9%) | 0 |
suite | 21 | 21 | 20 (95.2%) | 0 |
http | 6 | 6 | 6 (100.0%) | 0 |
| Total | 711 | 714 | 710 (99.4%) | 9 |
The two columns differ by 3 entries: the source parse also counts declarations the Go doc tool folds away (for example methods that only exist on an unexported receiver type). Both numbers are far above the twenty-API floor the reference is meant to clear; the site renders the toolchain-verified surface of 711 entries, and the source-level parse independently confirms 714.
The gap this reference is for
- Doc comments are near-complete but the examples are not. 710 of 714 exported symbols carry a doc comment, yet the whole public API ships only
9 runnable
Example…functions — all of them attached to the five…AssertionFunctypes inassertandrequire. A reader looking for how to useContainsformock.Argumentsin the wild finds no example in the repository at all. - The
assert/requireduplication is invisible in the README.requiremirrorsassertone-for-one with a different failure mode, andassert.Assertionsmirrors the package-level functions as chainable methods. Upstream documents that in prose only; here both forms sit side by side in one reference so a reader can see which shape they actually need. - Upstream ships no per-symbol reference in the repository. The repo carries a
366-line
README.mdand onedoc.goper package. Everything else a user needs is generated bygo doc/pkg.go.dev, which cannot report coverage.
Symbols with no doc comment
| Symbol | Kind | Location |
|---|---|---|
mock.Anything | const | mock/mock.go:789 |
mock.Matches | method | mock/mock.go:879 |
mock.String | method | mock/mock.go:905 |
suite.Passed | method | suite/stats.go:42 |
Source files
18 non-test source files were parsed across the five public packages:
assert/assertion_compare.goassert/assertion_format.goassert/assertion_forward.goassert/assertion_order.goassert/assertions.goassert/errors.goassert/forward_assertions.goassert/http_assertions.gohttp/test_response_writer.gohttp/test_round_tripper.gomock/mock.gorequire/forward_requirements.gorequire/require.gorequire/require_forward.gorequire/requirements.gosuite/interfaces.gosuite/stats.gosuite/suite.go