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

wboayue / realflight-bridge / #24 / 1
92%
main: 92%

Build:
DEFAULT BRANCH: main
Ran 05 Jan 2026 05:03AM UTC
Files 7
Run time 0s
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.1

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

468 of 545 relevant lines covered (85.87%)

83.54 hits per line

Source Files on job #24.1
  • Tree
  • List 7
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24
  • 8ba69cf0 on github
  • Prev Job for on main (##23.1)
  • Next Job for on main (##25.1)
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