Helios++
Helios software for LiDAR simulations
|
#include <BaseTest.h>
Public Member Functions | |
BaseTest (std::string const &name) | |
Base test constructor. More... | |
std::string | getName () |
virtual bool | run ()=0 |
Test behavior. More... | |
void | operator() (std::ostream &out=std::cout, bool color=true) |
Another way to call test function. More... | |
void | test (std::ostream &out=std::cout, bool color=true) |
Perform the test and output its final status. More... | |
Protected Attributes | |
std::string const | name |
The name for the test. | |
BaseTest class.
Can be overridden to implement new tests.
NOTICE in order for a test to be runnable it must override the run method to implement the test behavior.
|
inline |
Base test constructor.
name | Name for the test |
|
inline |
Obtain the test name
|
inline |
Another way to call test function.
|
pure virtual |
Test behavior.
At the end it must report test status.
Only tests implementing a run method will be runnable
Implemented in HeliosTests::LadLutTest, HeliosTests::VoxelParsingTest, HeliosTests::PlatformPhysicsTest, HeliosTests::RandomTest, HeliosTests::ScenePartSplitTest, HeliosTests::SerializationTest, HeliosTests::SurveyCopyTest, HeliosTests::NoiseTest, HeliosTests::RayIntersectionTest, and HeliosTests::PlaneFitterTest.
void HeliosTests::BaseTest::test | ( | std::ostream & | out = std::cout , |
bool | color = true |
||
) |
Perform the test and output its final status.
out | Output stream used to output test final status |