Documentation
¶
Overview ¶
Command fmtfixture regenerates the frozen on-disk fixtures used by the rolling-upgrade compatibility tests in store/wal, store/snapshot, and store/csrfile. Run it whenever a writer in one of those packages changes the on-disk shape; commit the refreshed fixtures alongside the writer change.
Usage:
go run ./cmd/fmtfixture # refresh every fixture go run ./cmd/fmtfixture -pkg wal # refresh just the WAL fixture
The fixtures themselves live under each package's testdata/v<N>/ tree and are read by *_compat_test.go in that same package.
Click to show internal directories.
Click to hide internal directories.