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

wkhere / bcl / 9227473635
91%

Build:
DEFAULT BRANCH: master
Ran 24 May 2024 05:04PM UTC
Jobs 1
Files 18
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

24 May 2024 05:01PM UTC coverage: 89.669% (-0.1%) from 89.795%
9227473635

push

github

wkhere
fix fake-eof and related behavior in lex/parse

Lexer is now sending explicit tFAIL token after error. That token is
interpreted in the parser accordingly. The assumption is that, contrary
to parse errors, it doesn't make sense to continue processing input
after a lex error, as there's usually a cascade of mess afterwards.
Even if I could do better than this assumption, that's the silent
behavior of previous code, which was misbehaving anyway - see below.

In addition to sending tFAIL token by lexer and interpreting it in the
parser (eg. there are two final tokens now, examined by parser.matchEnd
and parser.checkEnd; the error printing is fixed as well), there is also
a check inside block parsing to return earlier after tFAIL. This can be
extended in the future for other parts of the parser.

Now about a previous subtle bug: tEOF after tERR was read by
parser.advance only because it was zero-value from closed channel.
It could be seen as 'line 1:1: error at end: ...' error message,
even though 1:1 is definitely not end of the stream.
Parser was relying on this behavior, so for example after starting
tokens with iota+1 it went into infinite loop.

29 of 34 new or added lines in 2 files covered. (85.29%)

1545 of 1723 relevant lines covered (89.67%)

0.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9227473635.1 24 May 2024 05:04PM UTC 0
89.67
GitHub Action Run
Source Files on build 9227473635
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #9227473635
  • eedaeadb on github
  • Prev Build on master (#9158920980)
  • Next Build on master (#9227869929)
  • 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