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

rm-hull / jasengo / 19395107662

15 Nov 2025 08:22PM UTC coverage: 75.452% (-6.8%) from 82.254%
19395107662

push

github

rm-hull
refactor: Improve parser result and combinator API

This commit improves API consistency and usability, particularly
around error handling and sequencing heterogeneous parsers.

*   Renamed the error field in `parser.Result` from `Err` to `Error`.
*   Added `Result.IsSuccess()` method and `State.Remaining()`.
*   Implemented generic `Sequence(...)` and `ToAny[T]` combinators
    for cleaner handling of heterogeneous parser chains.
*   Added `Letter()` parser for matching alphabetical runes.
*   Updated README examples to reflect new field access (`.Value`,
    `.Error`) and direct parser invocation syntax.

32 of 73 new or added lines in 5 files covered. (43.84%)

292 of 387 relevant lines covered (75.45%)

0.89 hits per line

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

90.32
/parser/basic.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