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

wboayue / rust-ibapi / 24292109895
85%

Build:
DEFAULT BRANCH: main
Ran 11 Apr 2026 09:39PM UTC
Jobs 1
Files 109
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

11 Apr 2026 09:32PM UTC coverage: 85.307% (-0.4%) from 85.692%
24292109895

push

github

web-flow
add outbound protobuf encoders (Phase 4) (#451)

* add outbound protobuf encoders (Phase 4)

Shared domain→proto converters in src/proto/encoders.rs for Contract,
Order, ComboLeg, DeltaNeutralContract, SoftDollarTier, ExecutionFilter,
ScannerSubscription, and OrderCondition types.

Domain-specific proto encoders added to all 10 modules: orders,
contracts, market_data (realtime, historical, mod), accounts, news,
scanner, display_groups, and wsh. 57 proto encoder functions total,
each producing binary payloads with +200 message ID offset.

93 new unit tests verify message framing and roundtrip decode.

* fix cancel message IDs, cancel_account subscribe flag, add missing test

- encode_cancel_histogram_data_proto: RequestHistogramData → CancelHistogramData
- encode_cancel_head_timestamp_proto: RequestHeadTimestamp → CancelHeadTimestamp
- encode_cancel_account_updates_proto: subscribe None → Some(false)
- add test for encode_request_market_data_type_proto
- add test for encode_cancel_histogram_data_proto

* extract encode_cancel_by_id and encode_empty_proto macros

Replace 23 boilerplate proto encoder bodies (17 cancel-by-id,
6 empty-request) with shared macros in proto/encoders.rs.

* extract assert_proto_msg_id to shared test utils

Replace 7 identical local assert_msg_id helpers with shared
assert_proto_msg_id in common::test_utils::helpers.

* add roundtrip decode assertions, simplify quantity encoding

- realtime/historical/accounts proto tests now verify decoded field
  values (req_id, contract.symbol, tick_type, etc.), not just msg_id
- encode_order: inline total_quantity/filled_quantity zero checks,
  remove post-hoc mutation

* fix server_time/server_time_millis protobuf decoding

Server v220 responds with protobuf CurrentTime/CurrentTimeInMillis
messages. Add decode_server_time to handle both protobuf and text
formats, replacing the inline text-only decoder in sync and async.

* fix protobuf response routing and account_summary decoding

- sync ... (continued)

473 of 608 new or added lines in 14 files covered. (77.8%)

9893 of 11597 relevant lines covered (85.31%)

112.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
32
80.37
-19.63% src/accounts/common/encoders.rs
32
88.57
src/proto/encoders.rs
18
82.76
-9.29% src/market_data/historical/common/encoders.rs
15
92.02
-7.98% src/market_data/realtime/common/encoders.rs
13
93.91
-3.28% src/accounts/common/decoders.rs
12
85.38
-1.64% src/orders/common/encoders.rs
11
82.81
-17.19% src/news/common/encoders.rs
2
94.72
-0.34% src/messages.rs
Jobs
ID Job ID Ran Files Coverage
1 24292109895.1 11 Apr 2026 09:39PM UTC 109
85.31
GitHub Action Run
Source Files on build 24292109895
  • Tree
  • List 109
  • Changed 15
  • Source Changed 15
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24292109895
  • 31f4795f on github
  • Prev Build on main (#24279427661)
  • Next Build on main (#24323525547)
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