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 ElmerFoamFSI::ExampleFunction.

Parameters
resultElmerFoamFSI::TestResults object to store test results.

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

Definition at line 170 of file ElmerFoamFSITest.H.

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

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

170  {
171  // This is an actual test of the function called
172  // ExampleFunction. The name Test__XXXXX will
173  // eventually help automated utilities with
174  // running tests by name.
175  std::string ExampleResult(ExampleFunction(ExampleTestFixture));
176  result.UpdateResult("ExampleFunction:Works",
177  ExampleResult == ExampleTestFixture);
178  result.UpdateResult("ExampleFunction:Fails",
179  ExampleResult != ExampleTestFixture);
180  }
std::string ExampleFunction(const std::string &instring)
Example function for ElmerFoamFSI (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: