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

go-pkgz / rest / 32198203704
97%

Build:
DEFAULT BRANCH: master
Ran 18 Aug 2026 11:41PM UTC
Jobs 1
Files 25
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

18 Aug 2026 11:41PM UTC coverage: 97.615% (+0.1%) from 97.493%
32198203704

push

github

umputun
fix: measure request duration on the injectable clock

Handler took its start time from nowFn but closed the measurement with
time.Since, so the duration always came from the wall clock and no test could
control it. TestBenchmarks_Handler therefore slept 50ms per request and asserted
the result within a 10ms band, which failed roughly one run in ten on a loaded
machine.

Both ends read nowFn now, which is time.Now in production and carries the same
monotonic reading time.Since uses, so the measurement is unchanged there. The
test drives a fake clock instead of sleeping: the numbers are exact rather than
banded, and the package tests run about five seconds faster.

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

1637 of 1677 relevant lines covered (97.61%)

47.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32198203704.1 18 Aug 2026 11:41PM UTC 25
97.61
GitHub Action Run
Source Files on build 32198203704
  • Tree
  • List 25
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 5297d5a1 on github
  • Prev Build on master (#32197883937)
  • Next Build on master (#32198708772)
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