|
Ran
|
Jobs
1
|
Files
114
|
Run time
1min
|
Badge
README BADGES
|
push
github
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
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 2 |
83.71 |
-0.22% | units/src/amount/unsigned.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 12238194775.1 | 114 |
82.86 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|