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

baetheus / fun / 17500548046
100%

Build:
DEFAULT BRANCH: main
Ran 05 Sep 2025 05:48PM UTC
Jobs 3
Files 46
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

05 Sep 2025 05:39PM UTC coverage: 99.787% (+0.005%) from 99.782%
17500548046

push

github

baetheus
feat: use StateEither for parser

Three big changes were made in parser.ts. The first is that the parser
is now generic over the stream state type. A basic StringStream has been
implemented but most non-string combinators are generic. The second big
change is that Stream is a mutable interface. The Stream type requires a
take method and an undo method. Take will return some number of inner
values from a buffer and keep a history of all previous cursors. Undo
will back track to the nth cursor. Take only accepts whole numbers, so
the cursor history must monotonically increase. The last big change is
that Parser is implemented over the StateEither monad, which is a new
one for fun.

Some things of note. The standard fail combinator will automatically pop
the last cursor. Since Stream is stateful it is enough to simply create
a fail parser to undo the last take. This makes take/flatmap the primary
combo for creating one off parsers.

803 of 812 branches covered (98.89%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

6709 of 6716 relevant lines covered (99.9%)

152.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-v2.2.12-ubuntu-latest - 17500548046.1 05 Sep 2025 05:48PM UTC 46
99.79
GitHub Action Run
2 run-v2.2.12-macOS-latest - 17500548046.2 05 Sep 2025 05:48PM UTC 46
99.79
GitHub Action Run
3 run-v2.2.12-windows-latest - 17500548046.3 05 Sep 2025 05:48PM UTC 0
0.0
GitHub Action Run
Source Files on build 17500548046
  • Tree
  • List 46
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • bd0f8c9a on github
  • Prev Build on main (#17478987920)
  • Next Build on main (#17500634088)
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

© 2025 Coveralls, Inc