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

wboayue / realflight-bridge / #24
92%

Build:
DEFAULT BRANCH: main
Ran 05 Jan 2026 05:03AM UTC
Jobs 1
Files 7
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

05 Jan 2026 05:00AM UTC coverage: 85.872% (+1.2%) from 84.683%
#24

push

web-flow
refactor: eliminate DRY violations (#26)

* refactor: eliminate DRY violations in SimulatorState and decoders

- Add unit_types module with conditional type aliases for uom/non-uom
- Single SimulatorState definition using type aliases (was duplicated)
- Unify decode_state_field with converter functions (to_velocity, etc.)
- Replace 10+ as_* functions with generic parse_with helper
- Add parse_fuel for conditional fuel unit conversion

Reduces lib.rs by ~80 lines, decoders/mod.rs by ~155 lines.

* refactor: reduce boilerplate in process_request

- Add Response helper methods: success(), success_with(), error(), from_result()
- Refactor process_request to use helpers (66 -> 16 lines)
- Simplify process_request_stubbed with pattern matching

Reduces remote.rs by ~40 lines.

* refactor: centralize DEFAULT_SIMULATOR_HOST constant

- Add DEFAULT_SIMULATOR_HOST to lib.rs
- Update Configuration::default() to use central constant
- Simplify handle_client to use RealFlightLocalBridge::new()
- Remove redundant SIMULATOR_HOST constant from remote.rs

* refactor: use generic Fn trait in parse_with, add missing doc

* chore: ignore plans directory

83 of 101 new or added lines in 3 files covered. (82.18%)

468 of 545 relevant lines covered (85.87%)

83.54 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
18
73.39
-2.27% src/bridge/remote.rs
Jobs
ID Job ID Ran Files Coverage
1 #24.1 05 Jan 2026 05:03AM UTC 7
85.87
Source Files on build #24
  • Tree
  • List 7
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 8ba69cf0 on github
  • Prev Build on main
  • Next Build on main
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