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

a class handling test suites More...

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

Public Types

using TestPtr = std::shared_ptr<Test>
 a simple alias

Public Member Functions

 TestSuite ()
 Default constructor.
 TestSuite (const std::string &)
 Constructor.
 TestSuite (TestSuite &&)=delete
 move constructor (disabled)
 TestSuite (const TestSuite &)=delete
 copy constructor (disabled)
TestSuite & operator= (TestSuite &&)=delete
 move assignement operator (disabled)
TestSuite & operator= (const TestSuite &)=delete
 assignement operator (disabled)
 TestSuite (const char *const)
 constructor
std::string name () const
void add (const TestPtr &)
 add a new test
TestResult execute (TestOutput &)
 execute the test suite
TestResult execute ()
 execute the test suite
 ~TestSuite ()
 destructor

Detailed Description

a class handling test suites

Constructor & Destructor Documentation

◆ TestSuite() [1/2]

tfel::tests::TestSuite::TestSuite ( const std::string & )
explicit

Constructor.

Parameters
[in]nname of the function

◆ TestSuite() [2/2]

tfel::tests::TestSuite::TestSuite ( const char * const )
explicit

constructor

Parameters
[in]nname of the function

Member Function Documentation

◆ add()

void tfel::tests::TestSuite::add ( const TestPtr & )

add a new test

Parameters
ttest to be added

◆ execute() [1/2]

TestResult tfel::tests::TestSuite::execute ( )
nodiscard

execute the test suite

Returns
tests global results

◆ execute() [2/2]

TestResult tfel::tests::TestSuite::execute ( TestOutput & )
nodiscard

execute the test suite

Parameters
otest output
Returns
tests global results

◆ name()

std::string tfel::tests::TestSuite::name ( ) const
nodiscard
Returns
the name of the test

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