fmtfixture

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL