Hegel 0.18.3
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.
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.

The location scopes the example database (the default Settings::database_key) and tells the engine where the test is defined. 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: