Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTestJUnitStreamer Class Reference

#include <qtestjunitstreamer_p.h>

+ Collaboration diagram for QTestJUnitStreamer:

Public Member Functions

 QTestJUnitStreamer (QJUnitTestLogger *logger)
 
 ~QTestJUnitStreamer ()
 
void formatStart (const QTestElement *element, QTestCharBuffer *formatted) const
 
void formatEnd (const QTestElement *element, QTestCharBuffer *formatted) const
 
void formatAfterAttributes (const QTestElement *element, QTestCharBuffer *formatted) const
 
void output (QTestElement *element) const
 
void outputElements (const std::vector< QTestElement * > &) const
 
void outputElementAttributes (const QTestElement *element, const std::vector< QTestElementAttribute * > &attributes) const
 
void outputString (const char *msg) const
 

Detailed Description

Definition at line 29 of file qtestjunitstreamer_p.h.

Constructor & Destructor Documentation

◆ QTestJUnitStreamer()

QT_BEGIN_NAMESPACE QTestJUnitStreamer::QTestJUnitStreamer ( QJUnitTestLogger * logger)

Definition at line 15 of file qtestjunitstreamer.cpp.

References QTEST_ASSERT.

◆ ~QTestJUnitStreamer()

QTestJUnitStreamer::~QTestJUnitStreamer ( )
default

Member Function Documentation

◆ formatAfterAttributes()

void QTestJUnitStreamer::formatAfterAttributes ( const QTestElement * element,
QTestCharBuffer * formatted ) const

Definition at line 95 of file qtestjunitstreamer.cpp.

References QTestElement::childElements(), QTestCoreElement< ElementType >::elementType(), QTest::LET_Text, and QTest::qt_asprintf().

Referenced by output().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ formatEnd()

void QTestJUnitStreamer::formatEnd ( const QTestElement * element,
QTestCharBuffer * formatted ) const

Definition at line 57 of file qtestjunitstreamer.cpp.

References QTestElement::childElements(), QTestCoreElement< ElementType >::elementName(), and QTest::qt_asprintf().

Referenced by output().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ formatStart()

void QTestJUnitStreamer::formatStart ( const QTestElement * element,
QTestCharBuffer * formatted ) const

Definition at line 41 of file qtestjunitstreamer.cpp.

References QTestCoreElement< ElementType >::elementName(), QTestCoreElement< ElementType >::elementType(), QTest::LET_Text, and QTest::qt_asprintf().

Referenced by output().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ output()

void QTestJUnitStreamer::output ( QTestElement * element) const

Definition at line 111 of file qtestjunitstreamer.cpp.

References QTestCoreElement< ElementType >::attributes(), QTestElement::childElements(), formatAfterAttributes(), formatEnd(), formatStart(), outputElementAttributes(), outputElements(), outputString(), QTestElement::parentElement(), and QTEST_ASSERT.

Referenced by QJUnitTestLogger::stopLogging().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ outputElementAttributes()

void QTestJUnitStreamer::outputElementAttributes ( const QTestElement * element,
const std::vector< QTestElementAttribute * > & attributes ) const

Definition at line 141 of file qtestjunitstreamer.cpp.

References outputString().

Referenced by output().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ outputElements()

void QTestJUnitStreamer::outputElements ( const std::vector< QTestElement * > & elements) const

Definition at line 135 of file qtestjunitstreamer.cpp.

References elements, and output.

Referenced by output().

+ Here is the caller graph for this function:

◆ outputString()

void QTestJUnitStreamer::outputString ( const char * msg) const

Definition at line 151 of file qtestjunitstreamer.cpp.

References QAbstractTestLogger::outputString().

Referenced by output(), and outputElementAttributes().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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