![]() |
Qt 6.x
The Qt SDK
|
#include <qtestjunitstreamer_p.h>
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 |
Definition at line 29 of file qtestjunitstreamer_p.h.
QT_BEGIN_NAMESPACE QTestJUnitStreamer::QTestJUnitStreamer | ( | QJUnitTestLogger * | logger | ) |
Definition at line 15 of file qtestjunitstreamer.cpp.
References QTEST_ASSERT.
|
default |
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().
void QTestJUnitStreamer::formatEnd | ( | const QTestElement * | element, |
QTestCharBuffer * | formatted | ||
) | const |
Definition at line 57 of file qtestjunitstreamer.cpp.
References QTestElement::childElements(), QTestCharBuffer::data(), QTestCoreElement< ElementType >::elementName(), and QTest::qt_asprintf().
Referenced by output().
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().
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().
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().
void QTestJUnitStreamer::outputElements | ( | const std::vector< QTestElement * > & | elements | ) | const |
Definition at line 135 of file qtestjunitstreamer.cpp.
References elements, and output.
Referenced by output().
void QTestJUnitStreamer::outputString | ( | const char * | msg | ) | const |
Definition at line 151 of file qtestjunitstreamer.cpp.
References QAbstractTestLogger::outputString().
Referenced by output(), and outputElementAttributes().