Commit ca5d136
committed
Merge rust-bitcoin#4666: Kill new mutants
f056250 Exclude deprecated fn from mutation testing (Jamil Lambert, PhD)
4d31b14 Improve is_too_precise test (Jamil Lambert, PhD)
a2bae3b Add test for impl Display for Script (Jamil Lambert, PhD)
Pull request description:
Weekly mutation testing found new mutants. There are also some untested mutants in match statements that will be included in future mutation testing once rust-bitcoin#4654 goes in.
- Add a regression test for the mutants in the `Display` impl for `Script`.
- Improve the existing test for `is_too_precise` to check all four cases.
- Exclude the two deprecated functions that have untested mutants.
Closes rust-bitcoin#4646
ACKs for top commit:
benalleng:
**tACK** no missed mutants on f056250 I ran with rust-bitcoin@63b61e9 rebased in to make sure the match arm and match guard mutations were included
tcharding:
ACK f056250
Tree-SHA512: d109e30be91da2ab243a152b9ef17147337328282ac418fa9d2eebd17c2e2d9b6f7ee095d91ccf58e287c9620cb71a090b0d929c9bf35011feb26e6f28457dd3File tree
3 files changed
+25
-2
lines changed- .cargo
- primitives/src/script
- units/src/amount
3 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
805 | 820 | | |
806 | 821 | | |
807 | 822 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
0 commit comments