• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / jasengo / 19394653919

15 Nov 2025 07:39PM UTC coverage: 82.597% (-2.4%) from 84.956%
19394653919

push

github

rm-hull
fix: Expose consumption status in Run and fix Choice

This commit improves error handling logic by ensuring correct tracking
of consumed input.

*   The `Choice` combinator now correctly aggregates the `Consumed`
status if any of its constituent parsers consumed input before failing.
This is vital for correctly implementing cut operations (like `Commit`).
*   The top-level `Run` function now returns the `Consumed` boolean
status alongside the result and error.
*   Introduced `Fail` basic parser to generate explicit, non-consuming
failure results.
*   Refactored parser result construction in combinators for clarity.

39 of 59 new or added lines in 3 files covered. (66.1%)

2 existing lines in 1 file now uncovered.

318 of 385 relevant lines covered (82.6%)

0.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.16
/parser/combinators.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc