libept
Public Member Functions | List of all members
ept::tests::LocationInfo Struct Reference

Add information to the test backtrace for the tests run in the current scope. More...

#include <tests.h>

Inheritance diagram for ept::tests::LocationInfo:

Public Member Functions

 LocationInfo ()
 
std::ostream & operator() ()
 Clear the current information and return the output stream to which new information can be sent. More...
 

Detailed Description

Add information to the test backtrace for the tests run in the current scope.

Example usage:

test_function(...)
{
for (unsigned i = 0; i < 10; ++i)
{
info() << "Iteration #" << i;
...
}
}

Constructor & Destructor Documentation

◆ LocationInfo()

ept::tests::LocationInfo::LocationInfo ( )
inline

Member Function Documentation

◆ operator()()

std::ostream & ept::tests::LocationInfo::operator() ( )

Clear the current information and return the output stream to which new information can be sent.


The documentation for this struct was generated from the following files:
EPT_TEST_INFO
#define EPT_TEST_INFO(name)
Use this to declare a local variable with the given name that will be picked up by tests as extra loc...
Definition: tests.h:135