| Crates.io | failspot |
| lib.rs | failspot |
| version | 0.2.0 |
| created_at | 2024-12-06 18:58:27.601733+00 |
| updated_at | 2024-12-06 19:55:12.443206+00 |
| description | A testing library that makes it easy(ish) to add intentional errors to a program |
| homepage | |
| repository | https://github.com/marti4d/failspot |
| max_upload_size | |
| id | 1474544 |
| size | 22,939 |
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.