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: