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

rust-bitcoin / rust-bitcoin / 12238194775
83%

Build:
DEFAULT BRANCH: master
Ran 09 Dec 2024 02:55PM UTC
Jobs 1
Files 114
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

09 Dec 2024 02:54PM UTC coverage: 82.861% (-0.01%) from 82.874%
12238194775

push

github

apoelstra
Merge rust-bitcoin/rust-bitcoin#3693: Change `Amount::MAX` from `u64::MAX` to `Amount::MAX_MONEY`

<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/6950c0a7b507f9d70c1ebdab540634482f73b247">6950c0a7b Change `Amount::MAX` to equal `MAX_MONEY` (Jamil Lambert, PhD)

Pull request description:

  As discussed in #3688 and #3691 using `u64::MAX` causes errors when converting to `f64` so `MAX_MONEY` is should be used as the maximum `Amount`.

   - `Amount::MAX` changed to equal `MAX_MONEY`
   - Add a check to add, multiply and from_str functions
   - Change tests to account for new lower maximum

  Different approach to the existing PR #3692.  I have only done Amount and not SignedAmount until there is feedback on which approach to use.

ACKs for top commit:
  tcharding:
    ACK 6950c0a7b507f9d70c1ebdab540634482f73b247
  apoelstra:
    ACK 6950c0a7b507f9d70c1ebdab540634482f73b247; successfully ran local tests

Tree-SHA512: 03ebf39c499618fab21ca62cf9cddfb1c92

26 of 26 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

20180 of 24354 relevant lines covered (82.86%)

17842.72 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
83.71
-0.22% units/src/amount/unsigned.rs
Jobs
ID Job ID Ran Files Coverage
1 12238194775.1 09 Dec 2024 02:55PM UTC 114
82.86
GitHub Action Run
Source Files on build 12238194775
  • Tree
  • List 114
  • Changed 21
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12238194775
  • b579e123 on github
  • Prev Build on master (#12188753888)
  • Next Build on master (#12241911208)
  • 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