Hegel 0.18.2
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::FailedHealthCheck Class Reference

A health check failed. More...

#include <errors.h>

Inheritance diagram for hegel::FailedHealthCheck:
hegel::RunError

Public Member Functions

 FailedHealthCheck (const std::string &message, std::optional< HealthCheck > health_check)
std::optional< HealthCheck > health_check () const
Public Member Functions inherited from hegel::RunError
 RunError (const std::string &message)

Detailed Description

A health check failed.

The run was likely to test poorly or slowly, for example because it rejected too many test cases. The message says which check failed and how to suppress it with Settings::suppress_health_check if the behavior is intentional.

Constructor & Destructor Documentation

◆ FailedHealthCheck()

hegel::FailedHealthCheck::FailedHealthCheck ( const std::string & message,
std::optional< HealthCheck > health_check )
inline
Parameters
messageThe engine's diagnostic.
health_checkThe check that failed, if the engine names it.

Member Function Documentation

◆ health_check()

std::optional< HealthCheck > hegel::FailedHealthCheck::health_check ( ) const
inline

The check that failed.

Returns
The check, or std::nullopt if the engine did not name it.

The documentation for this class was generated from the following file: