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

kaidokert / rm32 / 25201391585

01 May 2026 03:52AM UTC coverage: 60.927% (+0.003%) from 60.924%
25201391585

push

github

web-flow
Extract IsrTiming sub-trait from SharedComm (#26)

* Extract IsrTiming sub-trait from SharedComm

Second step of SharedComm decomposition: extract 15 ISR-produced
timing and state methods into a dedicated IsrTiming trait:

- zero_crosses, set_zero_crosses, increment_zero_crosses
- commutation_interval, set_commutation_interval
- e_com_time, set_e_com_time
- interval_timer_count, set_interval_timer_count
- signal_timeout, increment_signal_timeout
- duty_cycle, set_duty_cycle
- forward, set_forward

SharedComm now requires MotorState + IsrTiming as super-traits.
SharedState and TestShared implement IsrTiming in separate impl blocks.

* Add missing IsrTiming overrides to TestShared

TestShared was falling back to no-op defaults for set_e_com_time,
interval_timer_count, and set_interval_timer_count after the IsrTiming
extraction. Add implementations that delegate to the Cell fields.

42 of 109 new or added lines in 3 files covered. (38.53%)

3 existing lines in 2 files now uncovered.

3340 of 5482 relevant lines covered (60.93%)

624.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.0
/rm32/src/control/shared_impl.rs


Source Not Available

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