#panic #testing

panic-control

Utilities to test code with intentional panics

5 releases

Uses old Rust 2015

0.1.4 Apr 14, 2018
0.1.3 Dec 1, 2017
0.1.2 Nov 29, 2017
0.1.1 Nov 28, 2017
0.1.0 Nov 28, 2017

#194 in Testing

Download history 105/week @ 2021-06-29 52/week @ 2021-07-06 140/week @ 2021-07-13 75/week @ 2021-07-20 132/week @ 2021-07-27 116/week @ 2021-08-03 179/week @ 2021-08-10 108/week @ 2021-08-17 82/week @ 2021-08-24 23/week @ 2021-08-31 169/week @ 2021-09-07 84/week @ 2021-09-14 204/week @ 2021-09-21 140/week @ 2021-09-28 160/week @ 2021-10-05 134/week @ 2021-10-12

289 downloads per month
Used in sarek

Apache-2.0/MIT

37KB
358 lines

Controlled Rust Panics Using Dynamic Type Checking

The panic_control crate provides utilities to test code behaviors in intentionally caused panics, while discriminating between the expected and unexpected panics so as to be able to catch assertion failures and the like.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps