tfel
Loading...
Searching...
No Matches
tfel::tests::TestFunctionWrapper< f > Struct Template Referencefinal

A simple wrapper around test functions. More...

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

Inheritance diagram for tfel::tests::TestFunctionWrapper< f >:
tfel::tests::Test

Public Member Functions

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

Detailed Description

template<bool(*)() f>
struct tfel::tests::TestFunctionWrapper< f >

A simple wrapper around test functions.

Parameters
f: function to be wrapped

Constructor & Destructor Documentation

◆ TestFunctionWrapper() [1/2]

template<bool(*)() f>
tfel::tests::TestFunctionWrapper< f >::TestFunctionWrapper ( const std::string & g,
const std::string & n )

constructor

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

◆ TestFunctionWrapper() [2/2]

template<bool(*)() f>
tfel::tests::TestFunctionWrapper< f >::TestFunctionWrapper ( const char * const n)

constructor

Parameters
[in]nname of the function

Member Function Documentation

◆ classname()

template<bool(*)() f>
std::string tfel::tests::TestFunctionWrapper< f >::classname ( ) const
nodiscardoverridevirtual
Returns
the name of the test function

Implements tfel::tests::Test.

◆ execute()

template<bool(*)() f>
TestResult tfel::tests::TestFunctionWrapper< f >::execute ( )
nodiscardoverridevirtual

execute test

Returns
the results of the test

Implements tfel::tests::Test.

◆ name()

template<bool(*)() f>
std::string tfel::tests::TestFunctionWrapper< f >::name ( ) const
nodiscardoverridevirtual
Returns
the name of the test function

Implements tfel::tests::Test.


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