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

cenkalti / backoff / 88 / 2
85%
v4: 89%

Build:
Build:
LAST BUILD BRANCH: v4.1.1
DEFAULT BRANCH: v4
Ran 29 Mar 2017 10:52AM UTC
Files 5
Run time 0s
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

29 Mar 2017 10:49AM UTC coverage: 82.822% (+1.4%) from 81.437%
88.2

push

travis-ci

cenkalti
Remove checking of a constant value

The NewExponentialBackOff function initalizes an instance of the
ExponentialBackOff struct with the DefaultRandomizationFactor constant
as the RandomizationFactor field. It then checks if the RandomizationFactor
field of the struct is less than 0 or greater than 1.

The checks were currently not doing much since the value they were
checking is a constant and will always be between 0 and 1. The
validation would make sense if the value was provided by the caller of
the function (in this case it isn't).

Signed-off-by: Steven Erenst <stevenerenst@gmail.com>

135 of 163 relevant lines covered (82.82%)

7.06 hits per line

Source Files on job 88.2
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 88
  • Travis Job 88.2
  • 5d150e7e on github
  • Prev Job for on master (#86.2)
  • Next Job for on master (#95.2)
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