failspot 0.2.0

A testing library that makes it easy(ish) to add intentional errors to a program
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 1 items with examples
  • Size
  • Source code size: 22.83 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • marti4d/failspot
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • marti4d

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.