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 ElmerModuleDriver::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 78 of file ElmerModuleDriverTest.H.

#include <ElmerModuleDriverTest.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 void Test__ExampleFunction (ResultsType &result)
 Test for ElmerModuleDriver::ExampleFunction. More...
 
virtual void Test__TrapezoidQuadrature (ResultsType &result)
 Test for ElmerModuleDriver::TrapezoidQuadrature. More...
 
virtual void Test__MidPointQuadrature (ResultsType &result)
 Test for ElmerModuleDriver::MidPointQuadrature. More...
 
int streamdiff (std::istream &stream1, std::istream &stream2, std::stringstream *ss=NULL)
 Function to compare two files. More...
 
virtual int GetInputData (std::string suffix, std::string TestDir)
 Function to copy input data from source testing directory for use in unit tests. More...
 
virtual void Test__ElmerUnitTests (ResultsType &result)
 
virtual void Test__ElasticBeam3D_LoadFunction (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: