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

mtlynch / GreenPiThumb / 145 / 1
82%
master: 86%

Build:
Build:
LAST BUILD BRANCH: upgrade-yapf
DEFAULT BRANCH: master
Ran 26 Mar 2017 03:24AM UTC
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

26 Mar 2017 03:23AM UTC coverage: 81.87%. Remained the same
145.1

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

Source Files on job 145.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 145
  • Travis Job 145.1
  • 5884a15c on github
  • Prev Job for on refactored-pollers (#144.1)
  • Next Job for on refactored-pollers (#148.1)
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