Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

1.5 KB
Raw Blame

title: Coverage description: How much of the original the recorded cases ran (TypeScript/JavaScript and Python), and the gate check that fails when an export has no recorded case.

Coverage

Passing diff means the port matches every recorded case. Coverage tells you how much of the original those cases ran, so you know what the recording does not cover.

record measures the lines of the original the cases ran: for TypeScript/JavaScript from V8's coverage, and for Python with sys.monitoring on 3.12 and later (sys.settrace before). Other languages do not measure it yet. gate prints the line count in its coverage check as information only: the share of lines reached, and the files with the most lines missed. It never fails gate on its own.

The coverage check fails when an export of the unit has no recorded case and is not waived. Its fix gives the two ways out: record a case for each export it lists (record --inputs), or, for one that needs no case, rust-anything obligations waive <id> --reason "<why>" from the repository.

On Fuse.js, the cases ran 81% of the lines the unit imports (status).

Raising it

Lines the cases never reach are behavior nobody checked. Reach them with:

  • record --from-tests -- <test command>, to record every call the original's own test suite makes;
  • record --inputs, with real inputs that take the paths the generated ones miss (structured arguments, domain strings).

See Record and What it can't catch.