C++ mpi module for stochmagnet_main Package
Public Member Functions | List of all members
MPI_Test Class Referenceabstract

This class is a Test class for EMicroM package which uses the module tests. More...

#include <MPI_Test.h>

Inheritance diagram for MPI_Test:
Inheritance graph
[legend]
Collaboration diagram for MPI_Test:
Collaboration graph
[legend]

Public Member Functions

 MPI_Test (void)
 create the class
 
virtual ~MPI_Test (void)
 destroy the class
 
virtual const std::vector< tString > & getPrimaryTests () const =0
 get the primary tests classes
 
virtual const std::vector< tString > & getElementaryTests () const =0
 get the elementary tests classes
 
virtual const std::vector< tString > & getCaseTests () const =0
 get the case tests classes
 
virtual tBoolean execute (const CORE_Run &runner, const CORE_OptionsList &options) const override
 execute the tests More...
 
virtual tBoolean primaryTests (const CORE_Run &runner, const CORE_OptionsList &options) const override
 execute the primary tests More...
 
virtual tBoolean elementaryTests (const CORE_Run &runner, const CORE_OptionsList &options) const override
 execute the elementary tests More...
 
virtual tBoolean caseTests (const CORE_Run &runner, const CORE_OptionsList &options) const override
 execute the case tests More...
 
- Public Member Functions inherited from CORE_Test
 CORE_Test (void)
 create
 
virtual ~CORE_Test (void)
 destroy
 
virtual tMemSize getMemorySize () const override
 return the memory size of the class More...
 
void setName (const tString &name)
 set the test name More...
 
const tString & getName () const
 get the test name More...
 
- Public Member Functions inherited from CORE_Object
template<class T >
std::shared_ptr< T > getSharedPointer ()
 return the shared pointer for this More...
 
template<class T >
std::shared_ptr< const T > getConstSharedPointer () const
 return a const shared pointer for this More...
 
virtual tMemSize getContentsMemorySize () const
 return nthe memory size of the included associations More...
 
template<class T >
tBoolean isInstanceOf () const
 test if the clas T is an instance of this class More...
 
tString getClassName () const
 return the name of the class More...
 
tString getPointerString () const
 retrun the pointer of the class as a string More...
 
tString getIdentityString () const
 retrun the string identification of the class More...
 
virtual tString toString () const
 return the string representation of the object node More...
 

Additional Inherited Members

- Static Public Member Functions inherited from CORE_Test
static CORE_UniquePointer< CORE_TestNew ()
 create a test class More...
 
- Static Public Member Functions inherited from CORE_Object
static tBoolean EnableMemoryStack (const tBoolean &isMemoryChecked)
 enable the memory stack More...
 
static void EnableMemoryStack ()
 enable the memory stack
 
static void DisableMemoryStack ()
 disable the memory stack
 
static tBoolean IsMemoryStackEnabled ()
 return trur if the memory stack is enabled
 
static tString MemoryStackToString ()
 get the memory stack in string More...
 
static tIndex GetRegisteredClassesNumber ()
 get the memory stack in string More...
 
- Protected Member Functions inherited from CORE_Test
virtual void getSearchingPaths (std::vector< tString > &vpaths) const
 get the test path locations More...
 
tString getSearchingPathsToString () const
 get the test path locations into string More...
 
void getSearchingPaths (const tString &packageName, const tUSInt &nLevels, const std::vector< tString > &localPaths, std::vector< tString > &vpaths) const
 get the test path locations More...
 
tString searchPath (const tString &f) const
 retun the path where the file f is withing the searching paths list More...
 
tBoolean testCase (const CORE_Run &runner, const tString &name) const
 execute the test case More...
 
virtual tBoolean compareResults (const CORE_OptionsList &options, const tString &resultFile, const tString &referenceFile, const tReal &eps) const
 make the difference between the two files More...
 
tBoolean testArray (const CORE_Run &runner, const CORE_OptionsList &options) const
 test the numeric array More...
 
template<typename T , class I >
tBoolean uniformRandomTest (CORE_Array< T, I > &A, CORE_Array< T, I > &B) const
 randomizer test More...
 
tBoolean testField (const CORE_Run &runner, const CORE_OptionsList &options) const
 test the numeric field More...
 
template<typename T , class I >
requires functions_type::isArithmeticType< T > tBoolean testArray (CORE_Array< T, I > &A) const
 test array class More...
 
template<typename T , typename K , K D, class S , class I >
tBoolean testField (CORE_Field< T, K, D, S, I > &A) const
 test field class More...
 
- Protected Member Functions inherited from CORE_Object
 CORE_Object ()
 build an instance of the object
 
virtual ~CORE_Object ()
 destroy the instance of object std

 
- Static Protected Member Functions inherited from CORE_Test
template<typename T , typename Q >
requires functions_type::isRealType< T > static functions_type::isRealType< Q > tBoolean Equals (const T &a, const Q &b)
 retrun true if the two values are equals More...
 
template<typename T , typename Q >
requires functions_type::isIntegerType< T > &&static functions_type::isIntegerType< Q > tBoolean Equals (const T &a, const Q &b)
 retrun true if the two values are equals More...
 

Detailed Description

This class is a Test class for EMicroM package which uses the module tests.

Author
Stephane Despreaux
Version
2.0

Member Function Documentation

◆ caseTests()

tBoolean MPI_Test::caseTests ( const CORE_Run runner,
const CORE_OptionsList options 
) const
overridevirtual

execute the case tests

Parameters
[in]runnerrunner of the program
[in]optionsoptions of the program
Returns
false if the tests have failed

Reimplemented from CORE_Test.

◆ elementaryTests()

tBoolean MPI_Test::elementaryTests ( const CORE_Run runner,
const CORE_OptionsList options 
) const
overridevirtual

execute the elementary tests

Parameters
[in]runnerrunner of the program
[in]optionsoptions of the program
Returns
false if the tests have failed

Reimplemented from CORE_Test.

◆ execute()

tBoolean MPI_Test::execute ( const CORE_Run runner,
const CORE_OptionsList options 
) const
overridevirtual

execute the tests

Parameters
[in]runnerthe runner of the tests
[in]optionsthe options of the program

Reimplemented from CORE_Test.

◆ primaryTests()

tBoolean MPI_Test::primaryTests ( const CORE_Run runner,
const CORE_OptionsList options 
) const
overridevirtual

execute the primary tests

Parameters
[in]runnerrunner of the program
[in]optionsoptions of the program
Returns
false if the tests have failed

Reimplemented from CORE_Test.


The documentation for this class was generated from the following files: