Repository navigation
test(id): cover invalid ScreenPatch replacements - #4260
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e165ca3ef
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| } | ||
|
|
||
| #[test] | ||
| fn patch_refuses_a_control_character_replacement() { |
There was a problem hiding this comment.
Prefix the new regression tests with
test_
The four newly added tests use patch_refuses_... names without the required test_ prefix. The Naming guideline in pkgs/id/AGENTS.md explicitly requires this prefix for tests; rename all four additions to follow that scoped convention.
AGENTS.md reference: pkgs/id/AGENTS.md:L140-L140
Useful? React with 👍 / 👎.
Summary
Current
ScreenPatch::applyvalidates reconstructed screens throughScreenSurface::from_cells. This adds explicit regression coverage for the four malformed replacement cases in #2910: control characters, orphaned wide-glyph continuations, invalid column counts, and a wide glyph in the final column.Evidence
cargo test --manifest-path pkgs/id/crates/id-core/Cargo.toml --lib world_presentation::tests— 20 passed.rustfmt --edition 2024 --checkandgit diff --checkpass.Merge Danger
Door: two-way
Blast Radius: small — regression tests only.
Need help on this PR? Tag
@codesmith-botwith what you need.