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

rm-hull / jasengo / 19396382393
81%

Build:
DEFAULT BRANCH: main
Ran 15 Nov 2025 10:21PM UTC
Jobs 1
Files 6
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Nov 2025 10:20PM UTC coverage: 82.864% (+7.4%) from 75.448%
19396382393

push

github

web-flow
test: Improve parser test coverage (#6)

* test: Improve parser test coverage

Introduces additional testing for core parser functionality and
utility parsers, focusing on detailed error handling scenarios.

*   Added `TestChoice_pickBestError` to validate error selection
    logic (fatal status, position).
*   Added tests for utility parsers: `EOF`, `Lower`, `Upper`,
    `Letter`, and `Sequence`.
*   Updated `.gitignore` to ignore `test-reports/`.

* test: Restructure parser tests using t.Run

Restructures most unit tests in `parser_test.go` to use `t.Run`
subtests.

This improves:
* Test isolation.
* Readability of individual test cases within a parser function
  (e.g., success vs. failure scenarios).
* Test reporting granularity.

* refactor: Rename TestChoice error test

The test function `TestChoice_pickBestError` was renamed
to `TestChoice_ErrorScenarios` for improved clarity. The
new name reflects that the test handles various error
conditions, not solely the logic for picking the best
error.

* test: Refactor parser error test setup

- Uses `strings.Repeat` to simplify generating input prefixes
  in `TestChoice_ErrorScenarios`.
- Adds skipped test scenario (Scenario 9) to explore how `Choice`
  selects the best error when parsers consume input before failing.

324 of 391 relevant lines covered (82.86%)

0.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19396382393.1 15 Nov 2025 10:21PM UTC 6
82.86
GitHub Action Run
Source Files on build 19396382393
  • Tree
  • List 6
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 71da8969 on github
  • Prev Build on main (#19395457105)
  • Next Build on main (#19544593397)
  • Delete
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