47 #include "QtTest/private/qtestlog_p.h" 48 #include "QtTest/private/qtestresult_p.h" 49 #include "QtTest/private/qxmltestlogger_p.h" 65 if(!element || !formatted)
91 QTest::qt_asprintf(formatted,
"<Message type=\"%s\" %s=\"%s\" %s=\"%s\">\n <Description><![CDATA[%s]]></Description>\n</Message>\n",
107 QTest::qt_asprintf(formatted,
"<BenchmarkResult %s=\"%s\" %s=\"%s\" %s=\"%s\" %s=\"%s\" />\n",
119 formatted->
data()[0] =
'\0';
125 if(!element || !formatted)
134 formatted->
data()[0] =
'\0';
140 if(!element || !formatted)
161 formatted->
data()[0] =
'\0';
168 if (
logger()->hasRandomSeed()) {
169 QTest::qt_asprintf(&buf,
"<Environment>\n <QtVersion>%s</QtVersion>\n <QTestVersion>%s</QTestVersion>\n <RandomSeed>%d</RandomSeed>\n",
172 QTest::qt_asprintf(&buf,
"<Environment>\n <QtVersion>%s</QtVersion>\n <QTestVersion>%s</QTestVersion>\n",
void formatEnd(const QTestElement *element, QTestCharBuffer *formatted) const
#define QT_END_NAMESPACE
This macro expands to.
int qt_asprintf(QTestCharBuffer *str, const char *format,...)
const char * attributeName(QTest::AttributeIndex index) const
static int xmlCdata(QTestCharBuffer *dest, char const *src)
virtual void output(QTestElement *element) const
QTestElement * childElements() const
Q_CORE_EXPORT const char * qVersion()
#define QT_BEGIN_NAMESPACE
This macro expands to.
void formatStart(const QTestElement *element, QTestCharBuffer *formatted) const
const char * constData() const
const QTestLogger * logger() const
const char * attributeValue(QTest::AttributeIndex index) const
void output(QTestElement *element) const
#define QTEST_VERSION_STR
static int xmlQuote(QTestCharBuffer *dest, char const *src)
const QTestElementAttribute * attribute(QTest::AttributeIndex index) const
void outputString(const char *msg) const
void formatBeforeAttributes(const QTestElement *element, QTestCharBuffer *formatted) const
QTest::LogElementType elementType() const