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

wboayue / rust-ibapi / 25622515907
92%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 07:07AM UTC
Jobs 1
Files 126
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

10 May 2026 07:06AM UTC coverage: 89.593% (+0.1%) from 89.495%
25622515907

push

github

web-flow
chore(realtime): drop text branches in 13 market-data decoders (#543)

* chore(realtime): drop text branches in 13 market-data decoders

Floor-210 cleanup for realtime market-data. Tick-by-tick / RealTimeBars
(gate 208) and TickPrice/Size/String/Generic/OptionComputation/ReqParams/
MarketDataType/MarketDepth/MarketDepthL2 (gate 206) are now proto-only;
text-framed arrival rejected via require_proto and skip-classifies.

- Add 3 tick-by-tick proto decoders over proto::TickByTickData oneof
- Move decode_real_time_bar_proto from historical → realtime (output is
  realtime::Bar; the historical home was misplaced)
- Drop context.server_version plumbing through Bar/Trade/BidAsk/MidPoint/
  MarketDepths dispatchers; replace decode_proto_or_text with direct
  decoder calls in TickTypes::decode
- New realtime/common/test_helpers.rs with shared proto fixtures for
  sync/async/decoders test files; sync+async tests migrated from text
  response_messages to proto_response()
- Remove now-unused crate::contracts::decode_option_computation re-export

Stays text: decode_tick_efp (no server proto). Stays dual-format:
decode_market_depth_exchanges (gate 213, future ratchet).

* docs(plan): cite PR #543 for realtime text-cleanup

* chore(realtime): /simplify pass — fixture builders, tighter decoder

Replaces realtime/common/test_helpers.rs (free positional-arg helpers,
8/7-arg fns + clippy::too_many_arguments allows) with field-minimal
ResponseProtoEncoder builders in src/testdata/builders/market_data.rs,
matching the news/scanner/orders precedent (rule 19).

- New builders: realtime_bar_tick / trade_tick / bid_ask_tick /
  mid_point_tick / market_depth_response / tick_price / tick_size /
  tick_string / tick_generic. Default uses TEST_REQ_ID_FIRST (was 9001),
  fluent setters per field, ResponseProtoEncoder for free encode_proto.
- decoders/tests.rs: drop redundant cfg(test) on inner modules and the
  duplicated local encode helper; consume builders directly.
- decoders... (continued)

460 of 504 new or added lines in 3 files covered. (91.27%)

3 existing lines in 2 files now uncovered.

18269 of 20391 relevant lines covered (89.59%)

25.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
36
95.17
-4.83% src/testdata/builders/market_data.rs
6
94.84
4.07% src/market_data/realtime/common/decoders/mod.rs
2
88.61
7.16% src/market_data/realtime/mod.rs

Coverage Regressions

Lines Coverage ∆ File
2
90.27
-0.27% src/messages.rs
1
94.84
4.07% src/market_data/realtime/common/decoders/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 25622515907.1 10 May 2026 07:07AM UTC 126
89.59
GitHub Action Run
Source Files on build 25622515907
  • Tree
  • List 126
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25622515907
  • 2ed4b079 on github
  • Prev Build on main (#25620921532)
  • Next Build on main (#25622810836)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc