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

ossuminc / riddl / 26198448956
65%
main: 65%

Build:
Build:
LAST BUILD BRANCH: development
DEFAULT BRANCH: main
Ran 21 May 2026 12:44AM UTC
Jobs 1
Files 140
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

21 May 2026 12:41AM UTC coverage: 64.99% (+0.02%) from 64.97%
26198448956

push

reid-spencer
Fix crash in error annotator when parser fails at EOF

A parse failure with a missing closing `}` at EOF (e.g.,
`context X is { ... ` with no `}` before EOF) constructs an
`At` whose `endOffset` is one past the end of the last line
computed by `lineRangeOf`. Two `require` calls in
`RiddlParserInput.annotateErrorLine` then threw
`IllegalArgumentException: requirement failed: fail: 58 >= 59`,
which the outer `runMain` catch wrapped as a SEVERE
"Exception Thrown" message, hiding the real error.

The downstream slicing already clamps via `Math.min(...,
data.length)`, so those requires were over-strict, not
load-bearing. Removed them with a comment explaining the
boundary condition.

After the fix, a missing-brace input produces a normal
Error with file location, e.g.:

  [error] badEntity.riddl(5:1->6:2):
  Expected one of ("..." | "}" | ...)

Regression test added at `TopLevelParserTest`. Fixture files
`language/input/riddl-bad/{badDomain,badEntity}.riddl` are
checked in (3 opens, 2 closes). Test asserts no Severe and
that the resulting Error mentions the file and lists `}` in
the expected-tokens set.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

7609 of 11708 relevant lines covered (64.99%)

0.65 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
57.47
-0.21% language/shared/src/main/scala/com/ossuminc/riddl/language/bast/BASTReader.scala
3
60.79
-0.14% language/shared/src/main/scala/com/ossuminc/riddl/language/AST.scala
2
59.25
0.0% language/shared/src/main/scala/com/ossuminc/riddl/language/bast/BASTWriter.scala
2
60.82
1.03% language/shared/src/main/scala/com/ossuminc/riddl/language/parsing/ExtensibleTopLevelParser.scala
2
72.31
-3.08% language/shared/src/main/scala/com/ossuminc/riddl/language/parsing/ParsingContext.scala
1
95.0
0.0% language/shared/src/main/scala/com/ossuminc/riddl/language/parsing/ParsingErrors.scala
1
86.17
0.75% language/shared/src/main/scala/com/ossuminc/riddl/language/parsing/RiddlParserInput.scala
1
80.0
-20.0% language/shared/src/main/scala/com/ossuminc/riddl/language/parsing/RootParser.scala
Jobs
ID Job ID Ran Files Coverage
1 26198448956.1 21 May 2026 12:44AM UTC 140
64.99
Source Files on build 26198448956
  • Tree
  • List 140
  • Changed 16
  • Source Changed 1
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 219c6ac1 on github
  • Prev Build on main (#26119734449)
  • Next Build on development (#26199126612)
  • 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