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

go-pkgz / rest / 32197939154
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.24.0
DEFAULT BRANCH: master
Ran 18 Aug 2026 11:37PM 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:37PM UTC coverage: 97.454% (-0.04%) from 97.493%
32197939154

Pull #54

github

paskal
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.
Pull Request #54: Measure request duration on the injectable clock

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

1531 of 1571 relevant lines covered (97.45%)

48.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32197939154.1 18 Aug 2026 11:37PM UTC 25
97.45
GitHub Action Run
Source Files on build 32197939154
  • Tree
  • List 25
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #54
  • PR Base - master (#32197883937)
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