![]() |
Qt 4.8
|
#include "QtTest/private/qtestresult_p.h"#include "QtTest/qtestassert.h"#include "QtTest/private/qtestlog_p.h"#include "QtTest/private/qplaintestlogger_p.h"#include "QtTest/private/qbenchmark_p.h"#include "QtTest/private/qbenchmarkmetric_p.h"#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "windows.h"#include <QtCore/QString>#include <QtCore/QByteArray>#include <QtCore/qmath.h>Go to the source code of this file.
Namespaces | |
| QTest | |
| The QTest namespace contains all the functions and declarations that are related to the QTestLib tool. | |
Macros | |
| #define | COLORED_MSG(prefix, color, msg) colored && QAbstractTestLogger::isTtyOutput() ? "\033["#prefix";"#color"m" msg "\033[0m" : msg |
Functions | |
| static const char * | QTest::benchmarkResult2String () |
| template<typename T > | |
| static int | QTest::countSignificantDigits (T num) |
| template<typename T > | |
| QString | QTest::formatResult (T number, int significantDigits) |
| template<typename T > | |
| int | QTest::formatResult (char *buffer, int bufferSize, T number, int significantDigits) |
| static const char * | QTest::incidentType2String (QAbstractTestLogger::IncidentTypes type) |
| static const char * | QTest::messageType2String (QAbstractTestLogger::MessageTypes type) |
| static void | QTest::outputMessage (const char *str) |
| static void | QTest::printBenchmarkResult (const QBenchmarkResult &result) |
| static void | QTest::printMessage (const char *type, const char *msg, const char *file=0, int line=0) |
| #define COLORED_MSG | ( | prefix, | |
| color, | |||
| msg | |||
| ) | colored && QAbstractTestLogger::isTtyOutput() ? "\033["#prefix";"#color"m" msg "\033[0m" : msg |
Definition at line 106 of file qplaintestlogger.cpp.
Referenced by QTest::benchmarkResult2String(), QTest::incidentType2String(), and QTest::messageType2String().