Documentation
¶
Overview ¶
Package apidump extracts a package's exported API as a stable, sorted list of signature lines and checks it against a committed golden file. It is the mechanism behind the API-baseline tests that pin a package's public surface: any change to an exported type, function, method, constant, or variable shows up as a failing test with a diff, so a breaking change can never land silently — the concrete meaning of "graduated to Stable, API-baseline pinned."
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check compares dir's current exported API against the golden file, failing the test on any drift. Set UPDATE_API_BASELINE=1 to (re)write the golden after an intentional change.
func CheckSources ¶
CheckSources compares an embedded source snapshot with an embedded baseline.
Types ¶
This section is empty.