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

mtlynch / GreenPiThumb / 144
82%
master: 86%

Build:
Build:
LAST BUILD BRANCH: upgrade-yapf
DEFAULT BRANCH: master
Ran 26 Mar 2017 03:21AM UTC
Jobs 1
Files 19
Run time 1s
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
144

push

travis-ci

mtlynch
Refactoring pollers

The goal of the refactoring is to fix two problems:
1. SensorPollBase has a design flaw in that it runs in the main thread, but
 holds instance data that is meant to be operated on in the background thread.
 This is error-prone because if SensorPollBase touches its members that are
 not thread safe while the background thread is also touching it, we can get
 concurrency bugs. We should redesign it so that it doesn't have access to
 any instance data it shouldn't be touching.
2. There are two ways of instantiating the pollers: through the
 SensorPollerFactory and by instantiating the objects directly. Offering an
 API with multiple ways of doing the same thing is messy, so we're making
 the classes private so that the factory is the only way clients can create
 them. We also rewrite the unit tests to test through the factory so that the
 unit tests are an accurate reflection of how the caller uses the APIs.

429 of 524 relevant lines covered (81.87%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 144.1 26 Mar 2017 03:21AM UTC 0
81.87
Travis Job 144.1
Source Files on build 144
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #144
  • 94f14823 on github
  • Next Build on refactored-pollers (#145)
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