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

enbility / spine-go / 21826763158
94%

Build:
DEFAULT BRANCH: dev
Ran 09 Feb 2026 01:24PM UTC
Jobs 1
Files 62
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

09 Feb 2026 01:22PM UTC coverage: 93.876% (-0.2%) from 94.041%
21826763158

push

github

web-flow
Fix calendar-dependent duration encoding in NewDurationType (#82)

Replace time.Now()-based calendar decomposition with pure arithmetic
using days/hours/minutes/seconds only. The previous implementation used
time.Now() + AddDate() to produce year/month components (P1Y, P1M), but
GetTimeDuration() decoded them via fixed averages (1M ≈ 30.44 days),
causing lossy round-trips that varied by date (e.g. failing in February
when 28 days encoded as P1M decoded back to ~30.44 days).

Since time.Duration is an absolute nanosecond count with no calendar
concept, decomposing into days is the truthful representation and
guarantees exact round-trips regardless of when the code runs.

Fixes https://github.com/enbility/spine-go/issues/81

12 of 12 new or added lines in 1 file covered. (100.0%)

17 existing lines in 2 files now uncovered.

5626 of 5993 relevant lines covered (93.88%)

28921.09 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
89.72
-0.31% spine/feature_local.go
15
96.07
-1.36% spine/device_local.go
Jobs
ID Job ID Ran Files Coverage
1 21826763158.1 09 Feb 2026 01:24PM UTC 62
93.88
GitHub Action Run
Source Files on build 21826763158
  • Tree
  • List 62
  • Changed 8
  • Source Changed 8
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21826763158
  • 9a649ab7 on github
  • Prev Build on dev (#21215372611)
  • Next Build on dev (#21831893921)
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