Hegel 0.11.4
Property-based testing for C++
Loading...
Searching...
No Matches
hegel::TestLocation Struct Reference

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.

Detailed Description

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.


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