Skip to main content

Module app

Module app 

Source
Expand description

App-level record and replay for CLIs, in any language: the program is a black box.

record runs the original on cases (the app’s own examples, an inputs file, semantic traps) twice, marks what differs between the two runs as noise, and writes each case as trycmd files in rust/app-cases/. replay runs any build against those files and reports what differs.

Structs§

Config
rust/app-cases/rust-anything.json: how to run the original, and the normalizers.
Failure
Fallback
Cases the build handed to the original: the front door appends a line to the file named by RUST_ANYTHING_FALLBACK_LOG for every fallback (and may create it empty to report none).
Input
One line of an --inputs file.
Noise
Problem
RecordOptions
RecordOutcome
ReplayOptions
ReplayOutcome

Enums§

NoiseKind
How two runs of the original disagreed.

Constants§

BUILTIN_NORMALIZERS
CASES_DIR
CONFIG_FILE
FALLBACK_ENV
REPORT_FILE

Functions§

cases_dir
record
redacted
The outcome as shapes only (--redact), its report written again from them.
replay
replay_redacted
replay with --redact: the report is only ever written as shapes.
shell_split
Splits a command line into words, shell-style quoting, no shell operators.