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

JeetShetty / GreenPiThumb / 376
78%

Build:
DEFAULT BRANCH: master
Ran 27 Mar 2017 11:23PM 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
376

push

travis-ci

web-flow
Refactoring pollers (#96)

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.

409 of 504 relevant lines covered (81.15%)

0.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 376.1 27 Mar 2017 11:23PM UTC 0
81.15
Travis Job 376.1
Source Files on build 376
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #376
  • ea73d697 on github
  • Prev Build on master (#375)
  • Next Build on master (#380)
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