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::TestCaseResult Class Reference

The test case base class. More...

#include <test_case_result.h>

Collaboration diagram for Kratos::Testing::TestCaseResult:

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
TestCaseResultoperator= (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...
 

Detailed Description

The test case base class.

Defines the interface for all the test cases and also fixtures

Constructor & Destructor Documentation

◆ TestCaseResult() [1/2]

Kratos::Testing::TestCaseResult::TestCaseResult ( )

TestCaseResult default constructors rest variables to before run.

◆ TestCaseResult() [2/2]

Kratos::Testing::TestCaseResult::TestCaseResult ( TestCaseResult const &  rOther)

Copy constructor.

◆ ~TestCaseResult()

Kratos::Testing::TestCaseResult::~TestCaseResult ( )
virtual

Destructor.

Member Function Documentation

◆ GetElapsedTime()

double Kratos::Testing::TestCaseResult::GetElapsedTime ( ) const

◆ GetErrorMessage()

const std::string & Kratos::Testing::TestCaseResult::GetErrorMessage ( ) const

◆ GetOutput()

const std::string & Kratos::Testing::TestCaseResult::GetOutput ( ) const

◆ GetRunElapsedTime()

double Kratos::Testing::TestCaseResult::GetRunElapsedTime ( ) const

◆ GetSetupElapsedTime()

double Kratos::Testing::TestCaseResult::GetSetupElapsedTime ( ) const

◆ GetTearDownElapsedTime()

double Kratos::Testing::TestCaseResult::GetTearDownElapsedTime ( ) const

◆ Info()

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

Turn back information as a string.

◆ IsFailed()

bool Kratos::Testing::TestCaseResult::IsFailed ( ) const

◆ IsRun()

bool Kratos::Testing::TestCaseResult::IsRun ( ) const

◆ IsSkipped()

bool Kratos::Testing::TestCaseResult::IsSkipped ( ) const

◆ IsSucceed()

bool Kratos::Testing::TestCaseResult::IsSucceed ( ) const

◆ operator=()

TestCaseResult & Kratos::Testing::TestCaseResult::operator= ( TestCaseResult const &  rOther)

Assignment operator.

◆ PrintData()

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

Print object's data.

◆ PrintInfo()

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

Print information about this object.

◆ Reset()

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

Reset the results to before run state.

◆ SetElapsedTime()

void Kratos::Testing::TestCaseResult::SetElapsedTime ( double  ElapsedTime)

◆ SetErrorMessage()

void Kratos::Testing::TestCaseResult::SetErrorMessage ( const std::string &  TheMessage)

◆ SetOutput()

void Kratos::Testing::TestCaseResult::SetOutput ( const std::string &  TheOutput)

◆ SetRunElapsedTime()

void Kratos::Testing::TestCaseResult::SetRunElapsedTime ( double  ElapsedTime)

◆ SetSetupElapsedTime()

void Kratos::Testing::TestCaseResult::SetSetupElapsedTime ( double  ElapsedTime)

◆ SetTearDownElapsedTime()

void Kratos::Testing::TestCaseResult::SetTearDownElapsedTime ( double  ElapsedTime)

◆ SetToFailed()

void Kratos::Testing::TestCaseResult::SetToFailed ( )

◆ SetToSkipped()

void Kratos::Testing::TestCaseResult::SetToSkipped ( )

◆ SetToSucceed()

void Kratos::Testing::TestCaseResult::SetToSucceed ( )

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