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

wboayue / rust-ibapi / 20613918502
87%

Build:
DEFAULT BRANCH: main
Ran 31 Dec 2025 06:59AM UTC
Jobs 1
Files 94
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

31 Dec 2025 06:54AM UTC coverage: 86.124% (+0.1%) from 86.016%
20613918502

push

github

web-flow
feat: Add async client method to subscribe to display group events (#353)

* feat: Add async client method to subscribe to display group events, supporting corresponding message types and including an example.

* fix(client): prevent panic on short display group messages

Subscribing to display group events could panic if TWS sent a message with fewer than 4 fields (e.g. when the group is empty).
This change adds a length check before accessing the contract info field at index 3.

Fixes index out of bounds panic.

* fix: add unsubscribe support and message validation for group events

- Add cancel_fn to send UnsubscribeFromGroupEvents when subscription dropped
- Validate incoming message type is DisplayGroupUpdated
- Add set_cancel_fn and has_cancel_fn methods to Subscription
- Add tests for cancel function and message type validation

* fix: use recommended port in example, add warning for short messages

* refactor: extract display groups encoders/decoders to separate module

- Create display_groups module with common/encoders.rs and common/decoders.rs
- Move encoding/decoding logic out of client/async.rs
- Add unit tests for encoders and decoders
- Feature-gate module for async only

* fix: use TWS port for display groups example (Gateway doesn't support display groups)

---------

Co-authored-by: Wil Boayue <wil.boayue@gmail.com>

41 of 43 new or added lines in 5 files covered. (95.35%)

7 existing lines in 1 file now uncovered.

7920 of 9196 relevant lines covered (86.12%)

126.74 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
99.24
-0.51% src/messages.rs

Uncovered Existing Lines

Lines Coverage ∆ File
7
64.53
3.49% src/contracts/types.rs
Jobs
ID Job ID Ran Files Coverage
1 20613918502.1 31 Dec 2025 06:59AM UTC 94
86.12
GitHub Action Run
Source Files on build 20613918502
  • Tree
  • List 94
  • Changed 5
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20613918502
  • 2c75486b on github
  • Prev Build on main (#19995736263)
  • Next Build on main (#20613954002)
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