genfixtures

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command genfixtures writes the canonical host-side protocol fixtures.

Fixtures are GENERATED rather than hand-written so they cannot drift from the types they claim to describe: a field renamed in pkg/modproto changes the fixture on the next run, and the diff is visible in review.

Under the cross-checked-fixture model these files are the binding mechanism between the three lanes. Each lane parses the others' fixtures in its own tests, so drift breaks a test rather than surfacing in production.

Regenerate with:

go run ./cmd/genfixtures

Every path in these fixtures is fake and relative. No absolute host path, machine-specific value, or real credential may appear in a fixture.

Jump to

Keyboard shortcuts

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