Commit 0f83529
test(port-parser): unit ports + Axis B + 47 arch-no-analogue docs (v2)
Per-test placement (per `porting-tests/detailed_plans/Parser.md`):
- `src/allele.rs::tests::port_parser_*` (4 tests): subtests #17 (GA/GT
minimise via `vcf_to_vep_allele`), #18/#19 (MNV-preserves-suffix —
documented divergence from Perl's broader trim per Ensembl-Variation
`trim_sequences()` rule at allele.rs:300-302), Axis B B1 (degenerate
same-allele input collapses to "-/-" under MNV rule).
- `src/transcript_consequence.rs::tests::port_parser_*` (3 tests):
subtests #31 (bare chrom in valid set), #32 (`chr` prefix stripped
by `normalize_chrom` then matches), #34 (unknown chrom rejected).
- `tests/port_parser.rs` (4 tests): subtests #7 (nonexistent path —
catches panic from `object_storage.rs:183` unwrap), #12 (gzipped VCF
reads), #57 (CRLF line endings tolerated), Axis B B3 (`.vcf.bgz`
extension routes through gzip reader).
Axis B B2 (`buffer_variant_bounds` multi-chrom first-chrom-wins) is
cross-referenced — already covered by
`src/annotate_provider.rs::tests::port_input_buffer_axisB1_buffer_variant_bounds_multi_chrom_binds_to_first_chrom`.
Coverage parity: 12 / 77 Perl-denominator unit-ports (incl. 3 Axis B);
47 architectural-no-analogue rows documented inline in
`tests/port_parser.rs` (multi-format Parser base class, `validate_vf`
warning emission, lowercase coercion, DB mode/LRG, 27 `detect_format`
/ STDIN / factory-dispatch rows); 21 blocked-future-work rows as
commented-out stubs (all fold into existing future-work-vepyr.md
entries — SO-term cluster engine blocker #2 × 6, chromosome-synonyms
× 4, check_ref × 5, lookup_ref × 4, Uploaded_variation × 1,
chr_filter × 1). **0 new future-work entries created**.
v2 paradigm anchors: ~/.claude/skills/port-to-vepyr/references/v2-paradigm.md
- sztywno 1:1: every Perl subtest gets a Rust analogue (test or
documented stub).
- standalone: no docker, no golden.vcf, no run_and_compare_csq.
cargo test: 11 active passing tests across the 3 files; full lib
suite 834 passed / 0 failed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent beee853 commit 0f83529
3 files changed
Lines changed: 566 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
1454 | 1558 | | |
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21246 | 21246 | | |
21247 | 21247 | | |
21248 | 21248 | | |
| 21249 | + | |
| 21250 | + | |
| 21251 | + | |
| 21252 | + | |
| 21253 | + | |
| 21254 | + | |
| 21255 | + | |
| 21256 | + | |
| 21257 | + | |
| 21258 | + | |
| 21259 | + | |
| 21260 | + | |
| 21261 | + | |
| 21262 | + | |
| 21263 | + | |
| 21264 | + | |
| 21265 | + | |
| 21266 | + | |
| 21267 | + | |
| 21268 | + | |
| 21269 | + | |
| 21270 | + | |
| 21271 | + | |
| 21272 | + | |
| 21273 | + | |
| 21274 | + | |
| 21275 | + | |
| 21276 | + | |
| 21277 | + | |
| 21278 | + | |
| 21279 | + | |
| 21280 | + | |
| 21281 | + | |
| 21282 | + | |
| 21283 | + | |
| 21284 | + | |
| 21285 | + | |
| 21286 | + | |
| 21287 | + | |
| 21288 | + | |
| 21289 | + | |
| 21290 | + | |
| 21291 | + | |
| 21292 | + | |
| 21293 | + | |
| 21294 | + | |
| 21295 | + | |
| 21296 | + | |
| 21297 | + | |
| 21298 | + | |
| 21299 | + | |
| 21300 | + | |
| 21301 | + | |
| 21302 | + | |
| 21303 | + | |
| 21304 | + | |
| 21305 | + | |
| 21306 | + | |
| 21307 | + | |
| 21308 | + | |
21249 | 21309 | | |
0 commit comments