#include <FailureInducer.h>

Classes | |
| struct | failure_inducer_state |
| Internal structure to store a single failure setting. More... | |
Public Member Functions | |
| void | parse_option (String spec) |
| Parses a spec string (as explained above) and stores it in an internal structure. More... | |
| void | maybe_fail (const String &label) |
| Tests and executes the induced failures. More... | |
| bool | failure_signalled (const String &label) |
| Returns true if a failure was signalled. More... | |
| void | clear () |
| Clears the failure inducer. More... | |
Static Public Member Functions | |
| static bool | enabled () |
| Returns true if the FailureInducer is enabled (= if an instance was allocated) More... | |
Static Public Attributes | |
| static FailureInducer * | instance = 0 |
| This is a singleton class. More... | |
Private Types | |
| typedef std::unordered_map < String, failure_inducer_state * > | StateMap |
Private Member Functions | |
| void | parse_option_single (String option) |
| Helper function to parse a single option. More... | |
Private Attributes | |
| std::mutex | m_mutex |
| A mutex to serialize access. More... | |
| StateMap | m_state_map |
| A list of all failure settings. More... | |
Definition at line 65 of file FailureInducer.h.
1.8.8