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

wboayue / rust-ibapi / 25765228917
92%

Build:
DEFAULT BRANCH: main
Ran 12 May 2026 10:13PM 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

12 May 2026 10:11PM UTC coverage: 91.951% (+0.02%) from 91.936%
25765228917

push

github

web-flow
macros: crate-wide impl_wire_enum + dedupe infra (typed-status PR 4a) (#569)

* macros: promote impl_wire_enum crate-wide + dedupe encoder/test infra (typed-status sweep PR 4a)

Zero behavior change. Sets up PR 4b (ExecutionFilterSide) and PR 5b
(ExecutionSide) to use the same shape without further infra work.

- Move impl_str_partial_eq! and impl_wire_enum! from contracts/types.rs
  to a new src/macros.rs reachable crate-wide via #[macro_use] mod
  macros; in lib.rs. Project convention had been module-local macros;
  justified by 6-consumer count (OptionRight, SecurityIdType, LegAction
  in contracts/; OrderStatusKind retrofit here + imminent
  ExecutionFilterSide + ExecutionSide in orders/). Orphan rule
  forecloses blanket-impl alternatives (rule 25 case a).

- Promote check_wire_enum_round_trip and check_wire_enum_rejects_unknown
  from contracts/types_tests.rs to a new pub mod wire_enum in
  common/test_utils.rs. Generic helper functions, not a macro (rule 25
  preferred shape). orders/tests.rs and contracts/types_tests.rs both
  consume.

- Add some_display(Option<and impl Display>) returning Option<String>
  next to some_str in proto/encoders.rs and convert the two existing
  PR 2 / PR 3b sites (right, sec_id_type). Third site (PR 4b
  filter.side) hits the rule-of-three tripwire; closes the PR 3b
  /simplify tracked deferral.

- Retrofit OrderStatusKind in orders/mod.rs to as_str + from_wire +
  impl_wire_enum!. Drops the hand-rolled Display + FromStr; gains
  ToField (additive, no removal). Closes the PR 3a follow-up note.

* /simplify pass: merge OrderStatusKind impl blocks to match precedent

Three `impl OrderStatusKind` blocks (as_str+from_wire, then macro
invocation, then is_active+is_terminal) collapse to one inherent block
followed by impl_wire_enum!. Matches the OptionRight / SecurityIdType /
LegAction precedent in contracts/types.rs — single inherent block, then
the macro. Pure code motion, no semantic change.

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

18929 of 20586 relevant lines covered (91.95%)

26.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25765228917.1 12 May 2026 10:13PM UTC 128
91.95
GitHub Action Run
Source Files on build 25765228917
  • Tree
  • List 128
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25765228917
  • db3c6059 on github
  • Prev Build on main (#25755674027)
  • Next Build on main (#25766258915)
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