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

rust-bitcoin / rust-bitcoin / 13357069025
83%

Build:
DEFAULT BRANCH: master
Ran 16 Feb 2025 05:05PM UTC
Jobs 1
Files 123
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

16 Feb 2025 05:04PM UTC coverage: 82.614% (-0.2%) from 82.771%
13357069025

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#4007: Introduce monadic `NumOpResult` type

<a class=hub.com/rust-bitcoin/rust-bitcoin/commit/<a class="double-link" href="https://git"><a class=hub.com/rust-bitcoin/rust-bitcoin/commit/6244cb75faf62aed4b47d63a59d14cb766e4e7a8">6244cb75f Introduce monadic AmountOpResult (Tobin C. Harding)

Pull request description:

  We would like to return an error when doing math ops on amount types. We cannot however use the stdlib `Result` or `Option` because we want to implement ops on the result type.

  Add an `NumOpResult` type. Return this type from all math operations on `Amount` and `SignedAmount`.

  Implement `core::iter::Sum` for the new type to allow summing iterators of amounts.

  Note please this removes `AddAssign` impls for amount types.

ACKs for top commit:
  apoelstra:
    ACK 6244cb75faf62aed4b47d63a59d14cb766e4e7a8; successfully ran local tests; let's do it -- but definitely want the followup issues addressed
  Kixunil:
    ACK 6244cb75faf62aed4b47d63a59d14cb766e4e7a8

Tree-SHA512: 7a105acb1d183f71cc1af32f39c622d9d64

364 of 457 new or added lines in 5 files covered. (79.65%)

21188 of 25647 relevant lines covered (82.61%)

16983.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
93
55.5
units/src/amount/result.rs
Jobs
ID Job ID Ran Files Coverage
1 13357069025.1 16 Feb 2025 05:05PM UTC 123
82.61
GitHub Action Run
Source Files on build 13357069025
  • Tree
  • List 123
  • Changed 18
  • Source Changed 7
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13357069025
  • 987a74cd on github
  • Prev Build on master (#13348180963)
  • Next Build on master (#13358717946)
  • Delete
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