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

TykTechnologies / tyk / 2785

Build:
DEFAULT BRANCH: master
Ran 23 Aug 2017 11:09AM UTC
Jobs 1
Files 84
Run time 4s
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
2785

push

travis-ci

buger
api: redesign round-robin with sync/atomic

This means we no longer use a mutex around a number. The code should be
a bit faster, but most importantly it's much shorter and easier to
understand.

The only change in behavior is that when the max gets shortened, instead
of resetting back to 0, we wrap around with the remainder operation.
This is less predictable - the new position will be random - but it's
actually better. If we always reset to 0, the first elements of the list
would tend to get selected more often than the last elements.

Also test that we don't barf with a divide by zero if the length is zero
and there are no positions to select from.

5947 of 13557 relevant lines covered (43.87%)

0.47 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2785.2 (LATEST_GO=true) 23 Aug 2017 11:09AM UTC 0
43.87
Travis Job 2785.2
Source Files on build 2785
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2785
  • 8d66c756 on github
  • Prev Build on master (#2783)
  • Next Build on master (#2786)
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