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

wboayue / rust-ibapi / 25419016477
92%

Build:
DEFAULT BRANCH: main
Ran 06 May 2026 05:57AM UTC
Jobs 1
Files 124
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

06 May 2026 05:56AM UTC coverage: 88.017% (+0.03%) from 87.992%
25419016477

push

github

web-flow
feat(orders)!: type OrderStatus.status / OrderState.status as OrderStatusKind (#518)

* feat(orders)!: type OrderStatus.status / OrderState.status as OrderStatusKind

Replace stringly-typed status fields with a strict OrderStatusKind enum (9 variants matching IB C# OrderStatus). Adds Display, FromStr, and is_active/is_terminal helpers mirroring C# OrderStatusUtils.

OrderState.completed_status stays String -- wire data is free-form descriptive text (e.g. Cancelled by Trader, Filled Size: 1), not enum vocabulary.

Examples now use status.is_terminal() instead of magic-string compares.

Breaking change for v3.0.

* docs: README + migration guide for OrderStatusKind; CLAUDE.md doc-sync rule

README: drop dead OrderUpdate::Message arms (removed in #517); show is_terminal() in order-update examples.

docs/migration-3.0.md: new section for OrderStatus.status / OrderState.status -> OrderStatusKind; documents per-T Notice/Message variant removal; update PlaceOrder example; expand checklist.

CLAUDE.md: explicit rule to update README + docs/migration-3.0.md in the same PR as any v3.0 breaking change; mechanical grep check before opening PR.

* test(orders): unit-test triple for OrderStatusKind; expand variant docs

Three tests in src/orders/tests.rs:

- order_status_kind_from_str_round_trips_for_all_variants: each of 9 variants parses + Display round-trips through FromStr (catches mapping typos)

- order_status_kind_from_str_rejects_unknown_status: unknown string surfaces as Error::Parse with the offending value (catches silent decode regressions)

- is_active_and_is_terminal_partition_eight_of_nine_variants: exhaustive match asserts each variant lands in exactly the right helper bucket; ApiPending falls outside both per the documented gap

Variant docs expanded to preserve the IB-reference detail that was previously inline on OrderStatus.status (election criteria for PreSubmitted, transitional ApiCancelled, market-order Filled caveat). Restores informational ... (continued)

58 of 58 new or added lines in 4 files covered. (100.0%)

17577 of 19970 relevant lines covered (88.02%)

33.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25419016477.1 06 May 2026 05:57AM UTC 124
88.02
GitHub Action Run
Source Files on build 25419016477
  • Tree
  • List 124
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25419016477
  • b9ed884e on github
  • Prev Build on main (#25415024063)
  • Next Build on main (#25419344462)
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