Commit 2f3a82c
authored
Converts deterministic entries from `test_ffi_surface_stdlib_integrations.ts`
into focused behavioral parity fixtures, per the follow-up to #694.
- `test_parity_argon2.ts` + expected output: round-trip `argon2.hash` /
`argon2.verify` (async path — the only one wired in the dispatch
table) with random-salt shape assertions.
- `test_parity_ethers.ts` + expected output: deterministic helpers
`getAddress`, `parseEther`/`formatEther`, `parseUnits`/`formatUnits`.
- Adds `@covers` block to `test_parity_crypto.ts` for the
crypto/webcrypto/crypto_e2e FFI surface it already exercises (digest,
hash, hmac-via-pbkdf2/hkdf, subtle.sign/verify).
Both new fixtures use the `test-parity/expected/` mechanism: Perry routes
the npm-style imports to its bundled `perry-ext-*` wrappers, but Node
can't load the same names without `node_modules`, so they fall through
to the stored expected-output comparison.
After `./test-coverage/regen_ts_surface_inventory.py`:
- stdlib integrations inventory: 156 → 138 unique FFI names.
- `./test-coverage/audit.sh --markdown` still reports 100% TS FFI coverage.
1 parent 1a7ce21 commit 2f3a82c
11 files changed
Lines changed: 181 additions & 91 deletions
File tree
- test-coverage
- test-files
- test-parity/expected
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments