Encapsulating class for collections of test results. More...
#include <Testing.H>
Public Member Functions | |
template<typename ValueType > | |
void | AddResult (const std::string &name, const ValueType &result) |
Add a named result to the test results. More... | |
template<typename ValueType > | |
void | UpdateResult (const std::string &name, const ValueType &result) |
Updates an existing test result. More... | |
![]() | |
Parameters () | |
Parameters (const Parameters &inParams) | |
std::string | GetValue (const std::string &key) const |
std::vector< std::string > | GetValueVector (const std::string &key) const |
util::ParamType * | ParamPtr (const std::string &key) |
bool | GetFlagValue (const std::string &key) const |
template<typename T > | |
T | GetValue (const std::string &key) const |
template<typename T > | |
std::vector< T > | GetValueVector (const std::string &key) const |
virtual void | SetParameter (const std::string &key, const std::string &value) |
template<typename T > | |
void | SetParameter (const std::string &key, const T &value) |
virtual int | SetValue (const std::string &key, const std::string &value) |
template<typename T > | |
int | SetValue (const std::string &key, const T &value) |
int | ResetKey (const std::string &origKey, const std::string &newKey) |
virtual std::istream & | ReadFromStream (std::istream &Is) |
virtual std::ostream & | WriteToStream (std::ostream &Os) const |
std::string | Param (const std::string &Key) const |
bool | IsSet (const std::string &Key) const |
virtual | ~Parameters () |
Additional Inherited Members | |
![]() | |
typedef util::ParamType | ParamType |
|
inline |
Add a named result to the test results.
name | Constant std::string reference to the test name. |
result | Constant reference to a <ValueType> value. |
This method puts a named test result into the collection of results. The "value" is converted to a string. In general, a 0 is a false or negative result while a 1 is true or a positive result.
Definition at line 34 of file Testing.H.
References KeyValuePairObj< K, V >::Key(), and KeyValuePairObj< K, V >::Value().
|
inline |
Updates an existing test result.
name | Constant reference to a std::string containing the test name. |
result | Constant reference to the <ValueType> data containing the test result. |
This method is very much like AddResult except this one only replaces the value of an existing test. If the named test is not found in the results already, it is automatically added.
Definition at line 55 of file Testing.H.
Referenced by testmanager::Test__GetNextContent(), TestApplyOperatorAppl(), TestApplyOperatorBlobs(), TestComputeRecipEpsMu(), TestConvertFields(), TestCurlOperator(), TestDirichletBC(), TestEOS_ComputeBuffers(), TestEulerKernels(), TestEulerRHS(), TestEulerRHS2(), TestGrid_CartesianMetric(), TestGrid_CurvilinearMetric(), TestGrid_CurvilinearVGWavy(), TestGrid_PBS_IntegratedHalo(), TestGrid_RectilinearMetric(), TestGrid_SubRegion(), TestHaloBasic(), TestHaloParallel(), TestHaloPeriodic(), TestHaloThreaded(), TestHDF5GridIO(), TestHDF5HyperSlab(), TestHDF5LegacyFileInfo(), TestHDF5PBSGridIO(), TestHDF5Read2DBlockStructuredGrid(), TestHoleDetection(), TestICE(), TestIntegrated_PFCurvilinear2DX(), TestIntegrated_PFCurvilinear2DY(), TestIntegrated_PFCurvilinear3DZ(), TestIntegrated_PFRectilinear2DX(), TestIntegrated_PFRectilinear2DY(), TestIntegrated_PFRectilinear3DZ(), TestIntegrated_Poiseuille2DX(), TestIntegrated_Poiseuille2DY(), TestIntegrated_Poiseuille3DZ(), TestIntegrated_Scalar_Advection3DZ(), TestIntegrated_ViscousShock2DX(), TestIntegrated_ViscousShock2DY(), TestIntegrated_ViscousShock3DZ(), TestIntegrated_VSCurvilinear2DX(), TestIntegrated_VSCurvilinear2DY(), TestIntegrated_VSCurvilinear3DZ(), TestIntegrated_VSRectilinear2DX(), TestIntegrated_VSRectilinear2DY(), TestIntegrated_VSRectilinear3DZ(), TestIntervalBasic(), TestMaxwellRHS(), TestMaxwellRHS_Bfield(), TestMaxwellRHS_Dfield(), TestMaxwellRHSTimeIntegrate(), TestOperators(), TestOperatorSBP12(), TestOperatorSBP24(), TestOperatorSBP36(), TestOverkit_Config(), TestPCPPHDF5Read(), TestPCPPHDF5Write(), TestPlasCom2_AcousticPulseFarfield2D(), TestPlasCom2_AcousticPulseFarfield3D(), TestPlasCom2_AcousticPulsePeriodic2D(), TestPlasCom2_AcousticPulsePeriodic3D(), TestPlasCom2_AcousticPulseSlipwall2D(), TestPlasCom2_AcousticPulseSlipwall3D(), TestPlasCom2_AcousticPulseSponge2D(), TestPlasCom2_AcousticPulseSponge3D(), TestPlasCom2_APCurvilinearFarfield2D(), TestPlasCom2_APCurvilinearFarfield3D(), TestPlasCom2_APCurvilinearPeriodic2D(), TestPlasCom2_APCurvilinearPeriodic3D(), TestPlasCom2_APCurvilinearSlipwall2D(), TestPlasCom2_APCurvilinearSlipwall3D(), TestPlasCom2_APCurvilinearSponge2D(), TestPlasCom2_APCurvilinearSponge3D(), TestPlasCom2_APRectilinearFarfield2D(), TestPlasCom2_APRectilinearFarfield3D(), TestPlasCom2_APRectilinearPeriodic2D(), TestPlasCom2_APRectilinearPeriodic3D(), TestPlasCom2_APRectilinearSlipwall2D(), TestPlasCom2_APRectilinearSlipwall3D(), TestPlasCom2_APRectilinearSponge2D(), TestPlasCom2_APRectilinearSponge3D(), TestPlasCom2_PFCurvilinear2DX_Regression(), TestPlasCom2_PFCurvilinear2DY_Regression(), TestPlasCom2_PFCurvilinear3DZ_Regression(), TestPlasCom2_PFRectilinear2DX_Regression(), TestPlasCom2_PFRectilinear2DY_Regression(), TestPlasCom2_PFRectilinear3DZ_Regression(), TestPlasCom2_Poiseuille2DX_Regression(), TestPlasCom2_Poiseuille2DY_Regression(), TestPlasCom2_Poiseuille3DZ_Regression(), TestPlasCom2_Restart(), TestPlasCom2_Scalar_Advection2DX(), TestPlasCom2_Scalar_Advection2DY(), TestPlasCom2_Scalar_AdvectionDiffusion2DX(), TestPlasCom2_Scalar_AdvectionDiffusion2DY(), TestPlasCom2_ViscousShock2DX_Regression(), TestPlasCom2_ViscousShock2DY_Regression(), TestPlasCom2_ViscousShock3DZ_Regression(), TestPlasCom2_VSCurvilinear2DX_Regression(), TestPlasCom2_VSCurvilinear2DY_Regression(), TestPlasCom2_VSCurvilinear3DZ_Regression(), TestPlasCom2_VSRectilinear2DX_Regression(), TestPlasCom2_VSRectilinear2DY_Regression(), TestPlasCom2_VSRectilinear3DZ_Regression(), TestPlasCom2Input(), TestPlasCom2Output(), TestProbe(), TestRK4Advancer(), TestRK4Advancer2(), TestSBPInitialize(), TestStateBasic(), TestStateHandles(), TestStateOperations(), TestVarious(), TestVelocityGradient(), TestVelocityGradientPeriodic(), TestViscidKernels(), TestViscidKernelsCurvilinear(), TestViscidKernelsMetrics(), TestViscidRHS(), TestWENO_ApplyWENO(), TestWENO_Convergence(), TestWENO_EntropyFix(), TestWENO_Project(), TestWENO_ReconstPointVal(), TestWENO_ReconstPointValSten(), TestWENO_RHS(), TestWENO_SmoothInd(), and TestWENO_Stencils().