Add regression test for long inline code item#83
Conversation
Reviewer's GuideThis pull request adds a regression test to ensure that long inline code spans with trailing punctuation in list items are not incorrectly split during text wrapping. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Rate limit exceeded@leynos has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 39 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
Summary by CodeRabbit
WalkthroughAdd a new integration test to verify the correct wrapping of a long list item containing an inline code span and descriptive text. Ensure the wrapped output preserves the inline code formatting and splits the item into four lines, using an existing helper for assertion. Changes
Sequence Diagram(s)sequenceDiagram
participant TestRunner
participant process_stream
participant assert_wrapped_list_item
TestRunner->>process_stream: Process long list item with inline code
process_stream-->>TestRunner: Return wrapped lines
TestRunner->>assert_wrapped_list_item: Assert line count and prefix preservation
assert_wrapped_list_item-->>TestRunner: Assertion result
Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
tests/integration.rs(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.rs
Instructions used from:
Sources:
📄 CodeRabbit Inference Engine
- AGENTS.md
⚙️ CodeRabbit Configuration File
🧬 Code Graph Analysis (1)
tests/integration.rs (2)
src/process.rs (1)
process_stream(76-76)tests/common/mod.rs (1)
assert_wrapped_list_item(17-53)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary
Testing
make fmtmake lintmake testhttps://chatgpt.com/codex/tasks/task_e_68783becaad08322a9beec46b82cdc44
Summary by Sourcery
Tests: