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.
List of all members
Kratos::Testing::TestCase Class Referenceabstract

The test case base class. More...

#include <test_case.h>

Inheritance diagram for Kratos::Testing::TestCase:
Collaboration diagram for Kratos::Testing::TestCase:

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
TestCaseoperator= (TestCase const &rOther)=delete
 Preventing the assignment of the tests. More...
 
Access
const std::string & Name () const
 
const TestCaseResultGetResult () 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 ()
 

Detailed Description

The test case base class.

Defines the interface for all the test cases and also fixtures

Constructor & Destructor Documentation

◆ TestCase() [1/3]

Kratos::Testing::TestCase::TestCase ( )
delete

TestCase cannot be created without a name.

◆ TestCase() [2/3]

Kratos::Testing::TestCase::TestCase ( TestCase const &  rOther)
delete

The TestCase cannot be copied to avoid duplications.

◆ TestCase() [3/3]

Kratos::Testing::TestCase::TestCase ( std::string const &  Name)

The constructor to be called.

◆ ~TestCase()

Kratos::Testing::TestCase::~TestCase ( )
virtual

Destructor.

Member Function Documentation

◆ Disable()

void Kratos::Testing::TestCase::Disable ( )
virtual

Reimplemented in Kratos::Testing::TestSuite.

◆ Enable()

void Kratos::Testing::TestCase::Enable ( )
virtual

Reimplemented in Kratos::Testing::TestSuite.

◆ GetResult()

const TestCaseResult & Kratos::Testing::TestCase::GetResult ( ) const

◆ Info()

std::string Kratos::Testing::TestCase::Info ( ) const
virtual

Turn back information as a string.

Reimplemented in Kratos::Testing::TestSuite, and Kratos::Testing::DistributedTestCase.

◆ IsDisabled()

bool Kratos::Testing::TestCase::IsDisabled ( ) const
virtual

◆ IsDistributedTest()

bool Kratos::Testing::TestCase::IsDistributedTest ( ) const
virtual

◆ IsEnabled()

bool Kratos::Testing::TestCase::IsEnabled ( ) const
virtual

◆ IsSelected()

bool Kratos::Testing::TestCase::IsSelected ( ) const
virtual

◆ Name()

const std::string & Kratos::Testing::TestCase::Name ( ) const

◆ operator=()

TestCase& Kratos::Testing::TestCase::operator= ( TestCase const &  rOther)
delete

Preventing the assignment of the tests.

◆ PrintData()

void Kratos::Testing::TestCase::PrintData ( std::ostream &  rOStream) const
virtual

Print object's data.

Reimplemented in Kratos::Testing::TestSuite.

◆ PrintInfo()

void Kratos::Testing::TestCase::PrintInfo ( std::ostream &  rOStream) const
virtual

Print information about this object.

Reimplemented in Kratos::Testing::TestSuite.

◆ Profile()

void Kratos::Testing::TestCase::Profile ( )
virtual

◆ Reset()

void Kratos::Testing::TestCase::Reset ( )
virtual

Reimplemented in Kratos::Testing::TestSuite.

◆ ResetResult()

void Kratos::Testing::TestCase::ResetResult ( )
virtual

Reimplemented in Kratos::Testing::TestSuite.

◆ Run()

void Kratos::Testing::TestCase::Run ( )
virtual

◆ Select()

void Kratos::Testing::TestCase::Select ( )
virtual

Reimplemented in Kratos::Testing::TestSuite.

◆ SetResult()

void Kratos::Testing::TestCase::SetResult ( TestCaseResult const &  TheResult)

◆ SetResultOutput()

void Kratos::Testing::TestCase::SetResultOutput ( std::string const &  TheResultOutput)

◆ Setup()

void Kratos::Testing::TestCase::Setup ( )
virtual

◆ TearDown()

void Kratos::Testing::TestCase::TearDown ( )
virtual

◆ UnSelect()

void Kratos::Testing::TestCase::UnSelect ( )
virtual

Reimplemented in Kratos::Testing::TestSuite.


The documentation for this class was generated from the following files: