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

DrudgeCAS / drudge / 31886135551
88%

Build:
DEFAULT BRANCH: master
Ran 15 Aug 2026 01:02PM UTC
Jobs 1
Files 16
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

15 Aug 2026 01:02PM UTC coverage: 87.887%. Remained the same
31886135551

push

github

web-flow
test: Drive the stopwatch test from a stub clock (#76)

`test_stopwatch` slept for real and then checked the reported duration, so
it failed whenever a CI runner was busy. It failed on an unrelated PR
today, and passed on a rerun with no change.

The assertions were also weaker than they looked. Written as
`float(...) - 0.5 < 0.001`, with no `abs()`, they were one-sided: any
measurement below 0.501 passed, including zero, so a stopwatch that
under-reported or always returned nothing would not have been caught. Only
an overshoot of more than a millisecond failed, which is exactly the thing
a shared runner cannot promise.

What is under test is the arithmetic the stopwatch does on its clock
readings, not the clock. Feed it known readings through `perf_counter` and
assert the formatted output exactly. The test no longer sleeps, so it also
stops burning a second of CPU in a busy-wait loop.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

3693 of 4202 relevant lines covered (87.89%)

0.88 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31886135551.1 15 Aug 2026 01:02PM UTC 16
87.89
GitHub Action Run
Source Files on build 31886135551
  • Tree
  • List 16
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9ea77df0 on github
  • Prev Build on master (#31886126656)
  • Next Build on master (#31886327563)
  • 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