|
Hegel 0.11.4
Property-based testing for C++
|
Where a test is defined. More...
#include <hegel.h>
Public Attributes | |
| std::string | name |
| Test name, as it appears in the report header. | |
| std::string | file |
| Source file the test is defined in. | |
| int | line = 0 |
| Line the test is defined on. | |
Where a test is defined.
A failure report names the test and its source line in its header: --- Failure: my_property (tests/example.cpp:42) ---. HEGEL_TEST fills this in from the test's name and position. A property inside a GoogleTest test fills this in from that test's name and the line of the hegel::test() call.