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

feeph / libemc2101-python / 10549983511
93%

Build:
DEFAULT BRANCH: master
Ran 25 Aug 2024 08:45PM UTC
Jobs 1
Files 13
Run time 1min
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

25 Aug 2024 08:44PM UTC coverage: 93.048% (-0.2%) from 93.273%
10549983511

push

github

web-flow
feat: cleanup interface and leverage inheritance (#51)

The initial implementation tried to separate the low-level interface to
the EMC2101's functionality from the high-level interfaces (PWM & DAC).
This lead to significant code duplication between EMC2101_Core and
EMC2101_PWM. This duplication would only get worse once EMC2101_DAC is
added.

The redesigned interface scraps that distinction and instead leverages
inheritance to remove code duplication. This is expected to result in a
cleaner and easier to manage code base.

notable changes:
 - remove code duplication between EMC2101_Core and EMC2101_PWM
 - rework the initialization logic for the low-level implementation
 - rename 'chip' and 'external' sensore to 'its' and 'ets'
   (the external temperature sensor had many different names - these
   have been cleaned up)
 - redesign lookup table into a low-level and an extended implementation
   (The low-level implementation exclusively supports steps and has no
   concept of a percentage or RPM. PWM and DAC implementation need to
   provide the required logic to convert Percentage and RPM into steps.)
 - eliminate no longer required intermediate functionality

134 of 136 new or added lines in 6 files covered. (98.53%)

696 of 748 relevant lines covered (93.05%)

0.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
91.75
-3.78% feeph/emc2101/pwm.py
Jobs
ID Job ID Ran Files Coverage
1 10549983511.1 25 Aug 2024 08:45PM UTC 13
93.05
GitHub Action Run
Source Files on build 10549983511
  • Tree
  • List 13
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10549983511
  • 5ae941dd on github
  • Prev Build on master (#10514220075)
  • Next Build on master (#10549995692)
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

© 2025 Coveralls, Inc