5#include <QtTest/private/qtestresult_p.h>
6#include <QtTest/qtestassert.h>
7#include <QtTest/private/qtestlog_p.h>
8#include <QtTest/private/qteamcitylogger_p.h>
9#include <QtCore/qbytearray.h>
10#include <private/qlocale_p.h>
126 escapedTestFuncName(&tmpFuncName);
133 currTestFuncName.
clear();
143 tcEscapedString(&detailedText, description);
172 if (!pendingMessages.
isEmpty()) {
178 pendingMessages.
clear();
207 for (
const char *
p =
str; *
p; ++
p) {
208 if (strchr(
"\n\r|[]'", *
p))
215 bool swallowSpace =
true;
216 char *
p =
buf->data();
223 swallowSpace =
false;
228 swallowSpace =
false;
235 swallowSpace =
false;
244 swallowSpace =
false;
251 if (swallowSpace &&
p >
buf->data()) {
265void QTeamCityLogger::addPendingMessage(
const char *
type,
const char *msg,
268 const char *pad = pendingMessages.
isEmpty() ?
"" :
"|n";
Base class for test loggers.
void outputString(const char *msg)
Convenience method to write msg to the output stream.
IncidentTypes
\value Pass The test ran to completion successfully.
virtual void startLogging()
Called before the start of a test run.
MessageTypes
The members whose names begin with Q describe messages that originate in calls, by the test or code u...
virtual void stopLogging()
Called after the end of a test run.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void addIncident(IncidentTypes type, const char *description, const char *file=nullptr, int line=0) override
This virtual method is called when an event occurs that relates to the resolution of the test.
QTeamCityLogger(const char *filename)
void startLogging() override
Called before the start of a test run.
void stopLogging() override
Called after the end of a test run.
void addBenchmarkResult(const QBenchmarkResult &result) override
This virtual method is called after a benchmark has been run enough times to produce usable data.
void leaveTestFunction() override
This virtual method is called after a test function has completed, to match \l enterTestFunction().
void enterTestFunction(const char *function) override
This virtual method is called before each test function is invoked.
void addMessage(MessageTypes type, const QString &message, const char *file=nullptr, int line=0) override
This is an overloaded member function, provided for convenience. It differs from the above function o...
static int verboseLevel()
static const char * currentTestObjectName()
Combined button and popup list for selecting options.
void generateTestIdentifier(QTestCharBuffer *identifier, int parts)
bool appendCharBuffer(QTestCharBuffer *accumulator, const QTestCharBuffer &more)
static const char * tcIncidentType2String(QAbstractTestLogger::IncidentTypes type)
static const char * tcMessageType2String(QAbstractTestLogger::MessageTypes type)
int qt_asprintf(QTestCharBuffer *str, const char *format,...)
size_t qstrlen(const char *str)
Q_CORE_EXPORT int qstrcmp(const char *str1, const char *str2)
constexpr bool ascii_isspace(uchar c)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei const GLchar * buf
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define qUtf8Printable(string)
const char * constData() const