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

futpib / parser / 24404849458
91%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2026 02:37PM UTC
Jobs 1
Files 116
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

14 Apr 2026 02:30PM UTC coverage: 90.765% (+0.4%) from 90.383%
24404849458

push

github

futpib
Add bash loops, conditionals, and functions modeled on ShellCheck AST

Adds AST nodes and parser/unparser/arbitrary support for while, until,
for-in, for-arithmetic, if/elif/else, case, and function declarations.
Design follows ShellCheck: separate for-in vs C-style for nodes, flat
elif chain rather than nested if-else, per-branch case terminator
(;; / ;& / ;;&), and function nodes that preserve surface syntax
(hasFunctionKeyword, hasParentheses) so all three forms round-trip.

To let compound-command parsers recognize their structural markers,
the simple-command parser rejects bash reserved words at command-name
position via word-boundary lookahead. The list separator `;` was
narrowed with negative lookahead so `;;`, `;&`, and `;;&` remain
available as case terminators rather than being eaten as plain
statement separators.

Property-based round-trip test extended to all new nodes; 14 focused
parser tests added covering each construct and a pipeline/nesting case.

4051 of 4653 branches covered (87.06%)

Branch coverage included in aggregate %.

19439 of 21227 relevant lines covered (91.58%)

419330.41 hits per line

Coverage Regressions

Lines Coverage ∆ File
36
96.07
-0.32% build/bashParser.js
12
95.33
0.41% build/javaParser.js
8
91.66
0.18% build/dalvikExecutableParser.js
7
90.11
0.03% build/regularExpressionParser.js
6
97.39
-2.61% build/arbitraryBash.js
6
88.43
0.44% build/javaUnparser.js
4
87.49
1.98% build/dalvikBytecodeUnparser.js
3
96.4
5.1% build/dalvikBytecodeUnparser/formatUnparsers.js
Jobs
ID Job ID Ran Files Coverage
1 24404849458.1 14 Apr 2026 02:37PM UTC 116
90.77
GitHub Action Run
Source Files on build 24404849458
  • Tree
  • List 116
  • Changed 20
  • Source Changed 3
  • Coverage Changed 20
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24404849458
  • 02b7914a on github
  • Prev Build on master (#23097771215)
  • Next Build on master (#24997852226)
  • 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