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.h>
Public Member Functions | |
Life Cycle | |
TestCase ()=delete | |
TestCase cannot be created without a name. More... | |
TestCase (TestCase const &rOther)=delete | |
The TestCase cannot be copied to avoid duplications. More... | |
TestCase (std::string const &Name) | |
The constructor to be called. More... | |
virtual | ~TestCase () |
Destructor. More... | |
Operators | |
TestCase & | operator= (TestCase const &rOther)=delete |
Preventing the assignment of the tests. More... | |
Access | |
const std::string & | Name () const |
const TestCaseResult & | GetResult () const |
void | SetResult (TestCaseResult const &TheResult) |
void | SetResultOutput (std::string const &TheResultOutput) |
Inquiry | |
virtual bool | IsEnabled () const |
virtual bool | IsDisabled () const |
virtual bool | IsSelected () const |
virtual bool | IsDistributedTest () 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... | |
Operations | |
virtual void | Reset () |
virtual void | ResetResult () |
virtual void | Setup () |
virtual void | Run () |
virtual void | Profile () |
virtual void | TearDown () |
virtual void | Enable () |
virtual void | Disable () |
virtual void | Select () |
virtual void | UnSelect () |
The test case base class.
Defines the interface for all the test cases and also fixtures
|
delete |
TestCase cannot be created without a name.
|
delete |
The TestCase cannot be copied to avoid duplications.
Kratos::Testing::TestCase::TestCase | ( | std::string const & | Name | ) |
The constructor to be called.
|
virtual |
Destructor.
|
virtual |
Reimplemented in Kratos::Testing::TestSuite.
|
virtual |
Reimplemented in Kratos::Testing::TestSuite.
const TestCaseResult & Kratos::Testing::TestCase::GetResult | ( | ) | const |
|
virtual |
Turn back information as a string.
Reimplemented in Kratos::Testing::TestSuite, and Kratos::Testing::DistributedTestCase.
|
virtual |
Reimplemented in Kratos::Testing::DistributedTestCase.
|
virtual |
Reimplemented in Kratos::Testing::DistributedTestCase.
|
virtual |
Reimplemented in Kratos::Testing::DistributedTestCase.
|
virtual |
const std::string & Kratos::Testing::TestCase::Name | ( | ) | const |
Preventing the assignment of the tests.
|
virtual |
Print object's data.
Reimplemented in Kratos::Testing::TestSuite.
|
virtual |
Print information about this object.
Reimplemented in Kratos::Testing::TestSuite.
|
virtual |
Reimplemented in Kratos::Testing::TestSuite, and Kratos::Testing::DistributedTestCase.
|
virtual |
Reimplemented in Kratos::Testing::TestSuite.
|
virtual |
Reimplemented in Kratos::Testing::TestSuite.
|
virtual |
Reimplemented in Kratos::Testing::TestSuite, and Kratos::Testing::DistributedTestCase.
|
virtual |
Reimplemented in Kratos::Testing::TestSuite.
void Kratos::Testing::TestCase::SetResult | ( | TestCaseResult const & | TheResult | ) |
void Kratos::Testing::TestCase::SetResultOutput | ( | std::string const & | TheResultOutput | ) |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in Kratos::Testing::TestSuite.