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

wboayue / rust-ibapi / 25285032604
92%

Build:
DEFAULT BRANCH: main
Ran 03 May 2026 04:52PM UTC
Jobs 1
Files 117
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

03 May 2026 04:51PM UTC coverage: 88.231% (-0.06%) from 88.295%
25285032604

push

github

web-flow
test(accounts): builders + body-verifying test migration (#496)

PR 2 of the test-builders plan (todos/test-builders.md). Adds typed
response and request builders for the accounts domain (everything
beyond positions, which landed in PR 1) and migrates the sync and
async account tests onto them, upgrading msg-id-only assertions to
full request-body verification via assert_request<B>.

Builders added (testdata/builders/accounts.rs)
- Response: managed_accounts, account_summary, account_summary_end,
  account_value, account_download_end, account_update_multi,
  account_update_multi_end, family_codes, current_time, pnl, pnl_single
  -- each implements ResponseEncoder for text + to_proto/encode_proto
  for protobuf
- Request: request_managed_accounts, request_account_summary,
  cancel_account_summary, request_account_updates,
  cancel_account_updates, request_account_updates_multi,
  cancel_account_updates_multi, request_pnl, cancel_pnl,
  request_pnl_single, cancel_pnl_single, request_family_codes,
  request_current_time -- each impls RequestEncoder

Tests migrated
- src/accounts/sync/tests.rs: 21 tests, all assert_request_msg_id calls
  upgraded to assert_request<B> with body verification (request_id,
  account, model_code, etc.)
- src/accounts/async/tests.rs: 16 tests, same upgrade
- 40 new builder unit tests covering text encode, proto round-trips,
  and encode_request msg-id headers

Cleanup
- Drop unused string constants from src/testdata/responses.rs (kept
  MANAGED_ACCOUNT, ACCOUNT_UPDATE_MULTI_CURRENCY, ACCOUNT_VALUE,
  MARKET_RULE -- still used by recorder.rs and decoder tests)

504 of 598 new or added lines in 3 files covered. (84.28%)

1 existing line in 1 file now uncovered.

17656 of 20011 relevant lines covered (88.23%)

24.41 hits per line

Uncovered Changes

Lines Coverage ∆ File
87
84.38
src/testdata/builders/accounts.rs
5
91.67
-8.33% src/testdata/builders/mod.rs
2
77.53
2.02% src/testdata/builders/positions.rs

Coverage Regressions

Lines Coverage ∆ File
1
77.53
2.02% src/testdata/builders/positions.rs
Jobs
ID Job ID Ran Files Coverage
1 25285032604.1 03 May 2026 04:52PM UTC 117
88.23
GitHub Action Run
Source Files on build 25285032604
  • Tree
  • List 117
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25285032604
  • 38eb7bde on github
  • Prev Build on main (#25272768628)
  • Next Build on main (#25286262939)
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