goldengen

command
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Command goldengen (re)generates one testdata/golden/<ver>/ fixture: it runs the fixed scenario in scenario.go against a fresh MemStore, then dumps the resulting journal and projections to disk. See docs/lld/LLD-03-upgrade-eras.md §3/§7 (PR-0) and testdata/golden/README.md.

Production code under internal/ is never imported for its side effects here beyond the same public API any node/tool uses (engine.New, Engine.Create/ Act/..., identity.Registry, dsl.Compile) — nothing in internal/ was changed to build this tool.

Usage:

go run ./cmd/goldengen                  # regenerate testdata/golden/v0.1
go run ./cmd/goldengen -ver v0.2         # a future version, new scenario
go run ./cmd/goldengen -force            # overwrite an existing version

Directories

Path Synopsis
Package goldenfmt is shared, non-production tooling for the golden-journal fold-compatibility gate (docs/lld/LLD-03-upgrade-eras.md §3/§7 PR-0).
Package goldenfmt is shared, non-production tooling for the golden-journal fold-compatibility gate (docs/lld/LLD-03-upgrade-eras.md §3/§7 PR-0).

Jump to

Keyboard shortcuts

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