tfel
Loading...
Searching...
No Matches
tfel::tests::TestCase Struct Reference

class used to describe an single test More...

#include </home/runner/work/tfel/tfel/include/TFEL/Tests/TestCase.hxx>

Inheritance diagram for tfel::tests::TestCase:
tfel::tests::Test ExecutionPolicyTest GenericParallelMaterialPropertyTest

Public Member Functions

 TestCase (const TestCase &)=delete
 copy constructor (disabled)
 TestCase (TestCase &&)=delete
 move constructor (disabled)
TestCase & operator= (const TestCase &)=delete
 assignement operator (disabled)
TestCase & operator= (TestCase &&)=delete
 move assignement operator (disabled)
std::string name () const override
std::string classname () const override
Public Member Functions inherited from tfel::tests::Test
virtual TestResult execute ()=0
 execute test
virtual ~Test ()
 destructor

Protected Member Functions

 TestCase (const std::string &)
 constructor
 TestCase (const std::string &, const std::string &)
 constructor
virtual void registerResult (const std::string_view, const bool, const std::string_view=std::string_view{})
 ~TestCase () override
 destructor

Protected Attributes

TestResult result
 result of the test

Detailed Description

class used to describe an single test

Constructor & Destructor Documentation

◆ TestCase() [1/2]

tfel::tests::TestCase::TestCase ( const std::string & )
explicitprotected

constructor

Parameters
[in]nname of the test

◆ TestCase() [2/2]

tfel::tests::TestCase::TestCase ( const std::string & ,
const std::string &  )
protected

constructor

Parameters
[in]ggroup of the test
[in]nname of the test

Member Function Documentation

◆ classname()

std::string tfel::tests::TestCase::classname ( ) const
nodiscardoverridevirtual
Returns
the group of the test

Implements tfel::tests::Test.

◆ name()

std::string tfel::tests::TestCase::name ( ) const
nodiscardoverridevirtual
Returns
the name of the test

Implements tfel::tests::Test.

◆ registerResult()

virtual void tfel::tests::TestCase::registerResult ( const std::string_view ,
const bool ,
const std::string_view = std::string_view{} )
protectedvirtual
Parameters
[in]ndescription of the test
[in]bresult
[in]ereason of the failure if any

The documentation for this struct was generated from the following file: