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

wboayue / rust-ibapi / 25716162121
92%

Build:
DEFAULT BRANCH: main
Ran 12 May 2026 05:53AM UTC
Jobs 1
Files 127
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

12 May 2026 05:51AM UTC coverage: 91.716% (+0.2%) from 91.517%
25716162121

push

github

web-flow
market_data/historical/async: lift coverage 83.75% → 92.06% (#563)

* market_data/historical/async: lift coverage 83.75% → 92.06%

Add 18 tests covering version gates (head_timestamp, schedule + trading-class
arm, ticks_{bid_ask,mid_point,trade}, cancel_historical_ticks, histogram_data,
streaming trading-class arm), decoder branches (head_timestamp + schedule
unexpected-response, historical_data HISTORICAL_DATA_END follow-on, MAX_RETRIES
exhaustion → ConnectionReset), and TickSubscription edge cases (cancel happy
path + idempotency, fill_buffer wrong-type skip, Some(Err) via injected
RoutedItem::Error, closed-channel None).

* historical/async_tests: fold version-check duplication, sweep contract literals

Extract assert_version_check_fails helper — collapses 9 repeated version-check
test bodies (and 3 mismatched assertion shapes: expect_err / let-else /
is_err) into a single closure-based helper. Sidesteps the T: Debug bound that
blocks .expect_err() on TickSubscription / Subscription return types.

Sweep 11 inline GBL/EUREX/EUR contract literals in pre-existing tests to use
test_contract(). Net −104 lines, coverage unchanged (92.06%).

* /simplify: type version-check helper, extract unexpected-response helper, fix bare matches!

- Change assert_version_check_fails to take ProtocolFeature; derive
  min_version - 1 + feature.name internally. Removes 9 stringly-typed
  literal pairs (rule 21).
- Extract assert_unexpected_response, fold 3 sites (incl. pre-existing
  test_historical_data_unexpected_response per rule 9). The pre-existing
  test had a bare `matches!(...)` statement — bool discarded, variant
  check silently dropped. Helper centralizes `assert!(matches!(...))`.
- Two new tests had the same matches! bug; now fixed via the helper.
- Hoist `use ...RoutedItem` from inside a test to top-level imports.
- Drop `///` rustdoc on private helpers (`//` is enough).
- Replace 4 hand-rolled `MessageBusStub { ... }` literals with `with_responses`.
- Trim ... (continued)

18844 of 20546 relevant lines covered (91.72%)

27.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25716162121.1 12 May 2026 05:53AM UTC 127
91.72
GitHub Action Run
Source Files on build 25716162121
  • Tree
  • List 127
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25716162121
  • 86c8aa91 on github
  • Prev Build on main (#25713636856)
  • Next Build on main (#25716583682)
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