Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/failspot/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 694 B image not shown  

Quelle  README.md  Sprache: unbekannt

 
Spracherkennung für: .md vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# failspot

[![crates.io](https://img.shields.io/crates/v/failspot?style=for-the-badge&logo=rust)](https://crates.io/crates/failspot)
[![docs.rs](https://img.shields.io/docsrs/failspot?style=for-the-badge&logo=docs.rs&label=docs.rs)](https://docs.rs/failspot)
![license](https://img.shields.io/crates/l/failspot?style=for-the-badge)

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.

[Dauer der Verarbeitung: 0.15 Sekunden, vorverarbeitet 2026-09-29]