KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
The test case base class. More...
#include <test_case_result.h>
Public Member Functions | |
Life Cycle | |
TestCaseResult () | |
TestCaseResult default constructors rest variables to before run. More... | |
TestCaseResult (TestCaseResult const &rOther) | |
Copy constructor. More... | |
virtual | ~TestCaseResult () |
Destructor. More... | |
Operators | |
TestCaseResult & | operator= (TestCaseResult const &rOther) |
Assignment operator. More... | |
Operations | |
virtual void | Reset () |
Reset the results to before run state. More... | |
Access | |
void | SetToSucceed () |
void | SetToFailed () |
void | SetToSkipped () |
void | SetOutput (const std::string &TheOutput) |
const std::string & | GetOutput () const |
void | SetErrorMessage (const std::string &TheMessage) |
const std::string & | GetErrorMessage () const |
void | SetSetupElapsedTime (double ElapsedTime) |
double | GetSetupElapsedTime () const |
void | SetRunElapsedTime (double ElapsedTime) |
double | GetRunElapsedTime () const |
void | SetTearDownElapsedTime (double ElapsedTime) |
double | GetTearDownElapsedTime () const |
void | SetElapsedTime (double ElapsedTime) |
double | GetElapsedTime () const |
Inquiry | |
bool | IsSucceed () const |
bool | IsFailed () const |
bool | IsSkipped () const |
bool | IsRun () const |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
The test case base class.
Defines the interface for all the test cases and also fixtures
Kratos::Testing::TestCaseResult::TestCaseResult | ( | ) |
TestCaseResult default constructors rest variables to before run.
Kratos::Testing::TestCaseResult::TestCaseResult | ( | TestCaseResult const & | rOther | ) |
Copy constructor.
|
virtual |
Destructor.
double Kratos::Testing::TestCaseResult::GetElapsedTime | ( | ) | const |
const std::string & Kratos::Testing::TestCaseResult::GetErrorMessage | ( | ) | const |
const std::string & Kratos::Testing::TestCaseResult::GetOutput | ( | ) | const |
double Kratos::Testing::TestCaseResult::GetRunElapsedTime | ( | ) | const |
double Kratos::Testing::TestCaseResult::GetSetupElapsedTime | ( | ) | const |
double Kratos::Testing::TestCaseResult::GetTearDownElapsedTime | ( | ) | const |
|
virtual |
Turn back information as a string.
bool Kratos::Testing::TestCaseResult::IsFailed | ( | ) | const |
bool Kratos::Testing::TestCaseResult::IsRun | ( | ) | const |
bool Kratos::Testing::TestCaseResult::IsSkipped | ( | ) | const |
bool Kratos::Testing::TestCaseResult::IsSucceed | ( | ) | const |
TestCaseResult & Kratos::Testing::TestCaseResult::operator= | ( | TestCaseResult const & | rOther | ) |
Assignment operator.
|
virtual |
Print object's data.
|
virtual |
Print information about this object.
|
virtual |
Reset the results to before run state.
void Kratos::Testing::TestCaseResult::SetElapsedTime | ( | double | ElapsedTime | ) |
void Kratos::Testing::TestCaseResult::SetErrorMessage | ( | const std::string & | TheMessage | ) |
void Kratos::Testing::TestCaseResult::SetOutput | ( | const std::string & | TheOutput | ) |
void Kratos::Testing::TestCaseResult::SetRunElapsedTime | ( | double | ElapsedTime | ) |
void Kratos::Testing::TestCaseResult::SetSetupElapsedTime | ( | double | ElapsedTime | ) |
void Kratos::Testing::TestCaseResult::SetTearDownElapsedTime | ( | double | ElapsedTime | ) |
void Kratos::Testing::TestCaseResult::SetToFailed | ( | ) |
void Kratos::Testing::TestCaseResult::SetToSkipped | ( | ) |
void Kratos::Testing::TestCaseResult::SetToSucceed | ( | ) |