Skip to content

Phase 4 batch 3: drop writer_errors.rs happy-path duplicates - #4350

Merged
Kenny Kerr (kennykerr) merged 2 commits into
masterfrom
copilot/update-todo-with-progress
Apr 30, 2026
Merged

Phase 4 batch 3: drop writer_errors.rs happy-path duplicates#4350
Kenny Kerr (kennykerr) merged 2 commits into
masterfrom
copilot/update-todo-with-progress

Conversation

Copilot AI commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Continues the test consolidation in docs/test-todo.md. The four writer_succeeds_for_* smoke tests in crates/tests/libs/rdl/tests/writer_errors.rs only assert result.is_ok() on RDL inputs that are strict subsets of existing roundtrip fixtures, which already prove the same writer paths via byte-stable diffs.

  • writer_errors.rs: removed the 4 happy-path tests (195 → 107 lines / 6 → 2 tests). Header comment records the rationale and the per-case mapping to legacy fixtures. compile_rdl_to_winmd stays (still used by writer_split_returns_err_for_bad_output_dir); both writer_returns_err_for_* tests stay — they exercise filesystem I/O failures the harness doesn't yet model.
  • docs/test-todo.md: added Phase 4 "Batch 3" subsection with the per-fixture mapping (callback→fn.rdl, delegate→delegate.rdl, enum→enum.rdl, interface→class.rdl/event-interface.rdl); recorded the new rule "migration may be a deletion when an existing fixture already covers the inputs"; updated the deferred table for writer_errors.rs to reflect what remains.

Migration outcome here is deletion rather than fixture conversion — converting these would only churn files that phase 5 would delete anyway.

Copilot AI and others added 2 commits April 30, 2026 18:35
@kennykerr
Kenny Kerr (kennykerr) marked this pull request as ready for review April 30, 2026 18:47
@kennykerr
Kenny Kerr (kennykerr) merged commit f65844f into master Apr 30, 2026
28 checks passed
@kennykerr
Kenny Kerr (kennykerr) deleted the copilot/update-todo-with-progress branch April 30, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants