rust-bitcoin-unsafe-fast/units/src/amount
Tobin C. Harding 04bae4bb91
Use _unchecked in unit tests
We now have both `Amount::from_sat_unchecked` and
`SignedAmount::from_sat_unchecked`. These constructors are explicitly
for ignoring any invariant (implied or otherwise) especially in test
code.

Note we do not enforce an invariant currently. This patch is a baby step
towards getting the `amount` module in order.

Replace all calls to `from_sat` for const int values with the
`_unchecked` constructor. Done in `amount::tests` only.
2024-12-30 06:36:09 +11:00
..
error.rs units: Add all pedantic lints 2024-12-18 08:25:12 +11:00
mod.rs units: Make amount::error module private 2024-12-23 15:50:44 +11:00
serde.rs units: Move excluded lints to manifest 2024-12-18 08:25:12 +11:00
signed.rs Introduce Amount::from_sat_unchecked 2024-12-30 06:36:00 +11:00
tests.rs Use _unchecked in unit tests 2024-12-30 06:36:09 +11:00
unsigned.rs Introduce Amount::from_sat_unchecked 2024-12-30 06:36:00 +11:00
verification.rs 2024-12-22 automated rustfmt nightly 2024-12-22 01:21:54 +00:00