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

kaidokert / rm32 / 25197859786
63%

Build:
DEFAULT BRANCH: main
Ran 01 May 2026 01:28AM UTC
Jobs 1
Files 34
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

01 May 2026 01:27AM UTC coverage: 61.057% (-1.7%) from 62.721%
25197859786

push

github

web-flow
Make struct fields private, add accessor methods (#24)

* Make struct fields private, add accessor methods

Strip pub/pub(crate) from struct fields across BemfState, DutyState,
ProtectionState, Measurements, TimingState, Commutation, MainState,
and InputState. Add minimal accessor methods where external access
is needed.

Fields kept pub only where rm32_stm32 constructs or directly writes
them (DutyState::minimum/min_startup/startup_max, ProtectionState
bemf_timeout fields, MainState::config/just_armed/cell_count).

The harness binary is a separate crate in Cargo's model, so all
harness field access now goes through public accessor methods.
This forms a stable API while field layout remains free to change.

* Remove &mut accessors, add specific setter methods instead

forward_mut(), measurements_mut(), timing_mut(), pid_mut() returned
mutable references to internal state — fake encapsulation that gives
callers full field access.

Replace with specific setter methods on MainState that delegate to
sub-structs: set_use_current_limit, set_use_speed_control,
set_average_interval, set_last_average_interval, set_battery_voltage,
set_actual_current.

Commutation::forward_mut() replaced with copy-in/copy-out pattern
at the CommandProcessor call site.

0 of 175 new or added lines in 5 files covered. (0.0%)

3 existing lines in 1 file now uncovered.

3338 of 5467 relevant lines covered (61.06%)

625.85 hits per line

Uncovered Changes

Lines Coverage ∆ File
60
73.97
-24.38% rm32/src/control/state.rs
46
0.0
0.0% rm32/src/bin/harness.rs
39
63.86
-6.82% rm32/src/main_state.rs
21
81.4
-15.83% rm32/src/commutation.rs
9
74.63
-3.43% rm32/src/control/input.rs

Coverage Regressions

Lines Coverage ∆ File
3
0.0
0.0% rm32/src/bin/harness.rs
Jobs
ID Job ID Ran Files Coverage
1 25197859786.1 01 May 2026 01:28AM UTC 34
61.06
GitHub Action Run
Source Files on build 25197859786
  • Tree
  • List 34
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25197859786
  • e0eea5f8 on github
  • Prev Build on main (#25196902395)
  • Next Build on main (#25201063715)
  • Delete
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