Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qtesttostring.h File Reference

(0756cc1eae5fd8981983319fef1d084762a67b8d)

#include <QtTest/qttestglobal.h>
#include <QtCore/qbitarray.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qcborarray.h>
#include <QtCore/qcborcommon.h>
#include <QtCore/qcbormap.h>
#include <QtCore/qcborvalue.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qobject.h>
#include <QtCore/qpoint.h>
#include <QtCore/qrect.h>
#include <QtCore/qsize.h>
#include <QtCore/qstring.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qurl.h>
#include <QtCore/quuid.h>
#include <QtCore/qvariant.h>
+ Include dependency graph for qtesttostring.h:

Go to the source code of this file.

Classes

struct  QTest::Internal::QCborValueFormatter
 

Namespaces

namespace  QTest
 [15]
 
namespace  QTest::Internal
 

Macros

#define QTEST_COMPARE_DECL(KLASS)    template<> Q_TESTLIB_EXPORT char *toString<KLASS >(const KLASS &);
 

Typedefs

template<typename T >
using QTest::Internal::is_suitable_type_v
 

Functions

template<typename T >
std::enable_if< QtPrivate::IsQEnumHelper< T >::Value, char * >::type QTest::Internal::toString (T e)
 
template<typename T >
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&std::is_enum_v< T >, char * >::type QTest::Internal::toString (const T &e)
 
template<typename T >
std::enable_if<!QtPrivate::IsQEnumHelper< T >::Value &&!std::is_enum_v< T >, char * >::type QTest::Internal::toString (const T &t)
 
template<typename F >
std::enable_if< QtPrivate::IsQEnumHelper< F >::Value, char * >::type QTest::Internal::toString (QFlags< F > f)
 
template<typename F >
std::enable_if<!QtPrivate::IsQEnumHelper< F >::Value, char * >::type QTest::Internal::toString (QFlags< F > f)
 
Q_TESTLIB_EXPORT bool QTest::compare_string_helper (const char *t1, const char *t2, const char *actual, const char *expected, const char *file, int line)
 
char * QTest::formatString (const char *prefix, const char *suffix, size_t numArguments,...)
 
char * QTest::toHexRepresentation (const char *ba, qsizetype length)
 Returns a pointer to a string that is the string ba represented as a space-separated sequence of hex characters.
 
char * QTest::toPrettyCString (const char *p, qsizetype length)
 
Q_TESTLIB_EXPORT char * QTest::toPrettyUnicode (QStringView string)
 
Q_TESTLIB_EXPORT char * QTest::toString (const char *)
 
Q_TESTLIB_EXPORT char * QTest::toString (const volatile void *)
 
Q_TESTLIB_EXPORT char * QTest::toString (const volatile QObject *)
 
template<typename T , Internal::is_suitable_type_v< T > = true>
char * QTest::toString (const T &t)
 
template<typename T1 , typename T2 >
char * QTest::toString (const std::pair< T1, T2 > &pair)
 
template<class... Types>
char * QTest::toString (const std::tuple< Types... > &tuple)
 
template<typename Rep , typename Period >
char * QTest::toString (std::chrono::duration< Rep, Period > duration)
 
template<>
char * QTest::toString (const QStringView &str)
 
template<>
char * QTest::toString (const QString &str)
 
template<>
char * QTest::toString (const QLatin1StringView &str)
 
template<>
char * QTest::toString (const QByteArray &ba)
 
template<>
char * QTest::toString (const QBitArray &ba)
 
template<>
char * QTest::toString (const QCborError &c)
 
template<>
char * QTest::toString (const QChar &c)
 
template<>
char * QTest::toString (const QPoint &p)
 
template<>
char * QTest::toString (const QSize &s)
 
template<>
char * QTest::toString (const QRect &s)
 
template<>
char * QTest::toString (const QPointF &p)
 
template<>
char * QTest::toString (const QSizeF &s)
 
template<>
char * QTest::toString (const QRectF &s)
 
template<>
char * QTest::toString (const QUrl &uri)
 
template<>
char * QTest::toString (const QUuid &uuid)
 
template<>
char * QTest::toString (const QVariant &v)
 
template<>
char * QTest::toString (const QPartialOrdering &o)
 
template<>
char * QTest::toString (const QCborValue &v)
 
template<>
char * QTest::toString (const QCborValueRef &v)
 
template<>
char * QTest::toString (const QCborArray &a)
 
template<>
char * QTest::toString (const QCborMap &m)
 
template<typename Tuple , std::size_t... I>
char * QTest::tupleToString (const Tuple &tuple, std::index_sequence< I... >)
 
char * QTest::toString (std::nullptr_t)
 

Variables

template<typename T >
constexpr bool QTest::Internal::is_suitable_type_helper_v
 

Macro Definition Documentation

◆ QTEST_COMPARE_DECL

#define QTEST_COMPARE_DECL ( KLASS)     template<> Q_TESTLIB_EXPORT char *toString<KLASS >(const KLASS &);

Definition at line 122 of file qtesttostring.h.