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

gookit / config / 28679896318
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v2.2.9
DEFAULT BRANCH: master
Ran 04 Jul 2026 02:40AM UTC
Jobs 5
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

03 Jul 2026 07:29PM UTC coverage: 98.154% (-0.07%) from 98.22%
28679896318

Pull #218

github

j-ibarra
fix(read): Duration parses Go duration strings (e.g. "300s", "1h30m")

The Config.Duration getter read the value as an int64 and returned
time.Duration(n) — i.e. nanoseconds — so a duration string like "300s" could
not be read at all (it failed integer parsing and yielded 0), and a bare
number was interpreted as nanoseconds. Duration parsing existed only on the
struct-binding path (ParseTime decode hook), not the getter.

Parse the stored value as a Go duration string first (time.ParseDuration),
falling back to the previous int64-nanoseconds behaviour for bare integers,
then to the default. Backwards compatible; adds a getter test.
Pull Request #218: fix(read): Duration() parses Go duration strings (e.g. "300s", "1h30m")

13 of 14 new or added lines in 1 file covered. (92.86%)

1223 of 1246 relevant lines covered (98.15%)

5.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.78
-0.18% read.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.23 - 28679896318.1 04 Jul 2026 02:40AM UTC 11
98.15
GitHub Action Run
2 Go-1.24 - 28679896318.2 04 Jul 2026 02:40AM UTC 11
98.15
GitHub Action Run
3 Go-1.21 - 28679896318.3 04 Jul 2026 02:40AM UTC 11
98.15
GitHub Action Run
4 Go-1.22 - 28679896318.4 04 Jul 2026 02:40AM UTC 11
98.15
GitHub Action Run
5 Go-stable - 28679896318.5 04 Jul 2026 02:40AM UTC 11
98.15
GitHub Action Run
Source Files on build 28679896318
  • Tree
  • List 11
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #218
  • PR Base - master (#28224691523)
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