trisquel-icecat/icecat/third_party/rust/failspot
2025-10-06 02:35:48 -06:00
..
src icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
tests icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
.cargo-checksum.json icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
Cargo.toml icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
LICENSE icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00
README.md icecat: add release 140.3.1-1gnu1 2025-10-06 02:35:48 -06:00

failspot

crates.io docs.rs license

A testing library that makes it easy(ish) to add intentional errors to a program

When testing error-handling codepaths, it is often useful to programmatically tell parts of the code to fail. This crate provides the failspot!() macro, which can be used to mark a spot in the codepath where an intentional failure can be toggled on and off from testing code.