Commit c4a2e91
committed
Merge rust-bitcoin#5163: chore: improve test panic messages
89c77e9 chore: improve test panic messages (Klaklax)
Pull request description:
In psbt_high_fee_checks, the fallback panic now reports the unexpected ExtractTxError variant instead of failing silently, so regressions immediately tell reviewers what went wrong. In public_key_from_str_invalid_str, the panic string now names the exact ParsePublicKeyError::InvalidChar variant we’re checking for, removing ambiguity when behavior changes. The assertions stay the same, but the failures are far more actionable.
ACKs for top commit:
apoelstra:
ACK 89c77e9; successfully ran local tests; sure
Tree-SHA512: d38ccdd1819152f87f5b45f5f2a2d77a5f041dfe6772c6e3125be76ff321dff43b43ecb6d10f5dd2e8001740a27ab3081bf896e2c33f1b081477e7caadaacd2e2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1825 | 1825 | | |
1826 | 1826 | | |
1827 | 1827 | | |
1828 | | - | |
| 1828 | + | |
1829 | 1829 | | |
1830 | 1830 | | |
1831 | 1831 | | |
| |||
1836 | 1836 | | |
1837 | 1837 | | |
1838 | 1838 | | |
1839 | | - | |
| 1839 | + | |
1840 | 1840 | | |
1841 | 1841 | | |
1842 | 1842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
| 1450 | + | |
1451 | 1451 | | |
1452 | 1452 | | |
1453 | 1453 | | |
| |||
1459 | 1459 | | |
1460 | 1460 | | |
1461 | 1461 | | |
1462 | | - | |
| 1462 | + | |
1463 | 1463 | | |
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | 1467 | | |
1468 | 1468 | | |
1469 | | - | |
| 1469 | + | |
1470 | 1470 | | |
1471 | 1471 | | |
1472 | 1472 | | |
| |||
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
1483 | | - | |
| 1483 | + | |
1484 | 1484 | | |
1485 | 1485 | | |
1486 | 1486 | | |
| |||
0 commit comments