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

renatahodovan / grammarinator / 41530910948
83%

Build:
DEFAULT BRANCH: master
Ran 02 Nov 2026 09:45PM UTC
Jobs 1
Files 27
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

02 Nov 2026 09:43PM UTC coverage: 83.55% (+0.1%) from 83.41%
41530910948

push

github

web-flow
Fix token, level and depth computation in Python Annotations (#422)

The generator limits the depth of the trees in terms of nested rule
calls and counts every token once, and so does the C++ Annotations.
The Python Annotations, however, deviated in both respects:

- The token count of an unlexer rule node is already stored in its size,
  but an extra 1 was added for each of them when summing them up in the
  parent nodes, thus doubling the token count of the trees (and leaving
  the count of the unlexer rule nodes themselves at 0).
- Every node (including quantifier, quantified and alternative nodes)
  was counted in the levels and depths, and the depth stored in unlexer
  rule nodes was ignored. The resulting values were roughly twice the
  real ones.

The mutators compared these values to the limits of the generator, so they
rejected many valid mutations, and regenerate_rule reserved too much
depth. Now, the token and depth counts of unlexer rule nodes are taken
from their size, and only unparser rule nodes add to the levels and
depths, as in the C++ Annotations.

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

6 existing lines in 1 file now uncovered.

2377 of 2845 relevant lines covered (83.55%)

0.84 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
70.76
0.74% grammarinator/tool/generator.py
Jobs
ID Job ID Ran Files Coverage
1 41530910948.1 02 Nov 2026 09:45PM UTC 27
83.55
GitHub Action Run
Source Files on build 41530910948
  • Tree
  • List 27
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 07bccd17 on github
  • Prev Build on master (#41520386980)
  • Next Build on master (#41541584835)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc