tfel
Loading...
Searching...
No Matches
tfel::tests::StdStreamTestOutput Struct Referencefinal

Instances of this class redirects the output of a TestResult to a standard stream. More...

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

Inheritance diagram for tfel::tests::StdStreamTestOutput:
tfel::tests::TestOutput

Public Member Functions

 StdStreamTestOutput (const std::string &)
 constructor
 StdStreamTestOutput (std::ostream &, const bool=true)
 constructor
 StdStreamTestOutput (const std::shared_ptr< std::ostream > &, const bool=false)
 Constructor.
 StdStreamTestOutput (const StdStreamTestOutput &)=delete
StdStreamTestOutput & operator= (const StdStreamTestOutput &)=delete
void beginTestSuite (const std::string &) override
 begin a new test suite
void addTest (const std::string &, const std::string &, const TestResult &) override
 add a new test
void endTestSuite (const TestResult &) override
 end a test suite
 ~StdStreamTestOutput () override
 Destructor.
Public Member Functions inherited from tfel::tests::TestOutput
virtual ~TestOutput ()
 \bried destructor

Detailed Description

Instances of this class redirects the output of a TestResult to a standard stream.

Constructor & Destructor Documentation

◆ StdStreamTestOutput() [1/3]

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

constructor

Parameters
[in]ooutput file name

◆ StdStreamTestOutput() [2/3]

tfel::tests::StdStreamTestOutput::StdStreamTestOutput ( std::ostream & ,
const bool = true )
explicit

constructor

Parameters
[in]ooutput stream
[in]bcolor output

◆ StdStreamTestOutput() [3/3]

tfel::tests::StdStreamTestOutput::StdStreamTestOutput ( const std::shared_ptr< std::ostream > & ,
const bool = false )
explicit

Constructor.

Parameters
[in]ooutput stream
[in]bcolor output

Member Function Documentation

◆ addTest()

void tfel::tests::StdStreamTestOutput::addTest ( const std::string & ,
const std::string & ,
const TestResult &  )
overridevirtual

add a new test

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

Implements tfel::tests::TestOutput.

◆ beginTestSuite()

void tfel::tests::StdStreamTestOutput::beginTestSuite ( const std::string & )
overridevirtual

begin a new test suite

Parameters
[in]nname of the test suite

Implements tfel::tests::TestOutput.

◆ endTestSuite()

void tfel::tests::StdStreamTestOutput::endTestSuite ( const TestResult & )
overridevirtual

end a test suite

Parameters
[in]r(global) result of the test suite

Implements tfel::tests::TestOutput.


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