|
Hegel 0.3.5
Property-based testing for C++
|
Main namespace. More...
Namespaces | |
| namespace | generators |
| Hegel generators. | |
Classes | |
| class | Database |
| Configure the Hegel database. More... | |
| struct | Settings |
| Configuration options for hegel::test(). More... | |
| class | TestCase |
| Handle to the currently-executing test case. More... | |
Enumerations | |
| enum class | Verbosity { Quiet , Normal , Verbose , Debug } |
| Verbosity levels. More... | |
| enum class | HealthCheck { FilterTooMuch , TooSlow , TestCasesTooLarge , LargeInitialTestCase } |
| Health checks. More... | |
Functions | |
| void | test (const std::function< void(TestCase &)> &test_fn, const Settings &settings={}) |
| Run a Hegel test. | |
| const char * | verbosity_to_string (Verbosity v) |
| Convert Verbosity enum to command-line string. | |
| std::vector< HealthCheck > | all_health_checks () |
| All health checks, suitable for full suppression. | |
Main namespace.
|
strong |
|
strong |
Verbosity levels.
| Enumerator | |
|---|---|
| Quiet | Minimal output (used by TUI). |
| Normal | Default - standard test output. |
| Verbose | More detailed output. |
| Debug | Maximum verbosity + request/response logging. |
|
inline |
All health checks, suitable for full suppression.
| void hegel::test | ( | const std::function< void(TestCase &)> & | test_fn, |
| const Settings & | settings = {} ) |
Run a Hegel test.
| test_fn | The test function to run repeatedly. Receives a TestCase which it uses to draw values, make assumptions, and record notes. |
| settings | Configuration settings (test count, debug mode, etc.) |
| std::runtime_error | if any test case fails |