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

wboayue / rust-ibapi / 26013932539
92%

Build:
DEFAULT BRANCH: main
Ran 18 May 2026 04:43AM UTC
Jobs 1
Files 128
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

18 May 2026 04:41AM UTC coverage: 92.105% (-0.01%) from 92.119%
26013932539

push

github

web-flow
errors: datetime + message-type parse sites → Error::Parse (#587)

* errors: datetime + message-type parse sites → Error::Parse

PR-4 of plans/error-variants-audit.md (18 sites + 2 new constructors).

Add `Error::parse_field` / `Error::parse_proto` factories (resolution
of parent §5.3 Option 4): keep the `Parse(usize, String, String)`
tuple shape, but encapsulate the placeholder `0` in named
constructors so call sites don't have to remember the convention and
a future shape change (Option<usize> or struct variant) absorbs in
one place.

Conversions (per plan):
- messages.rs:403,753,754 — IncomingMessages / OutgoingMessages
  FromStr "Unknown/Invalid X message type" → Error::parse_field.
- messages.rs:1344,1364,1367,1373,1377 — parse_ib_date_time_with_timezone
  and resolve_primitive_date_time → Error::parse_field.
- accounts/common/decoders/mod.rs:257,263,273,278 — proto path uses
  Error::parse_proto("current_time" / "current_time_in_millis", ...),
  text path uses Error::parse_field on the parsed timestamp.
- news/common/decoders.rs parse_unix_timestamp — both ParseInt and
  from_unix_timestamp failures → Error::parse_field. Also folded the
  trailing match into a single map_err chain.
- market_data/historical/common/decoders/mod.rs parse_unix_seconds_str /
  parse_date_with_tz / parse_bar_date — all 4 sites → Error::parse_field.

No test fixture or pattern-match updates needed: the cursor wrapper at
messages.rs:1155 already re-wraps Simple|Parse → Parse(self.i, ...),
and accounts/{sync,async}/tests.rs match arms already accept
Error::Parse.

* errors(test): dedupe parse_unix_seconds_str err-builder closure

Two identical Error::parse_field(s, format!("invalid unix-second
timestamp: {e}")) closures collapsed into a shared
mk_err: &dyn Display -> Error local. Caught by /simplify on PR-4.

25 of 34 new or added lines in 5 files covered. (73.53%)

21 existing lines in 4 files now uncovered.

18980 of 20607 relevant lines covered (92.1%)

27.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
95.88
-0.28% src/accounts/common/decoders/mod.rs
3
95.16
-4.84% src/errors.rs
3
94.41
0.25% src/market_data/historical/common/decoders/mod.rs

Coverage Regressions

Lines Coverage ∆ File
15
92.91
-0.25% src/messages.rs
4
97.7
-0.03% src/connection/common.rs
1
95.88
-0.28% src/accounts/common/decoders/mod.rs
1
94.41
0.25% src/market_data/historical/common/decoders/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 26013932539.1 18 May 2026 04:43AM UTC 128
92.1
GitHub Action Run
Source Files on build 26013932539
  • Tree
  • List 128
  • Changed 9
  • Source Changed 8
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26013932539
  • bd9e2986 on github
  • Prev Build on main (#26011892968)
  • Next Build on main (#26014029901)
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