ElmerFoamFSI  2.0
ElmerFoamFSI is fluid-solid interaction simulation application built up from OpenFOAM CFD and Elmer CSM coupled through the IMPACT multiphysics software integration infrastructure.
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros Groups Pages
TestingObject< ResultsType > Class Template Reference

Project-specific testing object. More...

Detailed Description

template<typename ResultsType>
class OpenFoamModuleDriver::TestingObject< ResultsType >

Project-specific testing object.

The project-specific testing object encapsulates all tests for the project. This is the interface to all testing available for the given project. It implements the interface given by IRAD::Util::TestingObject.

Every project should define a "TestingObject" which implements (or interfaces) all of the tests for the project. If necessary (e.g. for parallel tests through batch systems), this is the object responsible for spawning off children processes to conduct parallel tests and for gathering the results of those tests.

Definition at line 76 of file OpenFoamModuleDriverTest.H.

#include <OpenFoamModuleDriverTest.H>

Public Member Functions

 TestingObject ()
 Default constructor. More...
 
void SetSourceDirPath (std::string input)
 Sets the string value of the testing source directory. More...
 
virtual void Epilogue ()
 Tears down the testing fixtures if needed. More...
 
virtual void Prologue ()
 Sets up the data fixtures for the tests. More...
 
double F1 (double x)
 Simple test function fixture returns $2x$. More...
 
double F2 (double x)
 Simple test function fixture returns $3x^2$. More...
 
virtual int GetInputData (std::string sourceDir, std::string destDir)
 Function to copy input data from source testing directory for use in unit tests. More...
 
virtual void Test__ModuleLoadUnload (ResultsType &result)
 
virtual void Test__LoadUnitTestData (ResultsType &result)
 
virtual void Test__ModuleFunctionInitialize (ResultsType &result)
 
virtual void Test__ModuleSurfaceData (ResultsType &result)
 
virtual void Test__ModuleFunctionStepFluid (ResultsType &result)
 
virtual void Test__ModuleMeshRegistration (ResultsType &result)
 
virtual void Process (ResultsType &result)
 
virtual void RunTest (const std::string &name, ResultsType &result)
 Runs a test specified by name. More...
 
virtual void ProcessTests (std::list< std::string > &test_names, ResultsType &result)
 Runs a list of tests specified by name. More...
 

Protected Attributes

std::string ExampleTestFixture
 A sample string test fixture. More...
 
std::vector< int > N
 A set of values for testing quadrature methods. More...
 
std::string SourceDirPath
 The string for the testing source directory. More...
 

Private Types

typedef
IRAD::Util::TestingObject
< ResultsType > 
TestingObjectBaseType
 
Inheritance diagram for TestingObject< ResultsType >:
[legend]
Collaboration diagram for TestingObject< ResultsType >:
[legend]

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