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

rust-bitcoin / rust-bitcoin / 7917967798 / 1
83%
master: 83%

Build:
DEFAULT BRANCH: master
Ran 15 Feb 2024 03:05PM UTC
Files 87
Run time 8s
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

15 Feb 2024 03:04PM UTC coverage: 83.995% (-0.04%) from 84.038%
7917967798.1

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#2436: Add unchecked variants to Amount and SignedAmount

<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/df1d2f6eb5e94e57180573a5096e37424df98035">df1d2f6eb Add unchecked variants to Amount and SignedAmount (yancy)

Pull request description:

  The checked variants have worse performance than the unchecked variants due to the additional branching operations.  To improve performance where overflow is either not possible or not a concern, unchecked variants of `Amount` and `SignedAmount` are introduced for addition, subtraction and multiplication.

  Note, it seems the default behavior for the test framework is to panic on overflow, so I haven't figured out a good way to add tests for this.  Marking as a draft for now.

  closes: https://github.com/rust-bitcoin/rust-bitcoin/issues/2434

ACKs for top commit:
  Kixunil:
    ACK df1d2f6eb5e94e57180573a5096e37424df98035
  apoelstra:
    ACK df1d2f6eb5e94e57180573a5096e37424df98035 gonna go ahead and merge this, we can revisit if necessary when we look at `units` overflow behavior in general

Tree-SHA512: 3fbb0ec8166bee83c0582d8a8e34d5376fa

19433 of 23136 relevant lines covered (83.99%)

16706.52 hits per line

Source Files on job 7917967798.1
  • Tree
  • List 0
  • Changed 13
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7917967798
  • bf29a76d on github
  • Prev Job for on master (#7892264908.1)
  • Next Job for on master (#7924604156.1)
  • 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