conformance

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 0 Imported by: 0 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.

README

Conformance tests

The tests in this directory exercise the built rotari binary and Web API from outside the implementation packages. Contract coverage is checked by TestContractStatus in contracts_test.go.

Maintainer notes on test strategy and coverage are indexed in docs/internal. Package-specific run instructions remain beside their tests.

Golden outputs

golden_test.go compares stable representative CLI output with the files in testdata/golden/:

  • help.txt covers rotari --help.
  • schema.json covers the command and flag metadata from rotari schema --json.
  • show.json covers the deterministic queue projection from rotari show --queue --json.

Run the tests normally to detect an intentional or accidental output change:

go test ./conformance -run TestGoldenOutputs

When a deliberate CLI metadata or output change is made, regenerate the files, inspect the diff, and commit the updated golden files with the implementation:

go test ./conformance -run TestGoldenOutputs -update

The schema golden keeps command and flag names, short names, value names, and fixed value choices. Descriptions and other derived metadata are covered by help output or focused tests rather than duplicated in the schema snapshot. Dynamic paths, IDs, and timestamps in JSON output are normalized before comparison.

Documentation

Overview

Package conformance checks invariants from contracts/README.md against the built rotari binary and its Web API, from outside the code.

It holds only tests and imports only the standard library, so it keeps passing unchanged while packages move: a failure here means user-visible behavior changed, not that code was reorganized. TestMain builds cmd/rotari once; each test gets its own base directory, master directory, home, and config directories, with no ROTARI_* variable inherited.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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