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

KarpelesLab / gopcre2 / 23745589309

30 Mar 2026 12:50PM UTC coverage: 65.943% (+0.6%) from 65.361%
23745589309

push

github

MagicalTux
Reduce cyclomatic complexity in lexer, parser, and program

Extract lookup tables for escape sequences (charTypeEscapes,
anchorEscapes, simpleEscapes), POSIX classes (posixClasses), and
opcode names (opNames) to replace large switch statements.

lexEscape: 49 → 22, instString: 33 → 10, posixClassRanges: 15 → 2.
Remaining high-complexity functions are dispatch switches inherent
to the VM/parser/compiler architecture.

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

27 of 50 new or added lines in 3 files covered. (54.0%)

1 existing line in 1 file now uncovered.

2674 of 4055 relevant lines covered (65.94%)

251.71 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/program.go


Source Not Available

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