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

cenkalti / backoff / 88
85%
v4: 89%

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

pending completion
88

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 164 relevant lines covered (82.32%)

14.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 88.1 29 Mar 2017 10:50AM UTC 0
82.32
Travis Job 88.1
2 88.2 29 Mar 2017 10:52AM UTC 0
82.82
Travis Job 88.2
Source Files on build 88
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #88
  • 5d150e7e on github
  • Prev Build on master (#86)
  • Next Build on master (#95)
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