Fix edge cases for input entry#972
Conversation
Includes more complete test coverage for various edge cases.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #972 +/- ##
==========================================
+ Coverage 78.85% 80.31% +1.45%
==========================================
Files 38 38
Lines 3675 3678 +3
==========================================
+ Hits 2898 2954 +56
+ Misses 638 585 -53
Partials 139 139 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📝 WalkthroughWalkthroughInput parsing logic is refined to detect non-ASCII characters at the 0xA0 boundary instead of 0x7F, with added ISO 2022 8-bit control handling. UTF-8 decoding error paths are improved to discard invalid leading bytes and attempt recovery. Test coverage expands to verify SMP characters, escape sequence modifiers, and terminal control sequence handling. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (2)input_test.go (2)
input.go (1)
🔇 Additional comments (5)
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. Comment |
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.