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

KarpelesLab / strtotime / 24099148532
81%

Build:
DEFAULT BRANCH: master
Ran 07 Apr 2026 07:01PM UTC
Jobs 1
Files 11
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

07 Apr 2026 07:00PM UTC coverage: 82.423% (-0.4%) from 82.806%
24099148532

push

github

MagicalTux
Optimize tokenizer and parser pipeline

Rewrite tokenizer to use substring slicing instead of strings.Builder,
eliminating per-token allocations. Pre-allocate token slice capacity.

Add first-byte guard wrappers (guardDigit, guardByte, guardPrefix) to
skip parsers that can't match with a single byte check.

Remove redundant strings.ToLower calls in lookup functions since
StrToTime already lowercases input before calling parsers.

Results: 7-28 fewer allocations per parse, ~1.3-1.5x faster for
month-name and numbered-weekday formats.

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

66 of 70 new or added lines in 3 files covered. (94.29%)

13 existing lines in 4 files now uncovered.

2701 of 3277 relevant lines covered (82.42%)

181.62 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
81.27
0.24% strtotime.go
2
81.82
-18.18% token.go

Coverage Regressions

Lines Coverage ∆ File
6
81.82
-18.18% token.go
4
78.0
-1.14% date_formats.go
2
82.77
-0.22% extended_formats.go
1
67.0
-0.65% lookups.go
Jobs
ID Job ID Ran Files Coverage
1 24099148532.1 07 Apr 2026 07:01PM UTC 11
82.42
GitHub Action Run
Source Files on build 24099148532
  • Tree
  • List 11
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24099148532
  • b7c6c177 on github
  • Prev Build on master (#24080827693)
  • Next Build on master (#24114079161)
  • 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