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
virtual void Test__ExampleFunction ( ResultsType &  result)
inlinevirtual

Test for ElmerModuleDriver::ExampleFunction.

Parameters
resultElmerModuleDriver::TestResults object to store test results.

This function implements a simple test of the function ElmerModuleDriver::ExampleFunction - which is designed to simply return a copy of the input string.


List of Serial tests


Definition at line 154 of file ElmerModuleDriverTest.H.

References ElmerModuleDriver::ExampleFunction(), and TestingObject< ResultsType >::ExampleTestFixture.

Referenced by TestingObject< ResultsType >::Process(), and TestingObject< ResultsType >::RunTest().

154  {
155  // This is an actual test of the function called
156  // ExampleFunction. The name Test__XXXXX will
157  // eventually help automated utilities with
158  // running tests by name.
159  std::string ExampleResult(ExampleFunction(ExampleTestFixture));
160  result.UpdateResult("ExampleFunction:Works",
161  ExampleResult == ExampleTestFixture);
162  result.UpdateResult("ExampleFunction:Fails",
163  ExampleResult != ExampleTestFixture);
164  }
std::string ExampleFunction(const std::string &instring)
Example function for ElmerModuleDriver (this is a brief description).
std::string ExampleTestFixture
A sample string test fixture.

Here is the call graph for this function:

Here is the caller graph for this function: