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

KarpelesLab / strtotime / 24080692262
81%

Build:
DEFAULT BRANCH: master
Ran 07 Apr 2026 12:13PM 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 12:12PM UTC coverage: 82.806% (-0.5%) from 83.267%
24080692262

push

github

MagicalTux
Consolidate tests into CSV and refactor code for clarity

Replace 20 scattered test files (4,300 lines) with a CSV-driven test suite:
- testdata/strtotime_tests.csv: 653 test cases sorted by expected timestamp
- testdata/strtotime_invalid.csv: 23 invalid input cases
- csv_test.go: single test runner with PHP cross-validation

Refactor library code for maintainability:
- Extract shared helpers (applyTimeOffset, stripWeekdayPrefix, parseOrdinalPrefix)
- Convert StrToTime from 340-line if/else chain to table-driven parser pipeline
- Merge duplicate parseNegativeYear/parsePositiveYear into parseSignedYear
- Hoist lookup maps (monthNames, unitMap) to package level
- Move lookup functions to lookups.go, DST/time helpers to helpers.go
- strtotime.go reduced from 1918 to 1532 lines

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

286 of 335 new or added lines in 5 files covered. (85.37%)

3 existing lines in 1 file now uncovered.

2697 of 3257 relevant lines covered (82.81%)

199.37 hits per line

Uncovered Changes

Lines Coverage ∆ File
33
67.65
lookups.go
8
81.03
-2.2% strtotime.go
6
94.69
helpers.go
2
82.99
0.79% extended_formats.go

Coverage Regressions

Lines Coverage ∆ File
3
81.03
-2.2% strtotime.go
Jobs
ID Job ID Ran Files Coverage
1 24080692262.1 07 Apr 2026 12:13PM UTC 11
82.81
GitHub Action Run
Source Files on build 24080692262
  • Tree
  • List 11
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24080692262
  • 6cce3296 on github
  • Prev Build on master (#24067932935)
  • Next Build on master (#24080716048)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc