47 #include "QtTest/private/qtestlog_p.h" 48 #include "QtTest/private/qtestresult_p.h" 49 #include "QtTest/private/qxmltestlogger_p.h" 66 if(!element || !formatted)
95 " <DataTag><![CDATA[%s]]></DataTag>\n" 96 " <Description><![CDATA[%s]]></Description>\n" 102 " <Description><![CDATA[%s]]></Description>\n" 104 location.constData(), cdataDesc.
constData());
122 QTest::qt_asprintf(formatted,
"<Message type=\"%s\" %s=\"%s\" %s=\"%s\">\n%s <Description><![CDATA[%s]]></Description>\n</Message>\n",
139 QTest::qt_asprintf(formatted,
"<BenchmarkResult %s=\"%s\" %s=\"%s\" %s=\"%s\" %s=\"%s\" />\n",
151 formatted->
data()[0] =
'\0';
157 if(!element || !formatted)
179 QTest::qt_asprintf(formatted,
"<Incident type=\"pass\" file=\"\" line=\"0\" />\n</TestFunction>\n");
185 formatted->
data()[0] =
'\0';
195 formatted->
data()[0] =
'\0';
204 QTest::qt_asprintf(&buf,
"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<TestCase name=\"%s\">\n",
209 QTest::qt_asprintf(&buf,
"<Environment>\n <QtVersion>%s</QtVersion>\n <QTestVersion>%s</QTestVersion>\n <RandomSeed>%d</RandomSeed>\n",
212 QTest::qt_asprintf(&buf,
"<Environment>\n <QtVersion>%s</QtVersion>\n <QTestVersion>%s</QTestVersion>\n",
bool hasRandomSeed() 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.
static const char * currentTestObjectName()
const char * constData() const
const QTestLogger * logger() const
const char * attributeValue(QTest::AttributeIndex index) const
#define QTEST_VERSION_STR
static int xmlQuote(QTestCharBuffer *dest, char const *src)
const QTestElementAttribute * attribute(QTest::AttributeIndex index) const
static QTestResult::TestLocation location
void formatEnd(const QTestElement *element, QTestCharBuffer *formatted) const
void output(QTestElement *element) const
void outputString(const char *msg) const
void formatBeforeAttributes(const QTestElement *element, QTestCharBuffer *formatted) const
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
void formatStart(const QTestElement *element, QTestCharBuffer *formatted) const
QTest::LogElementType elementType() const