OpenCoverage

qurl.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qurl.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6extern QString qt_normalizePathSegments(const QString &name, bool allowUncPaths);-
7-
8inline static bool isHex(char c)-
9{-
10 c |= 0x20;-
11 return
executed 59 times by 2 tests: return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
(c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
executed 59 times by 2 tests: return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
59
12}-
13-
14static inline QString ftpScheme()-
15{-
16 return
executed 55 times by 2 tests: return ([]() -> QString { enum { Size = sizeof(u"" "ftp")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "ftp" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "ftp")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "ftp" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 55 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
qstring_literal_temp;
executed 55 times by 2 tests: return qstring_literal_temp;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
}());
executed 55 times by 2 tests: return ([]() -> QString { enum { Size = sizeof(u"" "ftp")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "ftp" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
55
17}-
18-
19static inline QString fileScheme()-
20{-
21 return
executed 17440 times by 33 tests: return ([]() -> QString { enum { Size = sizeof(u"" "file")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "file" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
([]() -> QString { enum { Size = sizeof(u"" "file")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "file" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 17440 times by 33 tests: return qstring_literal_temp;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
qstring_literal_temp;
executed 17440 times by 33 tests: return qstring_literal_temp;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
}());
executed 17440 times by 33 tests: return ([]() -> QString { enum { Size = sizeof(u"" "file")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "file" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
17440
22}-
23-
24static inline QString webDavScheme()-
25{-
26 return
executed 1 time by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "webdavs")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "webdavs" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "webdavs")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "webdavs" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 1 time by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "webdavs")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "webdavs" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
1
27}-
28-
29static inline QString webDavSslTag()-
30{-
31 return
executed 4 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "@SSL")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "@SSL" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "@SSL")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "@SSL" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 4 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 4 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "@SSL")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "@SSL" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
4
32}-
33-
34-
35-
36-
37-
38-
39-
40class QUrlPrivate-
41{-
42public:-
43 enum Section : uchar {-
44 Scheme = 0x01,-
45 UserName = 0x02,-
46 Password = 0x04,-
47 UserInfo = UserName | Password,-
48 Host = 0x08,-
49 Port = 0x10,-
50 Authority = UserInfo | Host | Port,-
51 Path = 0x20,-
52 Hierarchy = Authority | Path,-
53 Query = 0x40,-
54 Fragment = 0x80,-
55 FullUrl = 0xff-
56 };-
57-
58 enum Flags : uchar {-
59 IsLocalFile = 0x01-
60 };-
61-
62 enum ErrorCode {-
63-
64-
65 InvalidSchemeError = Scheme << 8,-
66-
67 InvalidUserNameError = UserName << 8,-
68-
69 InvalidPasswordError = Password << 8,-
70-
71 InvalidRegNameError = Host << 8,-
72 InvalidIPv4AddressError,-
73 InvalidIPv6AddressError,-
74 InvalidCharacterInIPv6Error,-
75 InvalidIPvFutureError,-
76 HostMissingEndBracket,-
77-
78 InvalidPortError = Port << 8,-
79 PortEmptyError,-
80-
81 InvalidPathError = Path << 8,-
82-
83 InvalidQueryError = Query << 8,-
84-
85 InvalidFragmentError = Fragment << 8,-
86-
87-
88-
89 AuthorityPresentAndPathIsRelative = Authority << 8 | Path << 8 | 0x10000,-
90 RelativeUrlPathContainsColonBeforeSlash = Scheme << 8 | Authority << 8 | Path << 8 | 0x10000,-
91-
92 NoError = 0-
93 };-
94-
95 struct Error {-
96 QString source;-
97 ErrorCode code;-
98 int position;-
99 };-
100-
101 QUrlPrivate();-
102 QUrlPrivate(const QUrlPrivate &copy);-
103 ~QUrlPrivate();-
104-
105 void parse(const QString &url, QUrl::ParsingMode parsingMode);-
106 bool isEmpty() const-
107 { return
executed 17289 times by 32 tests: return sectionIsPresent == 0 && port == -1 && path.isEmpty();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
sectionIsPresent == 0 && port == -1 && path.isEmpty();
executed 17289 times by 32 tests: return sectionIsPresent == 0 && port == -1 && path.isEmpty();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
}
17289
108-
109 Error *cloneError() const;-
110 void clearError();-
111 void setError(ErrorCode errorCode, const QString &source, int supplement = -1);-
112 ErrorCode validityError(QString *source = 0, int *position = 0) const;-
113 bool validateComponent(Section section, const QString &input, int begin, int end);-
114 bool validateComponent(Section section, const QString &input)-
115 { return
executed 21 times by 1 test: return validateComponent(section, input, 0, uint(input.length()));
Executed by:
  • tst_QUrl
validateComponent(section, input, 0, uint(input.length()));
executed 21 times by 1 test: return validateComponent(section, input, 0, uint(input.length()));
Executed by:
  • tst_QUrl
}
21
116-
117-
118 void appendAuthority(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const;-
119 void appendUserInfo(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const;-
120 void appendUserName(QString &appendTo, QUrl::FormattingOptions options) const;-
121 void appendPassword(QString &appendTo, QUrl::FormattingOptions options) const;-
122 void appendHost(QString &appendTo, QUrl::FormattingOptions options) const;-
123 void appendPath(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const;-
124 void appendQuery(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const;-
125 void appendFragment(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const;-
126-
127-
128 bool setScheme(const QString &value, int len, bool doSetError);-
129 void setAuthority(const QString &auth, int from, int end, QUrl::ParsingMode mode);-
130 void setUserInfo(const QString &userInfo, int from, int end);-
131 void setUserName(const QString &value, int from, int end);-
132 void setPassword(const QString &value, int from, int end);-
133 bool setHost(const QString &value, int from, int end, QUrl::ParsingMode mode);-
134 void setPath(const QString &value, int from, int end);-
135 void setQuery(const QString &value, int from, int end);-
136 void setFragment(const QString &value, int from, int end);-
137-
138 inline bool hasScheme() const { return
executed 10891 times by 31 tests: return sectionIsPresent & Scheme;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • ...
sectionIsPresent & Scheme;
executed 10891 times by 31 tests: return sectionIsPresent & Scheme;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • ...
}
10891
139 inline bool hasAuthority() const { return
executed 10496 times by 30 tests: return sectionIsPresent & Authority;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
sectionIsPresent & Authority;
executed 10496 times by 30 tests: return sectionIsPresent & Authority;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
}
10496
140 inline bool hasUserInfo() const { return
executed 6896 times by 20 tests: return sectionIsPresent & UserInfo;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
sectionIsPresent & UserInfo;
executed 6896 times by 20 tests: return sectionIsPresent & UserInfo;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
}
6896
141 inline bool hasUserName() const { return
executed 4548 times by 17 tests: return sectionIsPresent & UserName;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
sectionIsPresent & UserName;
executed 4548 times by 17 tests: return sectionIsPresent & UserName;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
}
4548
142 inline bool hasPassword() const { return
executed 4337 times by 17 tests: return sectionIsPresent & Password;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
sectionIsPresent & Password;
executed 4337 times by 17 tests: return sectionIsPresent & Password;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
}
4337
143 inline bool hasHost() const { return
never executed: return sectionIsPresent & Host;
sectionIsPresent & Host;
never executed: return sectionIsPresent & Host;
}
0
144 inline bool hasPort() const { return
never executed: return port != -1;
port != -1;
never executed: return port != -1;
}
0
145 inline bool hasPath() const { return
never executed: return !path.isEmpty();
!path.isEmpty();
never executed: return !path.isEmpty();
}
0
146 inline bool hasQuery() const { return
executed 10978 times by 33 tests: return sectionIsPresent & Query;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
sectionIsPresent & Query;
executed 10978 times by 33 tests: return sectionIsPresent & Query;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
}
10978
147 inline bool hasFragment() const { return
executed 10982 times by 30 tests: return sectionIsPresent & Fragment;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlStream
  • ...
sectionIsPresent & Fragment;
executed 10982 times by 30 tests: return sectionIsPresent & Fragment;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlStream
  • ...
}
10982
148-
149 inline bool isLocalFile() const { return
executed 21307 times by 34 tests: return flags & IsLocalFile;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
flags & IsLocalFile;
executed 21307 times by 34 tests: return flags & IsLocalFile;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
}
21307
150 QString toLocalFile(QUrl::FormattingOptions options) const;-
151-
152 QString mergePaths(const QString &relativePath) const;-
153-
154 QAtomicInt ref;-
155 int port;-
156-
157 QString scheme;-
158 QString userName;-
159 QString password;-
160 QString host;-
161 QString path;-
162 QString query;-
163 QString fragment;-
164-
165 Error *error;-
166-
167-
168-
169-
170-
171 uchar sectionIsPresent;-
172 uchar flags;-
173-
174-
175-
176};-
177-
178-
179inline QUrlPrivate::QUrlPrivate()-
180 : ref(1), port(-1),-
181 error(0),-
182 sectionIsPresent(0),-
183 flags(0)-
184{-
185}
executed 24302 times by 55 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
24302
186-
187inline QUrlPrivate::QUrlPrivate(const QUrlPrivate &copy)-
188 : ref(1), port(copy.port),-
189 scheme(copy.scheme),-
190 userName(copy.userName),-
191 password(copy.password),-
192 host(copy.host),-
193 path(copy.path),-
194 query(copy.query),-
195 fragment(copy.fragment),-
196 error(copy.cloneError()),-
197 sectionIsPresent(copy.sectionIsPresent),-
198 flags(copy.flags)-
199{-
200}
executed 9132 times by 17 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
9132
201-
202inline QUrlPrivate::~QUrlPrivate()-
203{-
204 delete error;-
205}
executed 33428 times by 62 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
33428
206-
207inline QUrlPrivate::Error *QUrlPrivate::cloneError() const-
208{-
209 return
executed 9132 times by 17 tests: return error ? new Error(*error) : 0;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
error ? new Error(*error) : 0;
executed 9132 times by 17 tests: return error ? new Error(*error) : 0;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
9132
210}-
211-
212inline void QUrlPrivate::clearError()-
213{-
214 delete error;-
215 error = 0;-
216}
executed 46907 times by 55 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
46907
217-
218inline void QUrlPrivate::setError(ErrorCode errorCode, const QString &source, int supplement)-
219{-
220 if (error
errorDescription
TRUEevaluated 41 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 263 times by 8 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkRequest
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
) {
41-263
221-
222 return;
executed 41 times by 5 tests: return;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
41
223 }-
224 error = new Error;-
225 error->code = errorCode;-
226 error->source = source;-
227 error->position = supplement;-
228}
executed 263 times by 8 tests: end of block
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkRequest
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
263
229static const ushort userNameInIsolation[] = {-
230 ushort(':'),-
231 ushort('@'),-
232 ushort(']'),-
233 ushort('['),-
234 ushort('/'),-
235 ushort('?'),-
236 ushort('#'),-
237-
238 ushort('"'),-
239 ushort('<'),-
240 ushort('>'),-
241 ushort('^'),-
242 ushort('\\'),-
243 ushort('|'),-
244 ushort('{'),-
245 ushort('}'),-
246 0-
247};-
248static const ushort * const passwordInIsolation = userNameInIsolation + 1;-
249static const ushort * const pathInIsolation = userNameInIsolation + 5;-
250static const ushort * const queryInIsolation = userNameInIsolation + 6;-
251static const ushort * const fragmentInIsolation = userNameInIsolation + 7;-
252-
253static const ushort userNameInUserInfo[] = {-
254 ushort(0x200 | (':')),-
255 ushort('@'),-
256 ushort(']'),-
257 ushort('['),-
258 ushort('/'),-
259 ushort('?'),-
260 ushort('#'),-
261-
262 ushort('"'),-
263 ushort('<'),-
264 ushort('>'),-
265 ushort('^'),-
266 ushort('\\'),-
267 ushort('|'),-
268 ushort('{'),-
269 ushort('}'),-
270 0-
271};-
272static const ushort * const passwordInUserInfo = userNameInUserInfo + 1;-
273-
274static const ushort userNameInAuthority[] = {-
275 ushort(0x200 | (':')),-
276 ushort(0x200 | ('@')),-
277 ushort(0x200 | (']')),-
278 ushort(0x200 | ('[')),-
279 ushort('/'),-
280 ushort('?'),-
281 ushort('#'),-
282-
283 ushort('"'),-
284 ushort('<'),-
285 ushort('>'),-
286 ushort('^'),-
287 ushort('\\'),-
288 ushort('|'),-
289 ushort('{'),-
290 ushort('}'),-
291 0-
292};-
293static const ushort * const passwordInAuthority = userNameInAuthority + 1;-
294-
295static const ushort userNameInUrl[] = {-
296 ushort(0x200 | (':')),-
297 ushort(0x200 | ('@')),-
298 ushort(0x200 | (']')),-
299 ushort(0x200 | ('[')),-
300 ushort(0x200 | ('/')),-
301 ushort(0x200 | ('?')),-
302 ushort(0x200 | ('#')),-
303-
304-
305 0-
306};-
307static const ushort * const passwordInUrl = userNameInUrl + 1;-
308static const ushort * const pathInUrl = userNameInUrl + 5;-
309static const ushort * const queryInUrl = userNameInUrl + 6;-
310static const ushort * const fragmentInUrl = userNameInUrl + 6;-
311-
312static inline void parseDecodedComponent(QString &data)-
313{-
314 data.replace(QLatin1Char('%'), QLatin1String("%25"));-
315}
executed 14930 times by 40 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • ...
14930
316-
317static inline QString-
318recodeFromUser(const QString &input, const ushort *actions, int from, int to)-
319{-
320 QString output;-
321 const QChar *begin = input.constData() + from;-
322 const QChar *end = input.constData() + to;-
323 if (qt_urlRecode(output, begin, end, 0, actions)
qt_urlRecode(o...d, 0, actions)Description
TRUEevaluated 197 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 19883 times by 35 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
)
197-19883
324 return
executed 197 times by 6 tests: return output;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
output;
executed 197 times by 6 tests: return output;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
197
325-
326 return
executed 19883 times by 35 tests: return input.mid(from, to - from);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
input.mid(from, to - from);
executed 19883 times by 35 tests: return input.mid(from, to - from);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
19883
327}-
328-
329-
330-
331static inline void appendToUser(QString &appendTo, const QString &value, QUrl::FormattingOptions options,-
332 const ushort *actions)-
333{-
334 if (options == QUrl::PrettyDecoded
options == QUrl::PrettyDecodedDescription
TRUEevaluated 291 times by 4 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 25323 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
) {
291-25323
335 appendTo += value;-
336 return;
executed 291 times by 4 tests: return;
Executed by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
291
337 }-
338-
339 if (!qt_urlRecode(appendTo, value.constData(), value.constEnd(), options, actions)
!qt_urlRecode(...ions, actions)Description
TRUEevaluated 24378 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
FALSEevaluated 945 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
)
945-24378
340 appendTo += value;
executed 24378 times by 33 tests: appendTo += value;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
24378
341}
executed 25323 times by 33 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
25323
342-
343inline void QUrlPrivate::appendAuthority(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const-
344{-
345 if ((
(options & QUr...RemoveUserInfoDescription
TRUEevaluated 4548 times by 17 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
FALSEevaluated 1081 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
options & QUrl::RemoveUserInfo) != QUrl::RemoveUserInfo
(options & QUr...RemoveUserInfoDescription
TRUEevaluated 4548 times by 17 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
FALSEevaluated 1081 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
) {
1081-4548
346 appendUserInfo(appendTo, options, appendingTo);-
347-
348-
349 if (hasUserName()
hasUserName()Description
TRUEevaluated 627 times by 5 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 3921 times by 16 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
|| (hasPassword()
hasPassword()Description
TRUEevaluated 98 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 3823 times by 16 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
&& (
(options & QUr...Password) == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 91 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
options & QUrl::RemovePassword) == 0
(options & QUr...Password) == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 91 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
))
7-3921
350 appendTo += QLatin1Char('@');
executed 634 times by 5 tests: appendTo += QLatin1Char('@');
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
634
351 }
executed 4548 times by 17 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
4548
352 appendHost(appendTo, options);-
353 if (!(options & QUrl::RemovePort)
!(options & QUrl::RemovePort)Description
TRUEevaluated 5625 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
&& port != -1
port != -1Description
TRUEevaluated 1782 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
FALSEevaluated 3843 times by 15 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
)
4-5625
354 appendTo += QLatin1Char(':') + QString::number(port);
executed 1782 times by 9 tests: appendTo += QLatin1Char(':') + QString::number(port);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
1782
355}
executed 5629 times by 20 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
5629
356-
357inline void QUrlPrivate::appendUserInfo(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const-
358{-
359 if (__builtin_expect(!!(!hasUserInfo()), true)
__builtin_expe...Info()), true)Description
TRUEevaluated 6106 times by 19 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
FALSEevaluated 790 times by 5 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
)
790-6106
360 return;
executed 6106 times by 19 tests: return;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
6106
361-
362 const ushort *userNameActions;-
363 const ushort *passwordActions;-
364 if (options & QUrl::EncodeDelimiters
options & QUrl...codeDelimitersDescription
TRUEevaluated 605 times by 5 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 185 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
) {
185-605
365 userNameActions = userNameInUrl;-
366 passwordActions = passwordInUrl;-
367 }
executed 605 times by 5 tests: end of block
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
else {
605
368 switch (appendingTo) {-
369 case
executed 57 times by 2 tests: case UserInfo:
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
UserInfo:
executed 57 times by 2 tests: case UserInfo:
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
57
370 userNameActions = userNameInUserInfo;-
371 passwordActions = passwordInUserInfo;-
372 break;
executed 57 times by 2 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
57
373-
374 case
executed 25 times by 1 test: case Authority:
Executed by:
  • tst_QUrl
Authority:
executed 25 times by 1 test: case Authority:
Executed by:
  • tst_QUrl
25
375 userNameActions = userNameInAuthority;-
376 passwordActions = passwordInAuthority;-
377 break;
executed 25 times by 1 test: break;
Executed by:
  • tst_QUrl
25
378-
379 case
executed 103 times by 2 tests: case FullUrl:
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
FullUrl:
executed 103 times by 2 tests: case FullUrl:
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
103
380 userNameActions = userNameInUrl;-
381 passwordActions = passwordInUrl;-
382 break;
executed 103 times by 2 tests: break;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
103
383-
384 default
never executed: default:
:
never executed: default:
0
385-
386 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,894) : qt_noop()); __builtin_unreachable(); } while (0);-
387 break;
never executed: break;
0
388 }-
389 }-
390-
391 if (!qt_urlRecode(appendTo, userName.constData(), userName.constEnd(), options, userNameActions)
!qt_urlRecode(...erNameActions)Description
TRUEevaluated 723 times by 5 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 67 times by 1 test
Evaluated by:
  • tst_QUrl
)
67-723
392 appendTo += userName;
executed 723 times by 5 tests: appendTo += userName;
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
723
393 if (options & QUrl::RemovePassword || !hasPassword()
!hasPassword()Description
TRUEevaluated 191 times by 5 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 225 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
) {
191-225
394 return;
executed 565 times by 5 tests: return;
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
565
395 } else {-
396 appendTo += QLatin1Char(':');-
397 if (!qt_urlRecode(appendTo, password.constData(), password.constEnd(), options, passwordActions)
!qt_urlRecode(...sswordActions)Description
TRUEevaluated 168 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 57 times by 1 test
Evaluated by:
  • tst_QUrl
)
57-168
398 appendTo += password;
executed 168 times by 2 tests: appendTo += password;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
168
399 }
executed 225 times by 2 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
225
400}-
401-
402inline void QUrlPrivate::appendUserName(QString &appendTo, QUrl::FormattingOptions options) const-
403{-
404-
405 appendToUser(appendTo, userName, options,-
406 options & QUrl::EncodeDelimiters ? userNameInUrl : userNameInIsolation);-
407}
executed 783 times by 3 tests: end of block
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
783
408-
409inline void QUrlPrivate::appendPassword(QString &appendTo, QUrl::FormattingOptions options) const-
410{-
411-
412 appendToUser(appendTo, password, options,-
413 options & QUrl::EncodeDelimiters ? passwordInUrl : passwordInIsolation);-
414}
executed 577 times by 6 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
577
415-
416inline void QUrlPrivate::appendPath(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const-
417{-
418 QString thePath = path;-
419 if (options & QUrl::NormalizePathSegments
options & QUrl...zePathSegmentsDescription
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 22596 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
) {
19-22596
420 thePath = qt_normalizePathSegments(path, false);-
421 }
executed 19 times by 1 test: end of block
Executed by:
  • tst_QUrl
19
422 if (options & QUrl::RemoveFilename
options & QUrl::RemoveFilenameDescription
TRUEevaluated 54 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 22561 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
) {
54-22561
423 const int slash = path.lastIndexOf(QLatin1Char('/'));-
424 if (slash == -1
slash == -1Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 49 times by 1 test
Evaluated by:
  • tst_QUrl
)
5-49
425 return;
executed 5 times by 1 test: return;
Executed by:
  • tst_QUrl
5
426 thePath = path.left(slash+1);-
427 }
executed 49 times by 1 test: end of block
Executed by:
  • tst_QUrl
49
428-
429 if (options & QUrl::StripTrailingSlash
options & QUrl...pTrailingSlashDescription
TRUEevaluated 44 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 22566 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
) {
44-22566
430 while (thePath.length() > 1
thePath.length() > 1Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QUrl
&& thePath.endsWith(QLatin1Char('/'))
thePath.endsWi...tin1Char('/'))Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QUrl
)
16-58
431 thePath.chop(1);
executed 30 times by 1 test: thePath.chop(1);
Executed by:
  • tst_QUrl
30
432 }
executed 44 times by 1 test: end of block
Executed by:
  • tst_QUrl
44
433-
434 appendToUser(appendTo, thePath, options,-
435 appendingTo == FullUrl || options & QUrl::EncodeDelimiters ? pathInUrl : pathInIsolation);-
436-
437}
executed 22610 times by 33 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • ...
22610
438-
439inline void QUrlPrivate::appendFragment(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const-
440{-
441 appendToUser(appendTo, fragment, options,-
442 options & QUrl::EncodeDelimiters ? fragmentInUrl :-
443 appendingTo == FullUrl ? 0 : fragmentInIsolation);-
444}
executed 920 times by 4 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
920
445-
446inline void QUrlPrivate::appendQuery(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const-
447{-
448 appendToUser(appendTo, query, options,-
449 appendingTo == FullUrl || options & QUrl::EncodeDelimiters ? queryInUrl : queryInIsolation);-
450}
executed 724 times by 4 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
724
451-
452-
453-
454inline bool QUrlPrivate::setScheme(const QString &value, int len, bool doSetError)-
455{-
456-
457-
458-
459-
460-
461-
462-
463 scheme.clear();-
464 if (len == 0
len == 0Description
TRUEevaluated 6 times by 4 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
FALSEevaluated 12241 times by 33 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
)
6-12241
465 return
executed 6 times by 4 tests: return false;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
false;
executed 6 times by 4 tests: return false;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
6
466-
467 sectionIsPresent |= Scheme;-
468-
469-
470 int needsLowercasing = -1;-
471 const ushort *p = reinterpret_cast<const ushort *>(value.constData());-
472 for (int i = 0; i < len
i < lenDescription
TRUEevaluated 51343 times by 33 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
FALSEevaluated 12112 times by 33 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
; ++i) {
12112-51343
473 if (p[i] >= 'a'
p[i] >= 'a'Description
TRUEevaluated 50436 times by 33 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
FALSEevaluated 907 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
  • tst_Spdy
&& p[i] <= 'z'
p[i] <= 'z'Description
TRUEevaluated 50418 times by 33 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
)
18-50436
474 continue;
executed 50418 times by 33 tests: continue;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
50418
475 if (p[i] >= 'A'
p[i] >= 'A'Description
TRUEevaluated 308 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 617 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
  • tst_Spdy
&& p[i] <= 'Z'
p[i] <= 'Z'Description
TRUEevaluated 272 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QUrl
) {
36-617
476 needsLowercasing = i;-
477 continue;
executed 272 times by 1 test: continue;
Executed by:
  • tst_QUrl
272
478 }-
479 if (i
iDescription
TRUEevaluated 615 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
) {
38-615
480 if (p[i] >= '0'
p[i] >= '0'Description
TRUEevaluated 192 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 423 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
&& p[i] <= '9'
p[i] <= '9'Description
TRUEevaluated 145 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 47 times by 1 test
Evaluated by:
  • tst_QUrl
)
47-423
481 continue;
executed 145 times by 4 tests: continue;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
145
482 if (p[i] == '+'
p[i] == '+'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 462 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
|| p[i] == '-'
p[i] == '-'Description
TRUEevaluated 361 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 101 times by 1 test
Evaluated by:
  • tst_QUrl
|| p[i] == '.'
p[i] == '.'Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 91 times by 1 test
Evaluated by:
  • tst_QUrl
)
8-462
483 continue;
executed 379 times by 3 tests: continue;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
379
484 }
executed 91 times by 1 test: end of block
Executed by:
  • tst_QUrl
91
485-
486-
487-
488-
489 if (doSetError
doSetErrorDescription
TRUEevaluated 74 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
)
55-74
490 setError(InvalidSchemeError, value, i);
executed 74 times by 1 test: setError(InvalidSchemeError, value, i);
Executed by:
  • tst_QUrl
74
491 return
executed 129 times by 2 tests: return false;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
false;
executed 129 times by 2 tests: return false;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
129
492 }-
493-
494 scheme = value.left(len);-
495-
496 if (needsLowercasing != -1
needsLowercasing != -1Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 12079 times by 33 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
) {
33-12079
497-
498 QChar *schemeData = scheme.data();-
499 for (int i = needsLowercasing; i >= 0
i >= 0Description
TRUEevaluated 192 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 33 times by 1 test
Evaluated by:
  • tst_QUrl
; --i) {
33-192
500 ushort c = schemeData[i].unicode();-
501 if (c >= 'A'
c >= 'A'Description
TRUEevaluated 180 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUrl
&& c <= 'Z'
c <= 'Z'Description
TRUEevaluated 178 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-180
502 schemeData[i] = c + 0x20;
executed 178 times by 1 test: schemeData[i] = c + 0x20;
Executed by:
  • tst_QUrl
178
503 }
executed 192 times by 1 test: end of block
Executed by:
  • tst_QUrl
192
504 }
executed 33 times by 1 test: end of block
Executed by:
  • tst_QUrl
33
505-
506-
507 if (scheme == fileScheme()
scheme == fileScheme()Description
TRUEevaluated 6542 times by 15 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
FALSEevaluated 5570 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
5570-6542
508-
509-
510-
511 ) {-
512 flags |= IsLocalFile;-
513 }
executed 6542 times by 15 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
else {
6542
514 flags &= ~IsLocalFile;-
515 }
executed 5570 times by 22 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
5570
516 return
executed 12112 times by 33 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
true;
executed 12112 times by 33 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
12112
517}-
518-
519inline void QUrlPrivate::setAuthority(const QString &auth, int from, int end, QUrl::ParsingMode mode)-
520{-
521 sectionIsPresent &= ~Authority;-
522 sectionIsPresent |= Host;-
523-
524-
525 while (from != end
from != endDescription
TRUEevaluated 4922 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
FALSEevaluated 618 times by 9 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QUrl
  • tst_languageChange
  • tst_qfileopenevent
) {
618-4922
526 int userInfoIndex = auth.indexOf(QLatin1Char('@'), from);-
527 if (uint(userInfoIndex) < uint(end)
uint(userInfoI...x) < uint(end)Description
TRUEevaluated 166 times by 4 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 4756 times by 21 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
) {
166-4756
528 setUserInfo(auth, from, userInfoIndex);-
529 if (mode == QUrl::StrictMode
mode == QUrl::StrictModeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 158 times by 4 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
&& !validateComponent(UserInfo, auth, from, userInfoIndex)
!validateCompo...userInfoIndex)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
)
1-158
530 break;
executed 7 times by 1 test: break;
Executed by:
  • tst_QUrl
7
531 from = userInfoIndex + 1;-
532 }
executed 159 times by 4 tests: end of block
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
159
533-
534 int colonIndex = auth.lastIndexOf(QLatin1Char(':'), end - 1);-
535 if (colonIndex < from
colonIndex < fromDescription
TRUEevaluated 4076 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
FALSEevaluated 839 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
)
839-4076
536 colonIndex = -1;
executed 4076 times by 20 tests: colonIndex = -1;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
4076
537-
538 if (uint(colonIndex) < uint(end)
uint(colonIndex) < uint(end)Description
TRUEevaluated 839 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
FALSEevaluated 4076 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
) {
839-4076
539 if (auth.at(from).unicode() == '['
auth.at(from).unicode() == '['Description
TRUEevaluated 65 times by 4 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 774 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
) {
65-774
540-
541 int closingBracket = auth.indexOf(QLatin1Char(']'), from);-
542 if (uint(closingBracket) > uint(colonIndex)
uint(closingBr...nt(colonIndex)Description
TRUEevaluated 59 times by 4 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
)
6-59
543 colonIndex = -1;
executed 59 times by 4 tests: colonIndex = -1;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
59
544 }
executed 65 times by 4 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
65
545 }
executed 839 times by 6 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
839
546-
547 if (colonIndex == end - 1
colonIndex == end - 1Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 4903 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
) {
12-4903
548-
549 port = -1;-
550 }
executed 12 times by 2 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
else if (uint(colonIndex) < uint(end)
uint(colonIndex) < uint(end)Description
TRUEevaluated 768 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
FALSEevaluated 4135 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
) {
12-4135
551 unsigned long x = 0;-
552 for (int i = colonIndex + 1; i < end
i < endDescription
TRUEevaluated 3040 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
FALSEevaluated 761 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
; ++i) {
761-3040
553 ushort c = auth.at(i).unicode();-
554 if (c >= '0'
c >= '0'Description
TRUEevaluated 3039 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
&& c <= '9'
c <= '9'Description
TRUEevaluated 3033 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
) {
1-3039
555 x *= 10;-
556 x += c - '0';-
557 }
executed 3033 times by 6 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
else {
3033
558 x = ulong(-1);-
559 break;
executed 7 times by 1 test: break;
Executed by:
  • tst_QUrl
7
560 }-
561 }-
562 if (x == ushort(x)
x == ushort(x)Description
TRUEevaluated 758 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QUrl
) {
10-758
563 port = ushort(x);-
564 }
executed 758 times by 6 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
else {
758
565 setError(InvalidPortError, auth, colonIndex + 1);-
566 if (mode == QUrl::StrictMode
mode == QUrl::StrictModeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
)
4-6
567 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_QUrl
4
568 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QUrl
6
569 } else {-
570 port = -1;-
571 }
executed 4135 times by 20 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
4135
572-
573 setHost(auth, from, qMin<uint>(end, colonIndex), mode);-
574 if (mode == QUrl::StrictMode
mode == QUrl::StrictModeDescription
TRUEevaluated 86 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
FALSEevaluated 4825 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
&& !validateComponent(Host, auth, from, qMin<uint>(end, colonIndex))
!validateCompo..., colonIndex))Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 80 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
) {
6-4825
575-
576 sectionIsPresent &= ~Authority;-
577 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QUrl
6
578 }-
579-
580-
581 return;
executed 4905 times by 22 tests: return;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
4905
582 }-
583-
584 sectionIsPresent &= ~Authority | Host;-
585 userName.clear();-
586 password.clear();-
587 host.clear();-
588 port = -1;-
589}
executed 635 times by 9 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QUrl
  • tst_languageChange
  • tst_qfileopenevent
635
590-
591inline void QUrlPrivate::setUserInfo(const QString &userInfo, int from, int end)-
592{-
593 int delimIndex = userInfo.indexOf(QLatin1Char(':'), from);-
594 setUserName(userInfo, from, qMin<uint>(delimIndex, end));-
595-
596 if (uint(delimIndex) >= uint(end)
uint(delimIndex) >= uint(end)Description
TRUEevaluated 87 times by 4 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 130 times by 4 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
) {
87-130
597 password.clear();-
598 sectionIsPresent &= ~Password;-
599 }
executed 87 times by 4 tests: end of block
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
else {
87
600 setPassword(userInfo, delimIndex + 1, end);-
601 }
executed 130 times by 4 tests: end of block
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
130
602}-
603-
604inline void QUrlPrivate::setUserName(const QString &value, int from, int end)-
605{-
606 sectionIsPresent |= UserName;-
607 userName = recodeFromUser(value, userNameInIsolation, from, end);-
608}
executed 2114 times by 5 tests: end of block
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
2114
609-
610inline void QUrlPrivate::setPassword(const QString &value, int from, int end)-
611{-
612 sectionIsPresent |= Password;-
613 password = recodeFromUser(value, passwordInIsolation, from, end);-
614}
executed 583 times by 5 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
583
615-
616inline void QUrlPrivate::setPath(const QString &value, int from, int end)-
617{-
618-
619 path = recodeFromUser(value, pathInIsolation, from, end);-
620}
executed 15047 times by 35 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • ...
15047
621-
622inline void QUrlPrivate::setFragment(const QString &value, int from, int end)-
623{-
624 sectionIsPresent |= Fragment;-
625 fragment = recodeFromUser(value, fragmentInIsolation, from, end);-
626}
executed 1832 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
1832
627-
628inline void QUrlPrivate::setQuery(const QString &value, int from, int iend)-
629{-
630 sectionIsPresent |= Query;-
631 query = recodeFromUser(value, queryInIsolation, from, iend);-
632}
executed 504 times by 5 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
504
633inline void QUrlPrivate::appendHost(QString &appendTo, QUrl::FormattingOptions options) const-
634{-
635-
636 if ((
(options & QUr...::FullyDecodedDescription
TRUEevaluated 9958 times by 34 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
FALSEevaluated 5683 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
options & QUrl::FullyDecoded) == QUrl::FullyDecoded
(options & QUr...::FullyDecodedDescription
TRUEevaluated 9958 times by 34 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
FALSEevaluated 5683 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
)
5683-9958
637 options = 0;
executed 9958 times by 34 tests: options = 0;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
9958
638 else-
639 options &= QUrl::EncodeUnicode;
executed 5683 times by 20 tests: options &= QUrl::EncodeUnicode;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
5683
640 if (host.isEmpty()
host.isEmpty()Description
TRUEevaluated 1229 times by 21 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Spdy
  • tst_qfileopenevent
FALSEevaluated 14412 times by 41 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • ...
)
1229-14412
641 return;
executed 1229 times by 21 tests: return;
Executed by:
  • tst_NetworkSelfTest
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Spdy
  • tst_qfileopenevent
1229
642 if (host.at(0).unicode() == '['
host.at(0).unicode() == '['Description
TRUEevaluated 187 times by 7 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
FALSEevaluated 14225 times by 41 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • ...
) {
187-14225
643-
644 appendTo += host;-
645 }
executed 187 times by 7 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
else {
187
646-
647-
648 if (options & QUrl::EncodeUnicode && !(options & 0x4000000)
!(options & 0x4000000)Description
TRUEevaluated 3829 times by 17 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-3829
649 appendTo += qt_ACE_do(host, ToAceOnly, AllowLeadingDot);
executed 3829 times by 17 tests: appendTo += qt_ACE_do(host, ToAceOnly, AllowLeadingDot);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
3829
650 else-
651 appendTo += host;
executed 10396 times by 37 tests: appendTo += host;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • ...
10396
652 }-
653}-
654-
655-
656-
657static const QChar *parseIpFuture(QString &host, const QChar *begin, const QChar *end, QUrl::ParsingMode mode)-
658{-
659-
660 static const char acceptable[] =-
661 "!$&'()*+,;="-
662 ":"-
663 "-._~";-
664-
665-
666 const QChar *const origBegin = begin;-
667 if (begin[3].unicode() != '.'
begin[3].unicode() != '.'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QUrl
)
3-28
668 return
executed 3 times by 1 test: return &begin[3];
Executed by:
  • tst_QUrl
&begin[3];
executed 3 times by 1 test: return &begin[3];
Executed by:
  • tst_QUrl
3
669 if ((begin[2].unicode() >= 'A'
begin[2].unicode() >= 'A'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
&& begin[2].unicode() <= 'F'
begin[2].unicode() <= 'F'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
) ||
2-23
670 (begin[2].unicode() >= 'a'
begin[2].unicode() >= 'a'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
&& begin[2].unicode() <= 'f'
begin[2].unicode() <= 'f'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
) ||
1-23
671 (begin[2].unicode() >= '0'
begin[2].unicode() >= '0'Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
&& begin[2].unicode() <= '9'
begin[2].unicode() <= '9'Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
)) {
0-24
672-
673-
674 host += QString::fromRawData(begin, 4);-
675-
676-
677 if (begin[2].unicode() >= 'a'
begin[2].unicode() >= 'a'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_QUrl
)
1-26
678 host[host.length() - 2] = begin[2].unicode() - 0x20;
executed 1 time by 1 test: host[host.length() - 2] = begin[2].unicode() - 0x20;
Executed by:
  • tst_QUrl
1
679-
680 begin += 4;-
681 --end;-
682-
683 QString decoded;-
684 if (mode == QUrl::TolerantMode
mode == QUrl::TolerantModeDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
&& qt_urlRecode(decoded, begin, end, QUrl::FullyDecoded, 0)
qt_urlRecode(d...llyDecoded, 0)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 19 times by 1 test
Evaluated by:
  • tst_QUrl
) {
2-25
685 begin = decoded.constBegin();-
686 end = decoded.constEnd();-
687 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QUrl
6
688-
689 for ( ; begin != end
begin != endDescription
TRUEevaluated 123 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
; ++begin) {
18-123
690 if (begin->unicode() >= 'A'
begin->unicode() >= 'A'Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 83 times by 1 test
Evaluated by:
  • tst_QUrl
&& begin->unicode() <= 'Z'
begin->unicode() <= 'Z'Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QUrl
)
12-83
691 host += *begin;
executed 12 times by 1 test: host += *begin;
Executed by:
  • tst_QUrl
12
692 else if (begin->unicode() >= 'a'
begin->unicode() >= 'a'Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 88 times by 1 test
Evaluated by:
  • tst_QUrl
&& begin->unicode() <= 'z'
begin->unicode() <= 'z'Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
)
7-88
693 host += *begin;
executed 16 times by 1 test: host += *begin;
Executed by:
  • tst_QUrl
16
694 else if (begin->unicode() >= '0'
begin->unicode() >= '0'Description
TRUEevaluated 47 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_QUrl
&& begin->unicode() <= '9'
begin->unicode() <= '9'Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QUrl
)
22-48
695 host += *begin;
executed 22 times by 1 test: host += *begin;
Executed by:
  • tst_QUrl
22
696 else if (begin->unicode() < 0x80
begin->unicode() < 0x80Description
TRUEevaluated 72 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
&& strchr(acceptable, begin->unicode()) != 0
strchr(accepta...nicode()) != 0Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
)
1-72
697 host += *begin;
executed 64 times by 1 test: host += *begin;
Executed by:
  • tst_QUrl
64
698 else-
699 return
executed 9 times by 1 test: return decoded.isEmpty() ? begin : &origBegin[2];
Executed by:
  • tst_QUrl
decoded.isEmpty() ? begin : &origBegin[2];
executed 9 times by 1 test: return decoded.isEmpty() ? begin : &origBegin[2];
Executed by:
  • tst_QUrl
9
700 }-
701 host += QLatin1Char(']');-
702 return
executed 18 times by 1 test: return 0;
Executed by:
  • tst_QUrl
0;
executed 18 times by 1 test: return 0;
Executed by:
  • tst_QUrl
18
703 }-
704 return
executed 1 time by 1 test: return &origBegin[2];
Executed by:
  • tst_QUrl
&origBegin[2];
executed 1 time by 1 test: return &origBegin[2];
Executed by:
  • tst_QUrl
1
705}-
706-
707-
708static const QChar *parseIp6(QString &host, const QChar *begin, const QChar *end, QUrl::ParsingMode mode)-
709{-
710 QIPAddressUtils::IPv6Address address;-
711 const QChar *ret = QIPAddressUtils::parseIp6(address, begin, end);-
712 if (ret
retDescription
TRUEevaluated 44 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 112 times by 7 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
) {
44-112
713-
714 const ushort decodeColon[] = { ushort(':'), 0 };-
715-
716-
717-
718 QString decoded;-
719 if (mode == QUrl::TolerantMode
mode == QUrl::TolerantModeDescription
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
&& qt_urlRecode(decoded, begin, end, 0, decodeColon)
qt_urlRecode(d..., decodeColon)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 32 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
) {
4-36
720-
721-
722 ret = parseIp6(host, decoded.constBegin(), decoded.constEnd(), mode);-
723-
724-
725 return
executed 4 times by 2 tests: return ret ? end : 0;
Executed by:
  • tst_QUrl
  • tst_QUrlInternal
ret ? end : 0;
executed 4 times by 2 tests: return ret ? end : 0;
Executed by:
  • tst_QUrl
  • tst_QUrlInternal
4
726 }-
727-
728-
729 return
executed 40 times by 5 tests: return ret;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
ret;
executed 40 times by 5 tests: return ret;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
40
730 }-
731-
732 host.reserve(host.size() + (end - begin));-
733 host += QLatin1Char('[');-
734 QIPAddressUtils::toString(host, address);-
735 host += QLatin1Char(']');-
736 return
executed 112 times by 7 tests: return 0;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
0;
executed 112 times by 7 tests: return 0;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
112
737}-
738-
739inline bool QUrlPrivate::setHost(const QString &value, int from, int iend, QUrl::ParsingMode mode)-
740{-
741 const QChar *begin = value.constData() + from;-
742 const QChar *end = value.constData() + iend;-
743-
744 const int len = end - begin;-
745 host.clear();-
746 sectionIsPresent |= Host;-
747 if (len == 0
len == 0Description
TRUEevaluated 184 times by 7 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
FALSEevaluated 11801 times by 43 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • ...
)
184-11801
748 return
executed 184 times by 7 tests: return true;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
true;
executed 184 times by 7 tests: return true;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
184
749-
750 if (begin[0].unicode() == '['
begin[0].unicode() == '['Description
TRUEevaluated 184 times by 9 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 11617 times by 43 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileSelector
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • ...
) {
184-11617
751-
752-
753-
754 if (end[-1].unicode() != ']'
end[-1].unicode() != ']'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 183 times by 9 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
) {
1-183
755 setError(HostMissingEndBracket, value);-
756 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
1
757 }-
758-
759 if (len > 5
len > 5Description
TRUEevaluated 126 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 57 times by 6 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
&& begin[1].unicode() == 'v'
begin[1].unicode() == 'v'Description
TRUEevaluated 31 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 95 times by 6 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
) {
31-126
760 const QChar *c = parseIpFuture(host, begin, end, mode);-
761 if (c
cDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
)
13-18
762 setError(InvalidIPvFutureError, value, c - value.constData());
executed 13 times by 1 test: setError(InvalidIPvFutureError, value, c - value.constData());
Executed by:
  • tst_QUrl
13
763 return
executed 31 times by 1 test: return !c;
Executed by:
  • tst_QUrl
!c;
executed 31 times by 1 test: return !c;
Executed by:
  • tst_QUrl
31
764 } else if (begin[1].unicode() == 'v'
begin[1].unicode() == 'v'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 146 times by 9 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
) {
6-146
765 setError(InvalidIPvFutureError, value, from);-
766 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QUrl
6
767-
768 const QChar *c = parseIp6(host, begin + 1, end - 1, mode);-
769 if (!c
!cDescription
TRUEevaluated 112 times by 7 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
FALSEevaluated 40 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
)
40-112
770 return
executed 112 times by 7 tests: return true;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
true;
executed 112 times by 7 tests: return true;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
112
771-
772 if (c == end - 1
c == end - 1Description
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 12 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
)
12-28
773 setError(InvalidIPv6AddressError, value, from);
executed 28 times by 3 tests: setError(InvalidIPv6AddressError, value, from);
Executed by:
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
28
774 else-
775 setError(InvalidCharacterInIPv6Error, value, c - value.constData());
executed 12 times by 4 tests: setError(InvalidCharacterInIPv6Error, value, c - value.constData());
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
12
776 return
executed 40 times by 5 tests: return false;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
false;
executed 40 times by 5 tests: return false;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
40
777 }-
778-
779-
780 QIPAddressUtils::IPv4Address ip4;-
781 if (QIPAddressUtils::parseIp4(ip4, begin, end)
QIPAddressUtil...4, begin, end)Description
TRUEevaluated 1234 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_Spdy
FALSEevaluated 10383 times by 37 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
) {
1234-10383
782-
783 QIPAddressUtils::toString(host, ip4);-
784 return
executed 1234 times by 20 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_Spdy
true;
executed 1234 times by 20 tests: return true;
Executed by:
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QImageReader
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSslSocket
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlSimpleReader
  • tst_Spdy
1234
785 }-
786 QString s;-
787 if (mode == QUrl::TolerantMode
mode == QUrl::TolerantModeDescription
TRUEevaluated 10255 times by 37 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
FALSEevaluated 128 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
&& qt_urlRecode(s, begin, end, 0, 0)
qt_urlRecode(s...in, end, 0, 0)Description
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 10201 times by 37 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
) {
54-10255
788-
789-
790 int pos = s.indexOf(QChar(0x25));-
791 if (pos != -1
pos != -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrlInternal
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QUrl
) {
4-50
792 setError(InvalidRegNameError, s, pos);-
793 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_QUrlInternal
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QUrlInternal
4
794 }-
795-
796-
797 return
executed 50 times by 1 test: return setHost(s, 0, s.length(), QUrl::StrictMode);
Executed by:
  • tst_QUrl
setHost(s, 0, s.length(), QUrl::StrictMode);
executed 50 times by 1 test: return setHost(s, 0, s.length(), QUrl::StrictMode);
Executed by:
  • tst_QUrl
50
798 }-
799-
800 s = qt_ACE_do(QString::fromRawData(begin, len), NormalizeAce, ForbidLeadingDot);-
801 if (s.isEmpty()
s.isEmpty()Description
TRUEevaluated 114 times by 7 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 10215 times by 37 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
) {
114-10215
802 setError(InvalidRegNameError, value);-
803 return
executed 114 times by 7 tests: return false;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
false;
executed 114 times by 7 tests: return false;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
114
804 }-
805-
806-
807 if (QIPAddressUtils::parseIp4(ip4, s.constBegin(), s.constEnd())
QIPAddressUtil... s.constEnd())Description
TRUEnever evaluated
FALSEevaluated 10215 times by 37 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
) {
0-10215
808 QIPAddressUtils::toString(host, ip4);-
809 }
never executed: end of block
else {
0
810 host = s;-
811 }
executed 10215 times by 37 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
10215
812 return
executed 10215 times by 37 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
true;
executed 10215 times by 37 tests: return true;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
10215
813}-
814-
815inline void QUrlPrivate::parse(const QString &url, QUrl::ParsingMode parsingMode)-
816{-
817 sectionIsPresent = 0;-
818 flags = 0;-
819 clearError();-
820-
821-
822 int colon = -1;-
823 int question = -1;-
824 int hash = -1;-
825 const int len = url.length();-
826 const QChar *const begin = url.constData();-
827 const ushort *const data = reinterpret_cast<const ushort *>(begin);-
828-
829 for (int i = 0; i < len
i < lenDescription
TRUEevaluated 250109 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
FALSEevaluated 9845 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
; ++i) {
9845-250109
830 uint uc = data[i];-
831 if (uc == '#'
uc == '#'Description
TRUEevaluated 136 times by 4 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 249973 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
&& hash == -1
hash == -1Description
TRUEevaluated 136 times by 4 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QTextBrowser
  • tst_QUrl
FALSEnever evaluated
) {
0-249973
832 hash = i;-
833-
834-
835 break;
executed 136 times by 4 tests: break;
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QTextBrowser
  • tst_QUrl
136
836 }-
837-
838 if (question == -1
question == -1Description
TRUEevaluated 246645 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
FALSEevaluated 3328 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
) {
3328-246645
839 if (uc == ':'
uc == ':'Description
TRUEevaluated 7343 times by 30 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • ...
FALSEevaluated 239302 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
&& colon == -1
colon == -1Description
TRUEevaluated 6197 times by 30 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • ...
FALSEevaluated 1146 times by 7 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
)
1146-239302
840 colon = i;
executed 6197 times by 30 tests: colon = i;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • ...
6197
841 else if (uc == '?'
uc == '?'Description
TRUEevaluated 345 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 240103 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
)
345-240103
842 question = i;
executed 345 times by 5 tests: question = i;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
345
843 }
executed 246645 times by 34 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
246645
844 }
executed 249973 times by 34 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
249973
845-
846-
847 int hierStart;-
848 if (colon != -1
colon != -1Description
TRUEevaluated 6197 times by 30 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • ...
FALSEevaluated 3784 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlStream
&& setScheme(url, colon, false)
setScheme(url, colon, false)Description
TRUEevaluated 6136 times by 28 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
FALSEevaluated 61 times by 5 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QUrl
) {
61-6197
849 hierStart = colon + 1;-
850 }
executed 6136 times by 28 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
else {
6136
851-
852 scheme.clear();-
853 sectionIsPresent = 0;-
854 hierStart = 0;-
855 }
executed 3845 times by 16 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlStream
3845
856-
857 int pathStart;-
858 int hierEnd = qMin<uint>(qMin<uint>(question, hash), len);-
859 if (hierEnd - hierStart >= 2
hierEnd - hierStart >= 2Description
TRUEevaluated 9308 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
FALSEevaluated 673 times by 13 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
&& data[hierStart] == '/'
data[hierStart] == '/'Description
TRUEevaluated 5623 times by 29 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • ...
FALSEevaluated 3685 times by 13 tests
Evaluated by:
  • tst_QDataUrl
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
&& data[hierStart + 1] == '/'
data[hierStart + 1] == '/'Description
TRUEevaluated 5509 times by 28 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
FALSEevaluated 114 times by 5 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
) {
114-9308
860-
861 int authorityEnd = hierEnd;-
862 for (int i = hierStart + 2; i < authorityEnd
i < authorityEndDescription
TRUEevaluated 86564 times by 28 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
FALSEevaluated 2868 times by 13 tests
Evaluated by:
  • tst_QDataUrl
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
; ++i) {
2868-86564
863 if (data[i] == '/'
data[i] == '/'Description
TRUEevaluated 2641 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
FALSEevaluated 83923 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
) {
2641-83923
864 authorityEnd = i;-
865 break;
executed 2641 times by 22 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
2641
866 }-
867 }
executed 83923 times by 22 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_selftests - unknown status
83923
868-
869 setAuthority(url, hierStart + 2, authorityEnd, parsingMode);-
870-
871-
872 pathStart = authorityEnd;-
873 setPath(url, pathStart, hierEnd);-
874 }
executed 5509 times by 28 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
else {
5509
875 userName.clear();-
876 password.clear();-
877 host.clear();-
878 port = -1;-
879 pathStart = hierStart;-
880-
881 if (hierStart < hierEnd
hierStart < hierEndDescription
TRUEevaluated 3830 times by 16 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QDataUrl
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlStream
FALSEevaluated 642 times by 13 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
)
642-3830
882 setPath(url, hierStart, hierEnd);
executed 3830 times by 16 tests: setPath(url, hierStart, hierEnd);
Executed by:
  • tst_NetworkSelfTest
  • tst_QDataUrl
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlStream
3830
883 else-
884 path.clear();
executed 642 times by 13 tests: path.clear();
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
642
885 }-
886-
887 if (uint(question) < uint(hash)
uint(question) < uint(hash)Description
TRUEevaluated 345 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 9636 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
)
345-9636
888 setQuery(url, question + 1, qMin<uint>(hash, len));
executed 345 times by 5 tests: setQuery(url, question + 1, qMin<uint>(hash, len));
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
345
889-
890 if (hash != -1
hash != -1Description
TRUEevaluated 136 times by 4 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 9845 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
)
136-9845
891 setFragment(url, hash + 1, len);
executed 136 times by 4 tests: setFragment(url, hash + 1, len);
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QTextBrowser
  • tst_QUrl
136
892-
893 if (error
errorDescription
TRUEevaluated 71 times by 2 tests
Evaluated by:
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 9910 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
|| parsingMode == QUrl::TolerantMode
parsingMode ==...::TolerantModeDescription
TRUEevaluated 9841 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
FALSEevaluated 69 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
)
69-9910
894 return;
executed 9912 times by 34 tests: return;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
9912
895-
896-
897-
898-
899-
900-
901-
902 if (!validateComponent(Path, url, pathStart, hierEnd)
!validateCompo...tart, hierEnd)Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
FALSEevaluated 64 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
)
5-64
903 return;
executed 5 times by 2 tests: return;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
5
904 if (uint(question) < uint(hash)
uint(question) < uint(hash)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 63 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
&& !validateComponent(Query, url, question + 1, qMin<uint>(hash, len))
!validateCompo...t>(hash, len))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
)
0-63
905 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QUrl
1
906 if (hash != -1
hash != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 62 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
)
1-62
907 validateComponent(Fragment, url, hash + 1, len);
executed 1 time by 1 test: validateComponent(Fragment, url, hash + 1, len);
Executed by:
  • tst_QUrl
1
908}
executed 63 times by 4 tests: end of block
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
63
909-
910QString QUrlPrivate::toLocalFile(QUrl::FormattingOptions options) const-
911{-
912 QString tmp;-
913 QString ourPath;-
914 appendPath(ourPath, options, QUrlPrivate::Path);-
915-
916-
917 if (!host.isEmpty()
!host.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 10627 times by 15 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
) {
4-10627
918 tmp = QLatin1String("//") + host;-
919-
920-
921-
922-
923 if (!ourPath.isEmpty()
!ourPath.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
&& !ourPath.startsWith(QLatin1Char('/'))
!ourPath.start...tin1Char('/'))Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
)
1-3
924 tmp += QLatin1Char('/');
executed 1 time by 1 test: tmp += QLatin1Char('/');
Executed by:
  • tst_QUrl
1
925 tmp += ourPath;-
926 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QUrl
else {
4
927 tmp = ourPath;-
928-
929-
930-
931-
932-
933 }
executed 10627 times by 15 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
10627
934 return
executed 10631 times by 15 tests: return tmp;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
tmp;
executed 10631 times by 15 tests: return tmp;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
10631
935}-
936inline QString QUrlPrivate::mergePaths(const QString &relativePath) const-
937{-
938-
939-
940-
941 if (!host.isEmpty()
!host.isEmpty()Description
TRUEevaluated 1043 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 2346 times by 4 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& path.isEmpty()
path.isEmpty()Description
TRUEevaluated 1000 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 43 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
)
43-2346
942 return
executed 1000 times by 1 test: return QLatin1Char('/') + relativePath;
Executed by:
  • tst_QUrl
QLatin1Char('/') + relativePath;
executed 1000 times by 1 test: return QLatin1Char('/') + relativePath;
Executed by:
  • tst_QUrl
1000
943-
944-
945-
946-
947-
948-
949 QString newPath;-
950 if (!path.contains(QLatin1Char('/'))
!path.contains...tin1Char('/'))Description
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 2370 times by 4 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
)
19-2370
951 newPath = relativePath;
executed 19 times by 2 tests: newPath = relativePath;
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
19
952 else-
953 newPath = path.leftRef(path.lastIndexOf(QLatin1Char('/')) + 1) + relativePath;
executed 2370 times by 4 tests: newPath = path.leftRef(path.lastIndexOf(QLatin1Char('/')) + 1) + relativePath;
Executed by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
2370
954-
955 return
executed 2389 times by 4 tests: return newPath;
Executed by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
newPath;
executed 2389 times by 4 tests: return newPath;
Executed by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
2389
956}-
957-
958-
959-
960-
961-
962-
963-
964static void removeDotsFromPath(QString *path)-
965{-
966-
967-
968-
969 QChar *out = path->data();-
970 const QChar *in = out;-
971 const QChar *end = out + path->size();-
972-
973-
974-
975-
976 if (path->size() == 1
path->size() == 1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 4482 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& in[0].unicode() == '.'
in[0].unicode() == '.'Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-4482
977 ++
never executed: ++in;
in;
never executed: ++in;
0
978 else if (path->size() == 2
path->size() == 2Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 4483 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& in[0].unicode() == '.'
in[0].unicode() == '.'Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
&& in[1].unicode() == '.'
in[1].unicode() == '.'Description
TRUEnever evaluated
FALSEnever evaluated
)
0-4483
979 in += 2;
never executed: in += 2;
0
980-
981 while (in < end
in < endDescription
TRUEevaluated 37799 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 4482 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
) {
4482-37799
982-
983-
984-
985 if (path->size() >= 2
path->size() >= 2Description
TRUEevaluated 37795 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
&& in[0].unicode() == '.'
in[0].unicode() == '.'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 37794 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& in[1].unicode() == '/'
in[1].unicode() == '/'Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
)
0-37795
986 in += 2;
never executed: in += 2;
0
987 else if (path->size() >= 3
path->size() >= 3Description
TRUEevaluated 37792 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
&& in[0].unicode() == '.'
in[0].unicode() == '.'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 37791 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
1-37792
988 && in[1].unicode() == '.'
in[1].unicode() == '.'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
&& in[2].unicode() == '/'
in[2].unicode() == '/'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
)
0-1
989 in += 3;
executed 1 time by 1 test: in += 3;
Executed by:
  • tst_QUrl
1
990-
991-
992-
993-
994 if (in <= end - 3
in <= end - 3Description
TRUEevaluated 37746 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 53 times by 3 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QUrl
  • tst_QXmlStream
&& in[0].unicode() == '/'
in[0].unicode() == '/'Description
TRUEevaluated 37715 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
&& in[1].unicode() == '.'
in[1].unicode() == '.'Description
TRUEevaluated 46 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEevaluated 37669 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
31-37746
995 && in[2].unicode() == '/'
in[2].unicode() == '/'Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 39 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
) {
7-39
996 in += 2;-
997 continue;
executed 7 times by 1 test: continue;
Executed by:
  • tst_QUrl
7
998 } else if (in == end - 2
in == end - 2Description
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 37763 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& in[0].unicode() == '/'
in[0].unicode() == '/'Description
TRUEevaluated 29 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
&& in[1].unicode() == '.'
in[1].unicode() == '.'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QUrl
) {
0-37763
999 *out++ = QLatin1Char('/');-
1000 in += 2;-
1001 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QUrl
2
1002 }-
1003-
1004-
1005-
1006-
1007-
1008-
1009 if (in <= end - 4
in <= end - 4Description
TRUEevaluated 37733 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 57 times by 3 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QUrl
  • tst_QXmlStream
&& in[0].unicode() == '/'
in[0].unicode() == '/'Description
TRUEevaluated 37702 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
&& in[1].unicode() == '.'
in[1].unicode() == '.'Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEevaluated 37666 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
31-37733
1010 && in[2].unicode() == '.'
in[2].unicode() == '.'Description
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEnever evaluated
&& in[3].unicode() == '/'
in[3].unicode() == '/'Description
TRUEevaluated 35 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
) {
0-36
1011 while (out > path->constData()
out > path->constData()Description
TRUEevaluated 111 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
&& (--
(--out)->unicode() != '/'Description
TRUEevaluated 84 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEevaluated 27 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
out)->unicode() != '/'
(--out)->unicode() != '/'Description
TRUEevaluated 84 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEevaluated 27 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
)
8-111
1012 ;
executed 84 times by 3 tests: ;
Executed by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
84
1013 if (out == path->constData()
out == path->constData()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
&& out->unicode() != '/'
out->unicode() != '/'Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QUrl
)
3-21
1014 ++
executed 3 times by 2 tests: ++in;
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
in;
executed 3 times by 2 tests: ++in;
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
3
1015 in += 3;-
1016 continue;
executed 35 times by 3 tests: continue;
Executed by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
35
1017 } else if (in == end - 3
in == end - 3Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 37749 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& in[0].unicode() == '/'
in[0].unicode() == '/'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
&& in[1].unicode() == '.'
in[1].unicode() == '.'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
0-37749
1018 && in[2].unicode() == '.'
in[2].unicode() == '.'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
) {
1-2
1019 while (out > path->constData()
out > path->constData()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
&& (--
(--out)->unicode() != '/'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
out)->unicode() != '/'
(--out)->unicode() != '/'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-4
1020 ;
executed 2 times by 1 test: ;
Executed by:
  • tst_QUrl
2
1021 if (out->unicode() == '/'
out->unicode() == '/'Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
)
0-2
1022 ++
executed 2 times by 1 test: ++out;
Executed by:
  • tst_QUrl
out;
executed 2 times by 1 test: ++out;
Executed by:
  • tst_QUrl
2
1023 in += 3;-
1024 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_QUrl
2
1025 }-
1026-
1027-
1028-
1029-
1030-
1031-
1032-
1033 *out++ = *in++;-
1034 while (in < end
in < endDescription
TRUEevaluated 267871 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 3480 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& in->unicode() != '/'
in->unicode() != '/'Description
TRUEevaluated 233598 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 34273 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
)
3480-267871
1035 *
executed 233598 times by 5 tests: *out++ = *in++;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
out++ = *in++;
executed 233598 times by 5 tests: *out++ = *in++;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
233598
1036 }
executed 37753 times by 5 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
37753
1037 path->truncate(out - path->constData());-
1038}
executed 4486 times by 5 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
4486
1039-
1040inline QUrlPrivate::ErrorCode QUrlPrivate::validityError(QString *source, int *position) const-
1041{-
1042 ((!(!source == !position)) ? qt_assert("!source == !position",__FILE__,1613) : qt_noop());-
1043 if (error
errorDescription
TRUEevaluated 464 times by 3 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
  • tst_QUrlInternal
FALSEevaluated 15857 times by 30 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • ...
) {
464-15857
1044 if (source
sourceDescription
TRUEevaluated 195 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 269 times by 3 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
  • tst_QUrlInternal
) {
195-269
1045 *source = error->source;-
1046 *position = error->position;-
1047 }
executed 195 times by 1 test: end of block
Executed by:
  • tst_QUrl
195
1048 return
executed 464 times by 3 tests: return error->code;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
  • tst_QUrlInternal
error->code;
executed 464 times by 3 tests: return error->code;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
  • tst_QUrlInternal
464
1049 }-
1050 if (path.isEmpty()
path.isEmpty()Description
TRUEevaluated 4511 times by 18 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • tst_selftests - unknown status
FALSEevaluated 11346 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
|| path.at(0) == QLatin1Char('/')
path.at(0) == QLatin1Char('/')Description
TRUEevaluated 10621 times by 22 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
FALSEevaluated 725 times by 13 tests
Evaluated by:
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
)
725-11346
1051 return
executed 15132 times by 26 tests: return NoError;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
  • ...
NoError;
executed 15132 times by 26 tests: return NoError;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
  • ...
15132
1052 if (sectionIsPresent & QUrlPrivate::Host
sectionIsPrese...lPrivate::HostDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 719 times by 13 tests
Evaluated by:
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHttpNetworkConnection
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
) {
6-719
1053 if (source
sourceDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
) {
1-5
1054 *source = path;-
1055 *position = 0;-
1056 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QUrl
1
1057 return
executed 6 times by 1 test: return AuthorityPresentAndPathIsRelative;
Executed by:
  • tst_QUrl
AuthorityPresentAndPathIsRelative;
executed 6 times by 1 test: return AuthorityPresentAndPathIsRelative;
Executed by:
  • tst_QUrl
6
1058 }-
1059 if (sectionIsPresent & QUrlPrivate::Scheme
sectionIsPrese...rivate::SchemeDescription
TRUEevaluated 360 times by 6 tests
Evaluated by:
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 359 times by 9 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
)
359-360
1060 return
executed 360 times by 6 tests: return NoError;
Executed by:
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
NoError;
executed 360 times by 6 tests: return NoError;
Executed by:
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
360
1061-
1062-
1063 for (int i = 0; i < path.length()
i < path.length()Description
TRUEevaluated 4073 times by 9 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
FALSEevaluated 214 times by 7 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
; ++i) {
214-4073
1064 ushort c = path.at(i).unicode();-
1065 if (c == '/'
c == '/'Description
TRUEevaluated 68 times by 4 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
FALSEevaluated 4005 times by 9 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
) {
68-4005
1066-
1067 return
executed 68 times by 4 tests: return NoError;
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
NoError;
executed 68 times by 4 tests: return NoError;
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
68
1068 }-
1069 if (c == ':'
c == ':'Description
TRUEevaluated 77 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
FALSEevaluated 3928 times by 9 tests
Evaluated by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
) {
77-3928
1070-
1071 if (source
sourceDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 71 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
) {
6-71
1072 *source = path;-
1073 *position = i;-
1074 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QUrl
6
1075 return
executed 77 times by 2 tests: return RelativeUrlPathContainsColonBeforeSlash;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
RelativeUrlPathContainsColonBeforeSlash;
executed 77 times by 2 tests: return RelativeUrlPathContainsColonBeforeSlash;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
77
1076 }-
1077 }
executed 3928 times by 9 tests: end of block
Executed by:
  • tst_QHttpNetworkConnection
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
3928
1078 return
executed 214 times by 7 tests: return NoError;
Executed by:
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
NoError;
executed 214 times by 7 tests: return NoError;
Executed by:
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QVariant
214
1079}-
1080-
1081bool QUrlPrivate::validateComponent(QUrlPrivate::Section section, const QString &input,-
1082 int begin, int end)-
1083{-
1084 static const char forbidden[] = "\"<>\\^`{|}\x7F";-
1085 static const char forbiddenUserInfo[] = ":/?#[]@";-
1086-
1087 ((!(section != Authority && section != Hierarchy && section != FullUrl)) ? qt_assert("section != Authority && section != Hierarchy && section != FullUrl",__FILE__,1683) : qt_noop());-
1088-
1089 const ushort *const data = reinterpret_cast<const ushort *>(input.constData());-
1090 for (uint i = uint(begin); i < uint(end)
i < uint(end)Description
TRUEevaluated 3620 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
FALSEevaluated 147 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
; ++i) {
147-3620
1091 uint uc = data[i];-
1092 if (uc >= 0x80
uc >= 0x80Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3609 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
)
11-3609
1093 continue;
executed 11 times by 1 test: continue;
Executed by:
  • tst_QUrl
11
1094-
1095 bool error = false;-
1096 if ((uc == '%'
uc == '%'Description
TRUEevaluated 33 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
FALSEevaluated 3576 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
&& (uint(end) < i + 2
uint(end) < i + 2Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 32 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
|| !isHex(data[i + 1])
!isHex(data[i + 1])Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
|| !isHex(data[i + 2])
!isHex(data[i + 2])Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
))
1-3576
1097 || uc <= 0x20
uc <= 0x20Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3589 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
|| strchr(forbidden, uc)
strchr(forbidden, uc)Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3575 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
) {
4-3589
1098-
1099 error = true;-
1100 }
executed 34 times by 2 tests: end of block
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
else if (section & UserInfo
section & UserInfoDescription
TRUEevaluated 75 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3500 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
) {
34-3500
1101 if (section == UserInfo
section == UserInfoDescription
TRUEevaluated 53 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QUrl
&& strchr(forbiddenUserInfo + 1, uc)
strchr(forbidd...rInfo + 1, uc)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QUrl
)
1-53
1102 error = true;
executed 1 time by 1 test: error = true;
Executed by:
  • tst_QUrl
1
1103 else if (section != UserInfo
section != UserInfoDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QUrl
&& strchr(forbiddenUserInfo, uc)
strchr(forbiddenUserInfo, uc)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
)
4-52
1104 error = true;
executed 4 times by 1 test: error = true;
Executed by:
  • tst_QUrl
4
1105 }
executed 75 times by 1 test: end of block
Executed by:
  • tst_QUrl
75
1106-
1107 if (!error
!errorDescription
TRUEevaluated 3570 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
FALSEevaluated 39 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
)
39-3570
1108 continue;
executed 3570 times by 4 tests: continue;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
3570
1109-
1110 ErrorCode errorCode = ErrorCode(int(section) << 8);-
1111 if (section == UserInfo
section == UserInfoDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QNetworkRequest
  • tst_QUrl
) {
12-27
1112-
1113 errorCode = InvalidUserNameError;-
1114 for (uint j = uint(begin); j < i
j < iDescription
TRUEevaluated 41 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QUrl
; ++j)
9-41
1115 if (data[j] == ':'
data[j] == ':'Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QUrl
) {
3-38
1116 errorCode = InvalidPasswordError;-
1117 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QUrl
3
1118 }-
1119 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QUrl
12
1120-
1121 setError(errorCode, input, i);-
1122 return
executed 39 times by 2 tests: return false;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
false;
executed 39 times by 2 tests: return false;
Executed by:
  • tst_QNetworkRequest
  • tst_QUrl
39
1123 }-
1124-
1125-
1126 return
executed 147 times by 4 tests: return true;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
true;
executed 147 times by 4 tests: return true;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
147
1127}-
1128QUrl::QUrl(const QString &url, ParsingMode parsingMode) : d(0)-
1129{-
1130 setUrl(url, parsingMode);-
1131}
executed 8717 times by 34 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
8717
1132-
1133-
1134-
1135-
1136QUrl::QUrl() : d(0)-
1137{-
1138}
executed 45822 times by 85 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • ...
45822
1139-
1140-
1141-
1142-
1143QUrl::QUrl(const QUrl &other) : d(other.d)-
1144{-
1145 if (d
dDescription
TRUEevaluated 63243 times by 50 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • ...
FALSEevaluated 10185 times by 24 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
)
10185-63243
1146 d->ref.ref();
executed 63243 times by 50 tests: d->ref.ref();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • ...
63243
1147}
executed 73428 times by 52 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
73428
1148-
1149-
1150-
1151-
1152QUrl::~QUrl()-
1153{-
1154 if (d
dDescription
TRUEevaluated 94490 times by 62 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
FALSEevaluated 37727 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
&& !d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 32655 times by 62 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
FALSEevaluated 61835 times by 52 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QObject
  • ...
)
32655-94490
1155 delete d;
executed 32655 times by 62 tests: delete d;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
32655
1156}
executed 132217 times by 98 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDataUrl
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • ...
132217
1157bool QUrl::isValid() const-
1158{-
1159 if (isEmpty()
isEmpty()Description
TRUEevaluated 318 times by 15 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_qdesktopservices
  • tst_selftests - unknown status
FALSEevaluated 16108 times by 31 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • ...
) {
318-16108
1160-
1161 return
executed 318 times by 15 tests: return false;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_qdesktopservices
  • tst_selftests - unknown status
false;
executed 318 times by 15 tests: return false;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_qdesktopservices
  • tst_selftests - unknown status
318
1162 }-
1163 return
executed 16108 times by 31 tests: return d->validityError() == QUrlPrivate::NoError;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • ...
d->validityError() == QUrlPrivate::NoError;
executed 16108 times by 31 tests: return d->validityError() == QUrlPrivate::NoError;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • tst_QVariant
  • ...
16108
1164}-
1165-
1166-
1167-
1168-
1169-
1170-
1171bool QUrl::isEmpty() const-
1172{-
1173 if (!d
!dDescription
TRUEevaluated 915 times by 17 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_selftests - unknown status
FALSEevaluated 16753 times by 32 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
) return
executed 915 times by 17 tests: return true;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_selftests - unknown status
true;
executed 915 times by 17 tests: return true;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_selftests - unknown status
915-16753
1174 return
executed 16753 times by 32 tests: return d->isEmpty();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
d->isEmpty();
executed 16753 times by 32 tests: return d->isEmpty();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QUrlInternal
  • ...
16753
1175}-
1176void QUrl::clear()-
1177{-
1178 if (d
dDescription
TRUEevaluated 109 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QUrl
FALSEnever evaluated
&& !d->ref.deref()
!d->ref.deref()Description
TRUEevaluated 109 times by 3 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QUrl
FALSEnever evaluated
)
0-109
1179 delete d;
executed 109 times by 3 tests: delete d;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QUrl
109
1180 d = 0;-
1181}
executed 109 times by 3 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QUrl
109
1182void QUrl::setUrl(const QString &url, ParsingMode parsingMode)-
1183{-
1184 if (parsingMode == DecodedMode
parsingMode == DecodedModeDescription
TRUEnever evaluated
FALSEevaluated 9971 times by 34 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
) {
0-9971
1185 QMessageLogger(__FILE__, 1908, __PRETTY_FUNCTION__).warning("QUrl: QUrl::DecodedMode is not permitted when parsing a full URL");-
1186 }
never executed: end of block
else {
0
1187 detach();-
1188 d->parse(url, parsingMode);-
1189 }
executed 9971 times by 34 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • ...
9971
1190}-
1191void QUrl::setScheme(const QString &scheme)-
1192{-
1193 detach();-
1194 d->clearError();-
1195 if (scheme.isEmpty()
scheme.isEmpty()Description
TRUEevaluated 6202 times by 26 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • ...
FALSEevaluated 6050 times by 18 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qfileopenevent
) {
6050-6202
1196-
1197 d->sectionIsPresent &= ~QUrlPrivate::Scheme;-
1198 d->flags &= ~QUrlPrivate::IsLocalFile;-
1199 d->scheme.clear();-
1200 }
executed 6202 times by 26 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • ...
else {
6202
1201 d->setScheme(scheme, scheme.length(), true);-
1202 }
executed 6050 times by 18 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qfileopenevent
6050
1203}-
1204QString QUrl::scheme() const-
1205{-
1206 if (!d
!dDescription
TRUEevaluated 561 times by 10 tests
Evaluated by:
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
  • tst_qdesktopservices
FALSEevaluated 11016 times by 27 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • ...
) return
executed 561 times by 10 tests: return QString();
Executed by:
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
  • tst_qdesktopservices
QString();
executed 561 times by 10 tests: return QString();
Executed by:
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QNetworkAccessManager
  • tst_QNetworkReply
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpSocket
  • tst_Spdy
  • tst_qdesktopservices
561-11016
1207-
1208 return
executed 11016 times by 27 tests: return d->scheme;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • ...
d->scheme;
executed 11016 times by 27 tests: return d->scheme;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • ...
11016
1209}-
1210void QUrl::setAuthority(const QString &authority, ParsingMode mode)-
1211{-
1212 detach();-
1213 d->clearError();-
1214-
1215 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEnever evaluated
FALSEevaluated 31 times by 1 test
Evaluated by:
  • tst_QUrl
) {
0-31
1216 QMessageLogger(__FILE__, 2022, __PRETTY_FUNCTION__).warning("QUrl::setAuthority(): QUrl::DecodedMode is not permitted in this function");-
1217 return;
never executed: return;
0
1218 }-
1219-
1220 d->setAuthority(authority, 0, authority.length(), mode);-
1221 if (authority.isNull()
authority.isNull()Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
) {
13-18
1222-
1223-
1224 d->sectionIsPresent &= ~QUrlPrivate::Authority;-
1225 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_QUrl
13
1226}
executed 31 times by 1 test: end of block
Executed by:
  • tst_QUrl
31
1227QString QUrl::authority(ComponentFormattingOptions options) const-
1228{-
1229 QString result;-
1230 if (!d
!dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 177 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
)
1-177
1231 return
executed 1 time by 1 test: return result;
Executed by:
  • tst_QUrl
result;
executed 1 time by 1 test: return result;
Executed by:
  • tst_QUrl
1
1232-
1233 if (options == QUrl::FullyDecoded
options == QUrl::FullyDecodedDescription
TRUEnever evaluated
FALSEevaluated 177 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
) {
0-177
1234 QMessageLogger(__FILE__, 2056, __PRETTY_FUNCTION__).warning("QUrl::authority(): QUrl::FullyDecoded is not permitted in this function");-
1235 return
never executed: return result;
result;
never executed: return result;
0
1236 }-
1237-
1238 d->appendAuthority(result, options, QUrlPrivate::Authority);-
1239 return
executed 177 times by 3 tests: return result;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
result;
executed 177 times by 3 tests: return result;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
177
1240}-
1241void QUrl::setUserInfo(const QString &userInfo, ParsingMode mode)-
1242{-
1243 detach();-
1244 d->clearError();-
1245 QString trimmed = userInfo.trimmed();-
1246 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEnever evaluated
FALSEevaluated 51 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
) {
0-51
1247 QMessageLogger(__FILE__, 2093, __PRETTY_FUNCTION__).warning("QUrl::setUserInfo(): QUrl::DecodedMode is not permitted in this function");-
1248 return;
never executed: return;
0
1249 }-
1250-
1251 d->setUserInfo(trimmed, 0, trimmed.length());-
1252 if (userInfo.isNull()
userInfo.isNull()Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
) {
10-41
1253-
1254-
1255 d->sectionIsPresent &= ~QUrlPrivate::UserInfo;-
1256 }
executed 41 times by 2 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
else if (mode == StrictMode
mode == StrictModeDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
&& !d->validateComponent(QUrlPrivate::UserInfo, userInfo)
!d->validateCo...nfo, userInfo)Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
) {
0-41
1257 d->sectionIsPresent &= ~QUrlPrivate::UserInfo;-
1258 d->userName.clear();-
1259 d->password.clear();-
1260 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QUrl
5
1261}
executed 51 times by 2 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
51
1262QString QUrl::userInfo(ComponentFormattingOptions options) const-
1263{-
1264 QString result;-
1265 if (!d
!dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2348 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
)
1-2348
1266 return
executed 1 time by 1 test: return result;
Executed by:
  • tst_QUrl
result;
executed 1 time by 1 test: return result;
Executed by:
  • tst_QUrl
1
1267-
1268 if (options == QUrl::FullyDecoded
options == QUrl::FullyDecodedDescription
TRUEnever evaluated
FALSEevaluated 2348 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
) {
0-2348
1269 QMessageLogger(__FILE__, 2130, __PRETTY_FUNCTION__).warning("QUrl::userInfo(): QUrl::FullyDecoded is not permitted in this function");-
1270 return
never executed: return result;
result;
never executed: return result;
0
1271 }-
1272-
1273 d->appendUserInfo(result, options, QUrlPrivate::UserInfo);-
1274 return
executed 2348 times by 9 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
result;
executed 2348 times by 9 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
2348
1275}-
1276void QUrl::setUserName(const QString &userName, ParsingMode mode)-
1277{-
1278 detach();-
1279 d->clearError();-
1280-
1281 QString data = userName;-
1282 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEevaluated 1888 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QUrl
) {
9-1888
1283 parseDecodedComponent(data);-
1284 mode = TolerantMode;-
1285 }
executed 1888 times by 3 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
1888
1286-
1287 d->setUserName(data, 0, data.length());-
1288 if (userName.isNull()
userName.isNull()Description
TRUEevaluated 532 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 1365 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
)
532-1365
1289 d->sectionIsPresent &= ~QUrlPrivate::UserName;
executed 532 times by 3 tests: d->sectionIsPresent &= ~QUrlPrivate::UserName;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
532
1290 else if (mode == StrictMode
mode == StrictModeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1361 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
&& !d->validateComponent(QUrlPrivate::UserName, userName)
!d->validateCo...ame, userName)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
)
0-1361
1291 d->userName.clear();
executed 4 times by 1 test: d->userName.clear();
Executed by:
  • tst_QUrl
4
1292}
executed 1897 times by 3 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
1897
1293QString QUrl::userName(ComponentFormattingOptions options) const-
1294{-
1295 QString result;-
1296 if (d
dDescription
TRUEevaluated 783 times by 3 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-783
1297 d->appendUserName(result, options);
executed 783 times by 3 tests: d->appendUserName(result, options);
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
783
1298 return
executed 785 times by 3 tests: return result;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
result;
executed 785 times by 3 tests: return result;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
785
1299}-
1300void QUrl::setPassword(const QString &password, ParsingMode mode)-
1301{-
1302 detach();-
1303 d->clearError();-
1304-
1305 QString data = password;-
1306 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEevaluated 446 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
) {
7-446
1307 parseDecodedComponent(data);-
1308 mode = TolerantMode;-
1309 }
executed 446 times by 5 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
446
1310-
1311 d->setPassword(data, 0, data.length());-
1312 if (password.isNull()
password.isNull()Description
TRUEevaluated 437 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
)
16-437
1313 d->sectionIsPresent &= ~QUrlPrivate::Password;
executed 437 times by 5 tests: d->sectionIsPresent &= ~QUrlPrivate::Password;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
437
1314 else if (mode == StrictMode
mode == StrictModeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
&& !d->validateComponent(QUrlPrivate::Password, password)
!d->validateCo...ord, password)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
)
0-12
1315 d->password.clear();
executed 4 times by 1 test: d->password.clear();
Executed by:
  • tst_QUrl
4
1316}
executed 453 times by 5 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
453
1317QString QUrl::password(ComponentFormattingOptions options) const-
1318{-
1319 QString result;-
1320 if (d
dDescription
TRUEevaluated 577 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-577
1321 d->appendPassword(result, options);
executed 577 times by 6 tests: d->appendPassword(result, options);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
577
1322 return
executed 579 times by 6 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
result;
executed 579 times by 6 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
579
1323}-
1324void QUrl::setHost(const QString &host, ParsingMode mode)-
1325{-
1326 detach();-
1327 d->clearError();-
1328-
1329 QString data = host;-
1330 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEevaluated 6938 times by 27 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • ...
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
) {
5-6938
1331 parseDecodedComponent(data);-
1332 mode = TolerantMode;-
1333 }
executed 6938 times by 27 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • ...
6938
1334-
1335 if (d->setHost(data, 0, data.length(), mode)
d->setHost(dat...ength(), mode)Description
TRUEevaluated 6862 times by 27 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • ...
FALSEevaluated 81 times by 7 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
) {
81-6862
1336 if (host.isNull()
host.isNull()Description
TRUEevaluated 181 times by 7 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
FALSEevaluated 6681 times by 27 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • ...
)
181-6681
1337 d->sectionIsPresent &= ~QUrlPrivate::Host;
executed 181 times by 7 tests: d->sectionIsPresent &= ~QUrlPrivate::Host;
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
181
1338 }
executed 6862 times by 27 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • ...
else if (!data.startsWith(QLatin1Char('['))
!data.startsWi...tin1Char('['))Description
TRUEevaluated 81 times by 7 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEnever evaluated
) {
0-6862
1339-
1340 ((!(d->error)) ? qt_assert("d->error",__FILE__,2357) : qt_noop());-
1341-
1342 data.prepend(QLatin1Char('['));-
1343 data.append(QLatin1Char(']'));-
1344 if (!d->setHost(data, 0, data.length(), mode)
!d->setHost(da...ength(), mode)Description
TRUEevaluated 27 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 54 times by 5 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
) {
27-54
1345-
1346 if (data.contains(QLatin1Char(':'))
data.contains(...tin1Char(':'))Description
TRUEevaluated 8 times by 4 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrlInternal
  • tst_Spdy
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_QUrl
  • tst_QUrlInternal
) {
8-19
1347-
1348 d->error->code = QUrlPrivate::InvalidIPv6AddressError;-
1349 }
executed 8 times by 4 tests: end of block
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrlInternal
  • tst_Spdy
8
1350 }
executed 27 times by 5 tests: end of block
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUrl
  • tst_QUrlInternal
  • tst_Spdy
else {
27
1351-
1352 d->clearError();-
1353 }
executed 54 times by 5 tests: end of block
Executed by:
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
54
1354 }-
1355}
executed 6943 times by 27 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QUrlInternal
  • ...
6943
1356QString QUrl::host(ComponentFormattingOptions options) const-
1357{-
1358 QString result;-
1359 if (d
dDescription
TRUEevaluated 10012 times by 34 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
FALSEevaluated 2578 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_QUrl
  • tst_QXmlSimpleReader
) {
2578-10012
1360 d->appendHost(result, options);-
1361 if (result.startsWith(QLatin1Char('['))
result.startsW...tin1Char('['))Description
TRUEevaluated 53 times by 7 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
FALSEevaluated 9959 times by 34 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
)
53-9959
1362 result = result.mid(1, result.length() - 2);
executed 53 times by 7 tests: result = result.mid(1, result.length() - 2);
Executed by:
  • tst_QNetworkCookieJar
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QUrl
53
1363 }
executed 10012 times by 34 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
10012
1364 return
executed 12590 times by 34 tests: return result;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
result;
executed 12590 times by 34 tests: return result;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
12590
1365}-
1366void QUrl::setPort(int port)-
1367{-
1368 detach();-
1369 d->clearError();-
1370-
1371 if (port < -1
port < -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 7721 times by 30 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • ...
|| port > 65535
port > 65535Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 7719 times by 30 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • ...
) {
1-7721
1372 d->setError(QUrlPrivate::InvalidPortError, QString::number(port), 0);-
1373 port = -1;-
1374 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QUrl
3
1375-
1376 d->port = port;-
1377}
executed 7722 times by 30 tests: end of block
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextStream
  • ...
7722
1378int QUrl::port(int defaultPort) const-
1379{-
1380 if (!d
!dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 4125 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
) return
executed 1 time by 1 test: return defaultPort;
Executed by:
  • tst_QUrl
defaultPort;
executed 1 time by 1 test: return defaultPort;
Executed by:
  • tst_QUrl
1-4125
1381 return
executed 4125 times by 9 tests: return d->port == -1 ? defaultPort : d->port;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
d->port == -1 ? defaultPort : d->port;
executed 4125 times by 9 tests: return d->port == -1 ? defaultPort : d->port;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
4125
1382}-
1383void QUrl::setPath(const QString &path, ParsingMode mode)-
1384{-
1385 detach();-
1386 d->clearError();-
1387-
1388 QString data = path;-
1389 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEevaluated 5656 times by 16 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qfileopenevent
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUrl
) {
12-5656
1390 parseDecodedComponent(data);-
1391 mode = TolerantMode;-
1392 }
executed 5656 times by 16 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qfileopenevent
5656
1393-
1394 int from = 0;-
1395 while (from < data.length() - 2
from < data.length() - 2Description
TRUEevaluated 5334 times by 11 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
FALSEevaluated 336 times by 10 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
&& data.midRef(from, 2) == QLatin1String("//")
data.midRef(fr...n1String("//")Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 5332 times by 11 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
)
2-5334
1396 ++
executed 2 times by 1 test: ++from;
Executed by:
  • tst_QUrl
from;
executed 2 times by 1 test: ++from;
Executed by:
  • tst_QUrl
2
1397 d->setPath(data, from, data.length());-
1398-
1399-
1400-
1401-
1402-
1403 if (mode == StrictMode
mode == StrictModeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 5664 times by 16 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qfileopenevent
&& !d->validateComponent(QUrlPrivate::Path, path)
!d->validateCo...e::Path, path)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-5664
1404 d->path.clear();
executed 2 times by 1 test: d->path.clear();
Executed by:
  • tst_QUrl
2
1405}
executed 5668 times by 16 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qfileopenevent
5668
1406QString QUrl::path(ComponentFormattingOptions options) const-
1407{-
1408 QString result;-
1409 if (d
dDescription
TRUEevaluated 4771 times by 19 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
FALSEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QTextBrowser
  • tst_QUrl
)
7-4771
1410 d->appendPath(result, options, QUrlPrivate::Path);
executed 4771 times by 19 tests: d->appendPath(result, options, QUrlPrivate::Path);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
4771
1411 return
executed 4778 times by 20 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
result;
executed 4778 times by 20 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
4778
1412}-
1413QString QUrl::fileName(ComponentFormattingOptions options) const-
1414{-
1415 const QString ourPath = path(options);-
1416 const int slash = ourPath.lastIndexOf(QLatin1Char('/'));-
1417 if (slash == -1
slash == -1Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-15
1418 return
executed 2 times by 1 test: return ourPath;
Executed by:
  • tst_QUrl
ourPath;
executed 2 times by 1 test: return ourPath;
Executed by:
  • tst_QUrl
2
1419 return
executed 15 times by 1 test: return ourPath.mid(slash + 1);
Executed by:
  • tst_QUrl
ourPath.mid(slash + 1);
executed 15 times by 1 test: return ourPath.mid(slash + 1);
Executed by:
  • tst_QUrl
15
1420}-
1421bool QUrl::hasQuery() const-
1422{-
1423 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
) return
never executed: return false;
false;
never executed: return false;
0-26
1424 return
executed 26 times by 2 tests: return d->hasQuery();
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
d->hasQuery();
executed 26 times by 2 tests: return d->hasQuery();
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
26
1425}-
1426void QUrl::setQuery(const QString &query, ParsingMode mode)-
1427{-
1428 detach();-
1429 d->clearError();-
1430-
1431 QString data = query;-
1432 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 158 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
) {
1-158
1433 parseDecodedComponent(data);-
1434 mode = TolerantMode;-
1435 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QUrl
1
1436-
1437 d->setQuery(data, 0, data.length());-
1438 if (query.isNull()
query.isNull()Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 152 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
)
7-152
1439 d->sectionIsPresent &= ~QUrlPrivate::Query;
executed 7 times by 1 test: d->sectionIsPresent &= ~QUrlPrivate::Query;
Executed by:
  • tst_QUrl
7
1440 else if (mode == StrictMode
mode == StrictModeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 150 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
&& !d->validateComponent(QUrlPrivate::Query, query)
!d->validateCo...:Query, query)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
)
0-150
1441 d->query.clear();
executed 2 times by 1 test: d->query.clear();
Executed by:
  • tst_QUrl
2
1442}
executed 159 times by 3 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
159
1443void QUrl::setQuery(const QUrlQuery &query)-
1444{-
1445 detach();-
1446 d->clearError();-
1447-
1448-
1449 d->query = query.toString();-
1450 if (query.isEmpty()
query.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1451 d->sectionIsPresent &= ~QUrlPrivate::Query;
never executed: d->sectionIsPresent &= ~QUrlPrivate::Query;
0
1452 else-
1453 d->sectionIsPresent |= QUrlPrivate::Query;
never executed: d->sectionIsPresent |= QUrlPrivate::Query;
0
1454}-
1455QString QUrl::query(ComponentFormattingOptions options) const-
1456{-
1457 QString result;-
1458 if (d
dDescription
TRUEevaluated 189 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
) {
2-189
1459 d->appendQuery(result, options, QUrlPrivate::Query);-
1460 if (d->hasQuery()
d->hasQuery()Description
TRUEevaluated 166 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
&& result.isNull()
result.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 164 times by 3 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
)
2-166
1461 result.detach();
executed 2 times by 1 test: result.detach();
Executed by:
  • tst_QUrl
2
1462 }
executed 189 times by 3 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
189
1463 return
executed 191 times by 3 tests: return result;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
result;
executed 191 times by 3 tests: return result;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
191
1464}-
1465void QUrl::setFragment(const QString &fragment, ParsingMode mode)-
1466{-
1467 detach();-
1468 d->clearError();-
1469-
1470 QString data = fragment;-
1471 if (mode == DecodedMode
mode == DecodedModeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1695 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
) {
1-1695
1472 parseDecodedComponent(data);-
1473 mode = TolerantMode;-
1474 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QUrl
1
1475-
1476 d->setFragment(data, 0, data.length());-
1477 if (fragment.isNull()
fragment.isNull()Description
TRUEevaluated 1029 times by 8 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 667 times by 4 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
)
667-1029
1478 d->sectionIsPresent &= ~QUrlPrivate::Fragment;
executed 1029 times by 8 tests: d->sectionIsPresent &= ~QUrlPrivate::Fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
1029
1479 else if (mode == StrictMode
mode == StrictModeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 665 times by 4 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
&& !d->validateComponent(QUrlPrivate::Fragment, fragment)
!d->validateCo...ent, fragment)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
)
0-665
1480 d->fragment.clear();
executed 2 times by 1 test: d->fragment.clear();
Executed by:
  • tst_QUrl
2
1481}
executed 1696 times by 8 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
1696
1482QString QUrl::fragment(ComponentFormattingOptions options) const-
1483{-
1484 QString result;-
1485 if (d
dDescription
TRUEevaluated 128 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
) {
2-128
1486 d->appendFragment(result, options, QUrlPrivate::Fragment);-
1487 if (d->hasFragment()
d->hasFragment()Description
TRUEevaluated 59 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 69 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
&& result.isNull()
result.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 57 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
)
2-69
1488 result.detach();
executed 2 times by 1 test: result.detach();
Executed by:
  • tst_QUrl
2
1489 }
executed 128 times by 2 tests: end of block
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
128
1490 return
executed 130 times by 2 tests: return result;
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
result;
executed 130 times by 2 tests: return result;
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
130
1491}-
1492bool QUrl::hasFragment() const-
1493{-
1494 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 137 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
) return
never executed: return false;
false;
never executed: return false;
0-137
1495 return
executed 137 times by 6 tests: return d->hasFragment();
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
d->hasFragment();
executed 137 times by 6 tests: return d->hasFragment();
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
137
1496}-
1497QString QUrl::topLevelDomain(ComponentFormattingOptions options) const-
1498{-
1499 QString tld = qTopLevelDomain(host());-
1500 if (options & EncodeUnicode
options & EncodeUnicodeDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
) {
18
1501 return
executed 18 times by 1 test: return qt_ACE_do(tld, ToAceOnly, AllowLeadingDot);
Executed by:
  • tst_QUrl
qt_ACE_do(tld, ToAceOnly, AllowLeadingDot);
executed 18 times by 1 test: return qt_ACE_do(tld, ToAceOnly, AllowLeadingDot);
Executed by:
  • tst_QUrl
18
1502 }-
1503 return
executed 18 times by 1 test: return tld;
Executed by:
  • tst_QUrl
tld;
executed 18 times by 1 test: return tld;
Executed by:
  • tst_QUrl
18
1504}-
1505QUrl QUrl::resolved(const QUrl &relative) const-
1506{-
1507 if (!d
!dDescription
TRUEevaluated 150 times by 7 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
FALSEevaluated 4486 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
) return
executed 150 times by 7 tests: return relative;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
relative;
executed 150 times by 7 tests: return relative;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
150-4486
1508 if (!relative.d
!relative.dDescription
TRUEnever evaluated
FALSEevaluated 4486 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
) return
never executed: return *this;
*this;
never executed: return *this;
0-4486
1509-
1510 QUrl t;-
1511-
1512 if (!relative.d->scheme.isEmpty()
!relative.d->scheme.isEmpty()Description
TRUEevaluated 1084 times by 3 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 3402 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
&& (!relative.isLocalFile()
!relative.isLocalFile()Description
TRUEevaluated 1053 times by 2 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QUrl
FALSEevaluated 31 times by 1 test
Evaluated by:
  • tst_QTextBrowser
|| QDir::isAbsolutePath(relative.d->path)
QDir::isAbsolu...ative.d->path)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QTextBrowser
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_QTextBrowser
)) {
10-3402
1513 t = relative;-
1514 t.detach();-
1515 }
executed 1063 times by 3 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QUrl
else {
1063
1516 if (relative.d->hasAuthority()
relative.d->hasAuthority()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3421 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
) {
2-3421
1517 t = relative;-
1518 t.detach();-
1519 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QUrl
else {
2
1520 t.d = new QUrlPrivate;-
1521-
1522-
1523 t.d->userName = d->userName;-
1524 t.d->password = d->password;-
1525 t.d->host = d->host;-
1526 t.d->port = d->port;-
1527 t.d->sectionIsPresent = d->sectionIsPresent & QUrlPrivate::Authority;-
1528-
1529 if (relative.d->path.isEmpty()
relative.d->path.isEmpty()Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 3416 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
) {
5-3416
1530 t.d->path = d->path;-
1531 if (relative.d->hasQuery()
relative.d->hasQuery()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
) {
1-4
1532 t.d->query = relative.d->query;-
1533 t.d->sectionIsPresent |= QUrlPrivate::Query;-
1534 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QUrl
else if (d->hasQuery()
d->hasQuery()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextBrowser
) {
1-2
1535 t.d->query = d->query;-
1536 t.d->sectionIsPresent |= QUrlPrivate::Query;-
1537 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QUrl
2
1538 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
else {
5
1539 t.d->path = relative.d->path.startsWith(QLatin1Char('/'))
relative.d->pa...tin1Char('/'))Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QUrl
FALSEevaluated 3389 times by 4 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
27-3389
1540 ? relative.d->path-
1541 : d->mergePaths(relative.d->path);-
1542 if (relative.d->hasQuery()
relative.d->hasQuery()Description
TRUEevaluated 25 times by 2 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QUrl
FALSEevaluated 3391 times by 4 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
) {
25-3391
1543 t.d->query = relative.d->query;-
1544 t.d->sectionIsPresent |= QUrlPrivate::Query;-
1545 }
executed 25 times by 2 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QUrl
25
1546 }
executed 3416 times by 5 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
3416
1547 }-
1548 t.d->scheme = d->scheme;-
1549 if (d->hasScheme()
d->hasScheme()Description
TRUEevaluated 3411 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
)
12-3411
1550 t.d->sectionIsPresent |= QUrlPrivate::Scheme;
executed 3411 times by 5 tests: t.d->sectionIsPresent |= QUrlPrivate::Scheme;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
3411
1551 else-
1552 t.d->sectionIsPresent &= ~QUrlPrivate::Scheme;
executed 12 times by 2 tests: t.d->sectionIsPresent &= ~QUrlPrivate::Scheme;
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
12
1553 t.d->flags |= d->flags & QUrlPrivate::IsLocalFile;-
1554 }
executed 3423 times by 5 tests: end of block
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
3423
1555 t.d->fragment = relative.d->fragment;-
1556 if (relative.d->hasFragment()
relative.d->hasFragment()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QTextBrowser
  • tst_QUrl
FALSEevaluated 4476 times by 5 tests
Evaluated by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
)
10-4476
1557 t.d->sectionIsPresent |= QUrlPrivate::Fragment;
executed 10 times by 2 tests: t.d->sectionIsPresent |= QUrlPrivate::Fragment;
Executed by:
  • tst_QTextBrowser
  • tst_QUrl
10
1558 else-
1559 t.d->sectionIsPresent &= ~QUrlPrivate::Fragment;
executed 4476 times by 5 tests: t.d->sectionIsPresent &= ~QUrlPrivate::Fragment;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
4476
1560-
1561 removeDotsFromPath(&t.d->path);-
1562-
1563-
1564-
1565-
1566-
1567-
1568-
1569 return
executed 4486 times by 5 tests: return t;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
t;
executed 4486 times by 5 tests: return t;
Executed by:
  • tst_QNetworkCookieJar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlStream
4486
1570}-
1571bool QUrl::isRelative() const-
1572{-
1573 if (!d
!dDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextBrowser
FALSEevaluated 424 times by 7 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
) return
executed 3 times by 1 test: return true;
Executed by:
  • tst_QTextBrowser
true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_QTextBrowser
3-424
1574 return
executed 424 times by 7 tests: return !d->hasScheme();
Executed by:
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
!d->hasScheme();
executed 424 times by 7 tests: return !d->hasScheme();
Executed by:
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
424
1575}-
1576QString QUrl::url(FormattingOptions options) const-
1577{-
1578 return
executed 43 times by 3 tests: return toString(options);
Executed by:
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
toString(options);
executed 43 times by 3 tests: return toString(options);
Executed by:
  • tst_QDataUrl
  • tst_QNetworkReply
  • tst_QUrl
43
1579}-
1580QString QUrl::toString(FormattingOptions options) const-
1581{-
1582 QString url;-
1583 if (!isValid()
!isValid()Description
TRUEevaluated 149 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
FALSEevaluated 9039 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
) {
149-9039
1584-
1585 return
executed 149 times by 5 tests: return url;
Executed by:
  • tst_QFileDialog2
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
url;
executed 149 times by 5 tests: return url;
Executed by:
  • tst_QFileDialog2
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
149
1586 }-
1587 if (options == QUrl::FullyDecoded
options == QUrl::FullyDecodedDescription
TRUEnever evaluated
FALSEevaluated 9039 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
) {
0-9039
1588 QMessageLogger(__FILE__, 3282, __PRETTY_FUNCTION__).warning("QUrl: QUrl::FullyDecoded is not permitted when reconstructing the full URL");-
1589 options = QUrl::PrettyDecoded;-
1590 }
never executed: end of block
0
1591-
1592-
1593-
1594-
1595-
1596-
1597-
1598 if (options.testFlag(QUrl::PreferLocalFile)
options.testFl...eferLocalFile)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 9032 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
&& !options.testFlag(QUrl::RemovePath)
!options.testF...l::RemovePath)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
0-9032
1599 && (!d->hasQuery()
!d->hasQuery()Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
|| options.testFlag(QUrl::RemoveQuery)
options.testFl...::RemoveQuery)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-7
1600 && (!d->hasFragment()
!d->hasFragment()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
|| options.testFlag(QUrl::RemoveFragment)
options.testFl...emoveFragment)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
)
0-6
1601 && isLocalFile()
isLocalFile()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
) {
2-4
1602 url = d->toLocalFile(options);-
1603 return
executed 4 times by 1 test: return url;
Executed by:
  • tst_QUrl
url;
executed 4 times by 1 test: return url;
Executed by:
  • tst_QUrl
4
1604 }-
1605-
1606-
1607 if (options & DecodeReserved
options & DecodeReservedDescription
TRUEevaluated 35 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 9000 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
)
35-9000
1608 options &= ~EncodeReserved;
executed 35 times by 1 test: options &= ~EncodeReserved;
Executed by:
  • tst_QUrl
35
1609 else-
1610 options |= EncodeReserved;
executed 9000 times by 28 tests: options |= EncodeReserved;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
9000
1611-
1612 if (!(options & QUrl::RemoveScheme)
!(options & QU...:RemoveScheme)Description
TRUEevaluated 7044 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • ...
FALSEevaluated 1991 times by 10 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
&& d->hasScheme()
d->hasScheme()Description
TRUEevaluated 6834 times by 25 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
FALSEevaluated 210 times by 6 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
)
210-7044
1613 url += d->scheme + QLatin1Char(':');
executed 6834 times by 25 tests: url += d->scheme + QLatin1Char(':');
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
6834
1614-
1615 bool pathIsAbsolute = d->path.startsWith(QLatin1Char('/'));-
1616 if (!((options & QUrl::RemoveAuthority) == QUrl::RemoveAuthority)
!((options & Q...moveAuthority)Description
TRUEevaluated 7073 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
FALSEevaluated 1962 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
&& d->hasAuthority()
d->hasAuthority()Description
TRUEevaluated 5452 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
FALSEevaluated 1621 times by 14 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
) {
1621-7073
1617 url += QLatin1String("//");-
1618 d->appendAuthority(url, options, QUrlPrivate::FullUrl);-
1619 }
executed 5452 times by 20 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
else if (isLocalFile()
isLocalFile()Description
TRUEevaluated 1323 times by 9 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_languageChange
FALSEevaluated 2260 times by 15 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
&& pathIsAbsolute
pathIsAbsoluteDescription
TRUEevaluated 1038 times by 9 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_languageChange
FALSEevaluated 285 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QTextBrowser
  • tst_QUrl
  • tst_languageChange
) {
285-5452
1620-
1621 url += QLatin1String("//");-
1622 }
executed 1038 times by 9 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_languageChange
1038
1623-
1624 if (!(options & QUrl::RemovePath)
!(options & QUrl::RemovePath)Description
TRUEevaluated 7129 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
FALSEevaluated 1906 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
)
1906-7129
1625 d->appendPath(url, options, QUrlPrivate::FullUrl);
executed 7129 times by 28 tests: d->appendPath(url, options, QUrlPrivate::FullUrl);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
7129
1626-
1627 if (!(options & QUrl::RemoveQuery)
!(options & QUrl::RemoveQuery)Description
TRUEevaluated 7121 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
FALSEevaluated 1914 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
&& d->hasQuery()
d->hasQuery()Description
TRUEevaluated 535 times by 4 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 6586 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
) {
535-7121
1628 url += QLatin1Char('?');-
1629 d->appendQuery(url, options, QUrlPrivate::FullUrl);-
1630 }
executed 535 times by 4 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_Spdy
535
1631 if (!(options & QUrl::RemoveFragment)
!(options & QU...emoveFragment)Description
TRUEevaluated 6032 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
FALSEevaluated 3003 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_Spdy
&& d->hasFragment()
d->hasFragment()Description
TRUEevaluated 792 times by 4 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
FALSEevaluated 5240 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
  • tst_qfileopenevent
  • tst_selftests - unknown status
) {
792-6032
1632 url += QLatin1Char('#');-
1633 d->appendFragment(url, options, QUrlPrivate::FullUrl);-
1634 }
executed 792 times by 4 tests: end of block
Executed by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QUrl
  • tst_Spdy
792
1635-
1636 return
executed 9035 times by 28 tests: return url;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
url;
executed 9035 times by 28 tests: return url;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_languageChange
  • ...
9035
1637}-
1638QString QUrl::toDisplayString(FormattingOptions options) const-
1639{-
1640 return
executed 227 times by 4 tests: return toString(options | RemovePassword);
Executed by:
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QVariant
toString(options | RemovePassword);
executed 227 times by 4 tests: return toString(options | RemovePassword);
Executed by:
  • tst_QMimeData
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QVariant
227
1641}-
1642QUrl QUrl::adjusted(QUrl::FormattingOptions options) const-
1643{-
1644 if (!isValid()
!isValid()Description
TRUEnever evaluated
FALSEevaluated 66 times by 1 test
Evaluated by:
  • tst_QUrl
) {
0-66
1645-
1646 return
never executed: return QUrl();
QUrl();
never executed: return QUrl();
0
1647 }-
1648 QUrl that = *this;-
1649 if (options & RemoveScheme
options & RemoveSchemeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_QUrl
)
8-58
1650 that.setScheme(QString());
executed 8 times by 1 test: that.setScheme(QString());
Executed by:
  • tst_QUrl
8
1651 if ((
(options & Rem...emoveAuthorityDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_QUrl
options & RemoveAuthority) == RemoveAuthority
(options & Rem...emoveAuthorityDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_QUrl
) {
8-58
1652 that.setAuthority(QString());-
1653 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QUrl
else {
8
1654 if ((
(options & Rem...RemoveUserInfoDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 55 times by 1 test
Evaluated by:
  • tst_QUrl
options & RemoveUserInfo) == RemoveUserInfo
(options & Rem...RemoveUserInfoDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 55 times by 1 test
Evaluated by:
  • tst_QUrl
)
3-55
1655 that.setUserInfo(QString());
executed 3 times by 1 test: that.setUserInfo(QString());
Executed by:
  • tst_QUrl
3
1656 else if (options & RemovePassword
options & RemovePasswordDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QUrl
)
5-50
1657 that.setPassword(QString());
executed 5 times by 1 test: that.setPassword(QString());
Executed by:
  • tst_QUrl
5
1658 if (options & RemovePort
options & RemovePortDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_QUrl
)
4-54
1659 that.setPort(-1);
executed 4 times by 1 test: that.setPort(-1);
Executed by:
  • tst_QUrl
4
1660 }
executed 58 times by 1 test: end of block
Executed by:
  • tst_QUrl
58
1661 if (options & RemoveQuery
options & RemoveQueryDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 62 times by 1 test
Evaluated by:
  • tst_QUrl
)
4-62
1662 that.setQuery(QString());
executed 4 times by 1 test: that.setQuery(QString());
Executed by:
  • tst_QUrl
4
1663 if (options & RemoveFragment
options & RemoveFragmentDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 62 times by 1 test
Evaluated by:
  • tst_QUrl
)
4-62
1664 that.setFragment(QString());
executed 4 times by 1 test: that.setFragment(QString());
Executed by:
  • tst_QUrl
4
1665 if (options & RemovePath
options & RemovePathDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 62 times by 1 test
Evaluated by:
  • tst_QUrl
) {
4-62
1666 that.setPath(QString());-
1667 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QUrl
else if (options & (StripTrailingSlash | RemoveFilename | NormalizePathSegments)
options & (Str...ePathSegments)Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QUrl
) {
4-40
1668 that.detach();-
1669 QString path;-
1670 d->appendPath(path, options | FullyEncoded, QUrlPrivate::Path);-
1671 that.d->setPath(path, 0, path.length());-
1672 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_QUrl
40
1673 return
executed 66 times by 1 test: return that;
Executed by:
  • tst_QUrl
that;
executed 66 times by 1 test: return that;
Executed by:
  • tst_QUrl
66
1674}-
1675QByteArray QUrl::toEncoded(FormattingOptions options) const-
1676{-
1677 options &= ~(FullyDecoded | FullyEncoded);-
1678 QString stringForm = toString(options | FullyEncoded);-
1679 return
executed 5103 times by 21 tests: return stringForm.toLatin1();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
stringForm.toLatin1();
executed 5103 times by 21 tests: return stringForm.toLatin1();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_selftests - unknown status
5103
1680}-
1681QUrl QUrl::fromEncoded(const QByteArray &input, ParsingMode mode)-
1682{-
1683 return
executed 301 times by 6 tests: return QUrl(QString::fromUtf8(input.constData(), input.size()), mode);
Executed by:
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
QUrl(QString::fromUtf8(input.constData(), input.size()), mode);
executed 301 times by 6 tests: return QUrl(QString::fromUtf8(input.constData(), input.size()), mode);
Executed by:
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QUrl
301
1684}-
1685-
1686-
1687-
1688-
1689-
1690QString QUrl::fromPercentEncoding(const QByteArray &input)-
1691{-
1692 QByteArray ba = QByteArray::fromPercentEncoding(input);-
1693 return
executed 39 times by 2 tests: return QString::fromUtf8(ba, ba.size());
Executed by:
  • tst_QUrl
  • tst_QUrlInternal
QString::fromUtf8(ba, ba.size());
executed 39 times by 2 tests: return QString::fromUtf8(ba, ba.size());
Executed by:
  • tst_QUrl
  • tst_QUrlInternal
39
1694}-
1695QByteArray QUrl::toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include)-
1696{-
1697 return
executed 13 times by 1 test: return input.toUtf8().toPercentEncoding(exclude, include);
Executed by:
  • tst_QUrl
input.toUtf8().toPercentEncoding(exclude, include);
executed 13 times by 1 test: return input.toUtf8().toPercentEncoding(exclude, include);
Executed by:
  • tst_QUrl
13
1698}-
1699QString QUrl::fromEncodedComponent_helper(const QByteArray &ba)-
1700{-
1701 return
executed 34 times by 1 test: return qt_urlRecodeByteArray(ba);
Executed by:
  • tst_QUrl
qt_urlRecodeByteArray(ba);
executed 34 times by 1 test: return qt_urlRecodeByteArray(ba);
Executed by:
  • tst_QUrl
34
1702}-
1703QString QUrl::fromAce(const QByteArray &domain)-
1704{-
1705 return
executed 389 times by 8 tests: return qt_ACE_do(QString::fromLatin1(domain), NormalizeAce, ForbidLeadingDot );
Executed by:
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
qt_ACE_do(QString::fromLatin1(domain), NormalizeAce, ForbidLeadingDot );
executed 389 times by 8 tests: return qt_ACE_do(QString::fromLatin1(domain), NormalizeAce, ForbidLeadingDot );
Executed by:
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QHostInfo
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QUrlInternal
389
1706}-
1707QByteArray QUrl::toAce(const QString &domain)-
1708{-
1709 QString result = qt_ACE_do(domain, ToAceOnly, ForbidLeadingDot );-
1710 return
executed 5865 times by 30 tests: return result.toLatin1();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
result.toLatin1();
executed 5865 times by 30 tests: return result.toLatin1();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • ...
5865
1711}-
1712-
1713-
1714-
1715-
1716-
1717-
1718-
1719bool QUrl::operator <(const QUrl &url) const-
1720{-
1721 if (!d
!dDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 155 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
|| !url.d
!url.dDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 147 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
) {
8-155
1722 bool thisIsEmpty = !d
!dDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
|| d->isEmpty()
d->isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
;
3-18
1723 bool thatIsEmpty = !url.d
!url.dDescription
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QUrl
|| url.d->isEmpty()
url.d->isEmpty()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
;
4-17
1724-
1725-
1726 return
executed 26 times by 1 test: return thisIsEmpty && !thatIsEmpty;
Executed by:
  • tst_QUrl
thisIsEmpty && !thatIsEmpty;
executed 26 times by 1 test: return thisIsEmpty && !thatIsEmpty;
Executed by:
  • tst_QUrl
26
1727 }-
1728-
1729 int cmp;-
1730 cmp = d->scheme.compare(url.d->scheme);-
1731 if (cmp != 0
cmp != 0Description
TRUEevaluated 17 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 130 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
17-130
1732 return
executed 17 times by 1 test: return cmp < 0;
Executed by:
  • tst_QUrl
cmp < 0;
executed 17 times by 1 test: return cmp < 0;
Executed by:
  • tst_QUrl
17
1733-
1734 cmp = d->userName.compare(url.d->userName);-
1735 if (cmp != 0
cmp != 0Description
TRUEnever evaluated
FALSEevaluated 130 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
0-130
1736 return
never executed: return cmp < 0;
cmp < 0;
never executed: return cmp < 0;
0
1737-
1738 cmp = d->password.compare(url.d->password);-
1739 if (cmp != 0
cmp != 0Description
TRUEnever evaluated
FALSEevaluated 130 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
0-130
1740 return
never executed: return cmp < 0;
cmp < 0;
never executed: return cmp < 0;
0
1741-
1742 cmp = d->host.compare(url.d->host);-
1743 if (cmp != 0
cmp != 0Description
TRUEnever evaluated
FALSEevaluated 130 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
0-130
1744 return
never executed: return cmp < 0;
cmp < 0;
never executed: return cmp < 0;
0
1745-
1746 if (d->port != url.d->port
d->port != url.d->portDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 122 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
8-122
1747 return
executed 8 times by 1 test: return d->port < url.d->port;
Executed by:
  • tst_QUrl
d->port < url.d->port;
executed 8 times by 1 test: return d->port < url.d->port;
Executed by:
  • tst_QUrl
8
1748-
1749 cmp = d->path.compare(url.d->path);-
1750 if (cmp != 0
cmp != 0Description
TRUEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
FALSEevaluated 101 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
21-101
1751 return
executed 21 times by 3 tests: return cmp < 0;
Executed by:
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
cmp < 0;
executed 21 times by 3 tests: return cmp < 0;
Executed by:
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QUrl
21
1752-
1753 if (d->hasQuery() != url.d->hasQuery()
d->hasQuery() ....d->hasQuery()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 93 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
8-93
1754 return
executed 8 times by 1 test: return url.d->hasQuery();
Executed by:
  • tst_QUrl
url.d->hasQuery();
executed 8 times by 1 test: return url.d->hasQuery();
Executed by:
  • tst_QUrl
8
1755-
1756 cmp = d->query.compare(url.d->query);-
1757 if (cmp != 0
cmp != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 92 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
1-92
1758 return
executed 1 time by 1 test: return cmp < 0;
Executed by:
  • tst_QUrl
cmp < 0;
executed 1 time by 1 test: return cmp < 0;
Executed by:
  • tst_QUrl
1
1759-
1760 if (d->hasFragment() != url.d->hasFragment()
d->hasFragment...>hasFragment()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 84 times by 6 tests
Evaluated by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
)
8-84
1761 return
executed 8 times by 1 test: return url.d->hasFragment();
Executed by:
  • tst_QUrl
url.d->hasFragment();
executed 8 times by 1 test: return url.d->hasFragment();
Executed by:
  • tst_QUrl
8
1762-
1763 cmp = d->fragment.compare(url.d->fragment);-
1764 return
executed 84 times by 6 tests: return cmp < 0;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
cmp < 0;
executed 84 times by 6 tests: return cmp < 0;
Executed by:
  • tst_QPlainTextEdit
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QUrl
84
1765}-
1766-
1767-
1768-
1769-
1770-
1771bool QUrl::operator ==(const QUrl &url) const-
1772{-
1773 if (!d
!dDescription
TRUEevaluated 277 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
FALSEevaluated 3019 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
&& !url.d
!url.dDescription
TRUEevaluated 133 times by 9 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
FALSEevaluated 144 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
)
133-3019
1774 return
executed 133 times by 9 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
true;
executed 133 times by 9 tests: return true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
133
1775 if (!d
!dDescription
TRUEevaluated 144 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
FALSEevaluated 3019 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
)
144-3019
1776 return
executed 144 times by 7 tests: return url.d->isEmpty();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
url.d->isEmpty();
executed 144 times by 7 tests: return url.d->isEmpty();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
144
1777 if (!url.d
!url.dDescription
TRUEevaluated 375 times by 7 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_selftests - unknown status
FALSEevaluated 2644 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
)
375-2644
1778 return
executed 375 times by 7 tests: return d->isEmpty();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_selftests - unknown status
d->isEmpty();
executed 375 times by 7 tests: return d->isEmpty();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_selftests - unknown status
375
1779-
1780-
1781-
1782-
1783-
1784 int mask = QUrlPrivate::FullUrl;-
1785 if (isLocalFile()
isLocalFile()Description
TRUEevaluated 1968 times by 10 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_languageChange
FALSEevaluated 676 times by 15 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_selftests - unknown status
)
676-1968
1786 mask &= ~QUrlPrivate::Host;
executed 1968 times by 10 tests: mask &= ~QUrlPrivate::Host;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_languageChange
1968
1787 return
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
(d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1788 d->scheme == url.d->scheme &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1789 d->userName == url.d->userName &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1790 d->password == url.d->password &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1791 d->host == url.d->host &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1792 d->port == url.d->port &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1793 d->path == url.d->path &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1794 d->query == url.d->query &&
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1795 d->fragment == url.d->fragment;
executed 2644 times by 20 tests: return (d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask) && d->scheme == url.d->scheme && d->userName == url.d->userName && d->password == url.d->password && d->host == url.d->host && d->port == url.d->port && d->path == url.d->path && d->query == url.d->query && d->fragment == url.d->fragment;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QMimeData
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QVariant
  • tst_languageChange
  • tst_selftests - unknown status
2644
1796}-
1797bool QUrl::matches(const QUrl &url, FormattingOptions options) const-
1798{-
1799 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QUrl
&& !url.d
!url.dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-34
1800 return
never executed: return true;
true;
never executed: return true;
0
1801 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-34
1802 return
never executed: return url.d->isEmpty();
url.d->isEmpty();
never executed: return url.d->isEmpty();
0
1803 if (!url.d
!url.dDescription
TRUEnever evaluated
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-34
1804 return
never executed: return d->isEmpty();
d->isEmpty();
never executed: return d->isEmpty();
0
1805-
1806-
1807-
1808-
1809-
1810 int mask = QUrlPrivate::FullUrl;-
1811 if (isLocalFile()
isLocalFile()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-32
1812 mask &= ~QUrlPrivate::Host;
executed 2 times by 1 test: mask &= ~QUrlPrivate::Host;
Executed by:
  • tst_QUrl
2
1813-
1814 if (options & QUrl::RemoveScheme
options & QUrl::RemoveSchemeDescription
TRUEnever evaluated
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-34
1815 mask &= ~QUrlPrivate::Scheme;
never executed: mask &= ~QUrlPrivate::Scheme;
0
1816 else if (d->scheme != url.d->scheme
d->scheme != url.d->schemeDescription
TRUEnever evaluated
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-34
1817 return
never executed: return false;
false;
never executed: return false;
0
1818-
1819 if (options & QUrl::RemovePassword
options & QUrl::RemovePasswordDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QUrl
)
10-24
1820 mask &= ~QUrlPrivate::Password;
executed 10 times by 1 test: mask &= ~QUrlPrivate::Password;
Executed by:
  • tst_QUrl
10
1821 else if (d->password != url.d->password
d->password != url.d->passwordDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
)
1-23
1822 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
1
1823-
1824 if (options & QUrl::RemoveUserInfo
options & QUrl::RemoveUserInfoDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
)
10-23
1825 mask &= ~QUrlPrivate::UserName;
executed 10 times by 1 test: mask &= ~QUrlPrivate::UserName;
Executed by:
  • tst_QUrl
10
1826 else if (d->userName != url.d->userName
d->userName != url.d->userNameDescription
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-23
1827 return
never executed: return false;
false;
never executed: return false;
0
1828-
1829 if (options & QUrl::RemovePort
options & QUrl::RemovePortDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QUrl
)
8-25
1830 mask &= ~QUrlPrivate::Port;
executed 8 times by 1 test: mask &= ~QUrlPrivate::Port;
Executed by:
  • tst_QUrl
8
1831 else if (d->port != url.d->port
d->port != url.d->portDescription
TRUEnever evaluated
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-25
1832 return
never executed: return false;
false;
never executed: return false;
0
1833-
1834 if (options & QUrl::RemoveAuthority
options & QUrl...emoveAuthorityDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QUrl
)
10-23
1835 mask &= ~QUrlPrivate::Host;
executed 10 times by 1 test: mask &= ~QUrlPrivate::Host;
Executed by:
  • tst_QUrl
10
1836 else if (d->host != url.d->host
d->host != url.d->hostDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 21 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-21
1837 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QUrl
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QUrl
2
1838-
1839 if (options & QUrl::RemoveQuery
options & QUrl::RemoveQueryDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QUrl
)
4-27
1840 mask &= ~QUrlPrivate::Query;
executed 4 times by 1 test: mask &= ~QUrlPrivate::Query;
Executed by:
  • tst_QUrl
4
1841 else if (d->query != url.d->query
d->query != url.d->queryDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-25
1842 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QUrl
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QUrl
2
1843-
1844 if (options & QUrl::RemoveFragment
options & QUrl::RemoveFragmentDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 26 times by 1 test
Evaluated by:
  • tst_QUrl
)
3-26
1845 mask &= ~QUrlPrivate::Fragment;
executed 3 times by 1 test: mask &= ~QUrlPrivate::Fragment;
Executed by:
  • tst_QUrl
3
1846 else if (d->fragment != url.d->fragment
d->fragment != url.d->fragmentDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QUrl
)
1-25
1847 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
1
1848-
1849 if ((
(d->sectionIsP...resent & mask)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QUrl
d->sectionIsPresent & mask) != (url.d->sectionIsPresent & mask)
(d->sectionIsP...resent & mask)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QUrl
)
1-27
1850 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QUrl
1
1851-
1852 if (options & QUrl::RemovePath
options & QUrl::RemovePathDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QUrl
)
5-22
1853 return
executed 5 times by 1 test: return true;
Executed by:
  • tst_QUrl
true;
executed 5 times by 1 test: return true;
Executed by:
  • tst_QUrl
5
1854-
1855-
1856 QString path1;-
1857 d->appendPath(path1, options, QUrlPrivate::Path);-
1858 QString path2;-
1859 url.d->appendPath(path2, options, QUrlPrivate::Path);-
1860 return
executed 22 times by 1 test: return path1 == path2;
Executed by:
  • tst_QUrl
path1 == path2;
executed 22 times by 1 test: return path1 == path2;
Executed by:
  • tst_QUrl
22
1861}-
1862-
1863-
1864-
1865-
1866-
1867bool QUrl::operator !=(const QUrl &url) const-
1868{-
1869 return
executed 120 times by 4 tests: return !(*this == url);
Executed by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
!(*this == url);
executed 120 times by 4 tests: return !(*this == url);
Executed by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
120
1870}-
1871-
1872-
1873-
1874-
1875QUrl &QUrl::operator =(const QUrl &url)-
1876{-
1877 if (!d
!dDescription
TRUEevaluated 9279 times by 21 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
FALSEevaluated 2607 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QXmlStream
  • tst_languageChange
) {
2607-9279
1878 if (url.d
url.dDescription
TRUEevaluated 7068 times by 20 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
FALSEevaluated 2211 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
) {
2211-7068
1879 url.d->ref.ref();-
1880 d = url.d;-
1881 }
executed 7068 times by 20 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
7068
1882 }
executed 9279 times by 21 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
else {
9279
1883 if (url.d
url.dDescription
TRUEevaluated 2499 times by 7 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QXmlStream
  • tst_languageChange
FALSEevaluated 108 times by 2 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
)
108-2499
1884 qAtomicAssign(d, url.d);
executed 2499 times by 7 tests: qAtomicAssign(d, url.d);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QXmlStream
  • tst_languageChange
2499
1885 else-
1886 clear();
executed 108 times by 2 tests: clear();
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
108
1887 }-
1888 return
executed 11886 times by 21 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
*this;
executed 11886 times by 21 tests: return *this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QUrl
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_languageChange
  • tst_qdesktopservices
11886
1889}-
1890-
1891-
1892-
1893-
1894QUrl &QUrl::operator =(const QString &url)-
1895{-
1896 if (url.isEmpty()
url.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QNetworkReply
) {
0-10
1897 clear();-
1898 }
never executed: end of block
else {
0
1899 detach();-
1900 d->parse(url, TolerantMode);-
1901 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_QNetworkReply
10
1902 return
executed 10 times by 1 test: return *this;
Executed by:
  • tst_QNetworkReply
*this;
executed 10 times by 1 test: return *this;
Executed by:
  • tst_QNetworkReply
10
1903}-
1904void QUrl::detach()-
1905{-
1906 if (!d
!dDescription
TRUEevaluated 20881 times by 55 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
FALSEevaluated 28079 times by 46 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
)
20881-28079
1907 d = new QUrlPrivate;
executed 20881 times by 55 tests: d = new QUrlPrivate;
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • ...
20881
1908 else-
1909 qAtomicDetach(d);
executed 28079 times by 46 tests: qAtomicDetach(d);
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QMetaType
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
28079
1910}-
1911-
1912-
1913-
1914-
1915bool QUrl::isDetached() const-
1916{-
1917 return
never executed: return !d || d->ref.load() == 1;
!d || d->ref.load() == 1;
never executed: return !d || d->ref.load() == 1;
0
1918}-
1919QUrl QUrl::fromLocalFile(const QString &localFile)-
1920{-
1921 QUrl url;-
1922 if (localFile.isEmpty()
localFile.isEmpty()Description
TRUEevaluated 209 times by 4 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QUrl
  • tst_languageChange
FALSEevaluated 5328 times by 11 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
)
209-5328
1923 return
executed 209 times by 4 tests: return url;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QUrl
  • tst_languageChange
url;
executed 209 times by 4 tests: return url;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QUrl
  • tst_languageChange
209
1924 QString scheme = fileScheme();-
1925 QString deslashified = QDir::fromNativeSeparators(localFile);-
1926-
1927-
1928 if (deslashified.length() > 1
deslashified.length() > 1Description
TRUEevaluated 5263 times by 11 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
FALSEevaluated 65 times by 4 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QSidebar
  • tst_QUrl
&& deslashified.at(1) == QLatin1Char(':')
deslashified.a...atin1Char(':')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 5262 times by 11 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
&& deslashified.at(0) != QLatin1Char('/')
deslashified.a...atin1Char('/')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
) {
0-5263
1929 deslashified.prepend(QLatin1Char('/'));-
1930 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QUrl
else if (deslashified.startsWith(QLatin1String("//"))
deslashified.s...1String("//"))Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 5323 times by 11 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
) {
1-5323
1931-
1932 int indexOfPath = deslashified.indexOf(QLatin1Char('/'), 2);-
1933 QString hostSpec = deslashified.mid(2, indexOfPath - 2);-
1934-
1935 if (hostSpec.endsWith(webDavSslTag(), Qt::CaseInsensitive)
hostSpec.endsW...seInsensitive)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
) {
1-3
1936 hostSpec.chop(4);-
1937 scheme = webDavScheme();-
1938 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QUrl
1
1939 url.setHost(hostSpec);-
1940-
1941 if (indexOfPath > 2
indexOfPath > 2Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
)
1-3
1942 deslashified = deslashified.right(deslashified.length() - indexOfPath);
executed 3 times by 1 test: deslashified = deslashified.right(deslashified.length() - indexOfPath);
Executed by:
  • tst_QUrl
3
1943 else-
1944 deslashified.clear();
executed 1 time by 1 test: deslashified.clear();
Executed by:
  • tst_QUrl
1
1945 }-
1946-
1947 url.setScheme(scheme);-
1948 url.setPath(deslashified, DecodedMode);-
1949 return
executed 5328 times by 11 tests: return url;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
url;
executed 5328 times by 11 tests: return url;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
5328
1950}-
1951QString QUrl::toLocalFile() const-
1952{-
1953-
1954 if (!isLocalFile()
!isLocalFile()Description
TRUEevaluated 1120 times by 8 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
FALSEevaluated 10627 times by 15 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
)
1120-10627
1955 return
executed 1120 times by 8 tests: return QString();
Executed by:
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
QString();
executed 1120 times by 8 tests: return QString();
Executed by:
  • tst_QFiledialog
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
1120
1956-
1957 return
executed 10627 times by 15 tests: return d->toLocalFile(QUrl::FullyDecoded);
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
d->toLocalFile(QUrl::FullyDecoded);
executed 10627 times by 15 tests: return d->toLocalFile(QUrl::FullyDecoded);
Executed by:
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QUrl
  • tst_QXmlStream
  • tst_languageChange
  • tst_qfileopenevent
10627
1958}-
1959bool QUrl::isLocalFile() const-
1960{-
1961 return
executed 21421 times by 35 tests: return d && d->isLocalFile();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
d && d->isLocalFile();
executed 21421 times by 35 tests: return d && d->isLocalFile();
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDataUrl
  • tst_QFileDialog2
  • tst_QFileSelector
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeData
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlainTextEdit
  • tst_QSidebar
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextDocument
  • ...
21421
1962}-
1963-
1964-
1965-
1966-
1967-
1968-
1969bool QUrl::isParentOf(const QUrl &childUrl) const-
1970{-
1971 QString childPath = childUrl.path();-
1972-
1973 if (!d
!dDescription
TRUEnever evaluated
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-5
1974 return
never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/'));
((childUrl.scheme().isEmpty())
never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/'));
0
1975 && (childUrl.authority().isEmpty())
never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/'));
0
1976 && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/'));
never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/'));
0
1977-
1978 QString ourPath = path();-
1979-
1980 return
executed 5 times by 1 test: return ((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme()) && (childUrl.authority().isEmpty() || authority() == childUrl.authority()) && childPath.startsWith(ourPath) && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length()) || (!ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
Executed by:
  • tst_QUrl
((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme())
executed 5 times by 1 test: return ((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme()) && (childUrl.authority().isEmpty() || authority() == childUrl.authority()) && childPath.startsWith(ourPath) && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length()) || (!ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
Executed by:
  • tst_QUrl
5
1981 && (childUrl.authority().isEmpty() || authority() == childUrl.authority())
executed 5 times by 1 test: return ((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme()) && (childUrl.authority().isEmpty() || authority() == childUrl.authority()) && childPath.startsWith(ourPath) && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length()) || (!ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
Executed by:
  • tst_QUrl
5
1982 && childPath.startsWith(ourPath)
executed 5 times by 1 test: return ((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme()) && (childUrl.authority().isEmpty() || authority() == childUrl.authority()) && childPath.startsWith(ourPath) && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length()) || (!ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
Executed by:
  • tst_QUrl
5
1983 && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length())
executed 5 times by 1 test: return ((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme()) && (childUrl.authority().isEmpty() || authority() == childUrl.authority()) && childPath.startsWith(ourPath) && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length()) || (!ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
Executed by:
  • tst_QUrl
5
1984 || (!ourPath.endsWith(QLatin1Char('/'))
executed 5 times by 1 test: return ((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme()) && (childUrl.authority().isEmpty() || authority() == childUrl.authority()) && childPath.startsWith(ourPath) && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length()) || (!ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
Executed by:
  • tst_QUrl
5
1985 && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
executed 5 times by 1 test: return ((childUrl.scheme().isEmpty() || d->scheme == childUrl.scheme()) && (childUrl.authority().isEmpty() || authority() == childUrl.authority()) && childPath.startsWith(ourPath) && ((ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length()) || (!ourPath.endsWith(QLatin1Char('/')) && childPath.length() > ourPath.length() && childPath.at(ourPath.length()) == QLatin1Char('/'))));
Executed by:
  • tst_QUrl
5
1986}-
1987QDataStream &operator<<(QDataStream &out, const QUrl &url)-
1988{-
1989 QByteArray u;-
1990 if (url.isValid()
url.isValid()Description
TRUEevaluated 102 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QUrl
  • tst_QVariant
)
5-102
1991 u = url.toEncoded();
executed 102 times by 6 tests: u = url.toEncoded();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
102
1992 out << u;-
1993 return
executed 107 times by 8 tests: return out;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QVariant
out;
executed 107 times by 8 tests: return out;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QVariant
107
1994}-
1995QDataStream &operator>>(QDataStream &in, QUrl &url)-
1996{-
1997 QByteArray u;-
1998 in >> u;-
1999 url.setUrl(QString::fromLatin1(u));-
2000 return
executed 106 times by 8 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QVariant
in;
executed 106 times by 8 tests: return in;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileDialog2
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QUrl
  • tst_QVariant
106
2001}-
2002-
2003-
2004-
2005QDebug operator<<(QDebug d, const QUrl &url)-
2006{-
2007 QDebugStateSaver saver(d);-
2008 d.nospace() << "QUrl(" << url.toDisplayString() << ')';-
2009 return
executed 217 times by 2 tests: return d;
Executed by:
  • tst_QNetworkReply
  • tst_QVariant
d;
executed 217 times by 2 tests: return d;
Executed by:
  • tst_QNetworkReply
  • tst_QVariant
217
2010}-
2011-
2012-
2013static QString errorMessage(QUrlPrivate::ErrorCode errorCode, const QString &errorSource, int errorPosition)-
2014{-
2015 QChar c = uint(errorPosition) < uint(errorSource.length())
uint(errorPosi...urce.length())Description
TRUEevaluated 108 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 94 times by 1 test
Evaluated by:
  • tst_QUrl
?
94-108
2016 errorSource.at(errorPosition) : QChar(QChar::Null);-
2017-
2018 switch (errorCode) {-
2019 case
never executed: case QUrlPrivate::NoError:
QUrlPrivate::NoError:
never executed: case QUrlPrivate::NoError:
0
2020 ((!(false)) ? qt_assert_x("QUrl::errorString", "Impossible: QUrl::errorString should have treated this condition",-
2021 __FILE__-
2022 ,-
2023 3955-
2024 ) : qt_noop())-
2025 ;-
2026 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,3956) : qt_noop()); __builtin_unreachable(); } while (0);-
2027 return
never executed: return QString();
QString();
never executed: return QString();
0
2028-
2029 case
never executed: case QUrlPrivate::InvalidSchemeError:
QUrlPrivate::InvalidSchemeError:
never executed: case QUrlPrivate::InvalidSchemeError:
{
0
2030 QString msg = ([]() -> QString { enum { Size = sizeof(u"" "Invalid scheme (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid scheme (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
0
2031 return
never executed: return msg.arg(c);
msg.arg(c);
never executed: return msg.arg(c);
0
2032 }-
2033-
2034 case
executed 10 times by 1 test: case QUrlPrivate::InvalidUserNameError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidUserNameError:
executed 10 times by 1 test: case QUrlPrivate::InvalidUserNameError:
Executed by:
  • tst_QUrl
10
2035 return
executed 10 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid user name (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid user name (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid user name (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid user name (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 10 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 10 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()))
executed 10 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid user name (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid user name (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
10
2036 .arg(c);
executed 10 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid user name (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid user name (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
10
2037-
2038 case
executed 5 times by 1 test: case QUrlPrivate::InvalidPasswordError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidPasswordError:
executed 5 times by 1 test: case QUrlPrivate::InvalidPasswordError:
Executed by:
  • tst_QUrl
5
2039 return
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid password (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid password (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid password (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid password (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()))
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid password (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid password (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
5
2040 .arg(c);
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid password (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid password (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
5
2041-
2042 case
executed 89 times by 1 test: case QUrlPrivate::InvalidRegNameError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidRegNameError:
executed 89 times by 1 test: case QUrlPrivate::InvalidRegNameError:
Executed by:
  • tst_QUrl
89
2043 if (errorPosition != -1
errorPosition != -1Description
TRUEnever evaluated
FALSEevaluated 89 times by 1 test
Evaluated by:
  • tst_QUrl
)
0-89
2044 return
never executed: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid hostname (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid hostname (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid hostname (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid hostname (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}()))
never executed: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid hostname (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid hostname (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
0
2045 .arg(c);
never executed: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid hostname (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid hostname (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
0
2046 else-
2047 return
executed 89 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid hostname (contains invalid characters)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid hostname (contains invalid characters)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Invalid hostname (contains invalid characters)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid hostname (contains invalid characters)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 89 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 89 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 89 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid hostname (contains invalid characters)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid hostname (contains invalid characters)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
89
2048 case
never executed: case QUrlPrivate::InvalidIPv4AddressError:
QUrlPrivate::InvalidIPv4AddressError:
never executed: case QUrlPrivate::InvalidIPv4AddressError:
0
2049 return
never executed: return QString();
QString();
never executed: return QString();
0
2050 case
executed 5 times by 1 test: case QUrlPrivate::InvalidIPv6AddressError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidIPv6AddressError:
executed 5 times by 1 test: case QUrlPrivate::InvalidIPv6AddressError:
Executed by:
  • tst_QUrl
5
2051 return
executed 5 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid IPv6 address")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPv6 address" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Invalid IPv6 address")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPv6 address" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 5 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid IPv6 address")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPv6 address" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
5
2052 case
executed 15 times by 1 test: case QUrlPrivate::InvalidCharacterInIPv6Error:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidCharacterInIPv6Error:
executed 15 times by 1 test: case QUrlPrivate::InvalidCharacterInIPv6Error:
Executed by:
  • tst_QUrl
15
2053 return
executed 15 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid IPv6 address (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPv6 address (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(c);
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Invalid IPv6 address (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPv6 address (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 15 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 15 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()).arg(c);
executed 15 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid IPv6 address (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPv6 address (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(c);
Executed by:
  • tst_QUrl
15
2054 case
executed 25 times by 1 test: case QUrlPrivate::InvalidIPvFutureError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidIPvFutureError:
executed 25 times by 1 test: case QUrlPrivate::InvalidIPvFutureError:
Executed by:
  • tst_QUrl
25
2055 return
executed 25 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid IPvFuture address (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPvFuture address (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(c);
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Invalid IPvFuture address (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPvFuture address (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 25 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 25 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()).arg(c);
executed 25 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid IPvFuture address (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid IPvFuture address (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }()).arg(c);
Executed by:
  • tst_QUrl
25
2056 case
executed 5 times by 1 test: case QUrlPrivate::HostMissingEndBracket:
Executed by:
  • tst_QUrl
QUrlPrivate::HostMissingEndBracket:
executed 5 times by 1 test: case QUrlPrivate::HostMissingEndBracket:
Executed by:
  • tst_QUrl
5
2057 return
executed 5 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Expected ']' to match '[' in hostname")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Expected ']' to match '[' in hostname" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Expected ']' to match '[' in hostname")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Expected ']' to match '[' in hostname" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 5 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Expected ']' to match '[' in hostname")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Expected ']' to match '[' in hostname" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
5
2058-
2059 case
executed 21 times by 1 test: case QUrlPrivate::InvalidPortError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidPortError:
executed 21 times by 1 test: case QUrlPrivate::InvalidPortError:
Executed by:
  • tst_QUrl
21
2060 return
executed 21 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid port or port number out of range")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid port or port number out of range" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Invalid port or port number out of range")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid port or port number out of range" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 21 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 21 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 21 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Invalid port or port number out of range")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid port or port number out of range" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
21
2061 case
never executed: case QUrlPrivate::PortEmptyError:
QUrlPrivate::PortEmptyError:
never executed: case QUrlPrivate::PortEmptyError:
0
2062 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "Port field was empty")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Port field was empty" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "Port field was empty")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Port field was empty" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "Port field was empty")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Port field was empty" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
2063-
2064 case
executed 10 times by 1 test: case QUrlPrivate::InvalidPathError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidPathError:
executed 10 times by 1 test: case QUrlPrivate::InvalidPathError:
Executed by:
  • tst_QUrl
10
2065 return
executed 10 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid path (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid path (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid path (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid path (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 10 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 10 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()))
executed 10 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid path (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid path (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
10
2066 .arg(c);
executed 10 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid path (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid path (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
10
2067-
2068 case
executed 5 times by 1 test: case QUrlPrivate::InvalidQueryError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidQueryError:
executed 5 times by 1 test: case QUrlPrivate::InvalidQueryError:
Executed by:
  • tst_QUrl
5
2069 return
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid query (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid query (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid query (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid query (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()))
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid query (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid query (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
5
2070 .arg(c);
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid query (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid query (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
5
2071-
2072 case
executed 5 times by 1 test: case QUrlPrivate::InvalidFragmentError:
Executed by:
  • tst_QUrl
QUrlPrivate::InvalidFragmentError:
executed 5 times by 1 test: case QUrlPrivate::InvalidFragmentError:
Executed by:
  • tst_QUrl
5
2073 return
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid fragment (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid fragment (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid fragment (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid fragment (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 5 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()))
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid fragment (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid fragment (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
5
2074 .arg(c);
executed 5 times by 1 test: return QString(([]() -> QString { enum { Size = sizeof(u"" "Invalid fragment (character '%1' not permitted)")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Invalid fragment (character '%1' not permitted)" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }())) .arg(c);
Executed by:
  • tst_QUrl
5
2075-
2076 case
executed 1 time by 1 test: case QUrlPrivate::AuthorityPresentAndPathIsRelative:
Executed by:
  • tst_QUrl
QUrlPrivate::AuthorityPresentAndPathIsRelative:
executed 1 time by 1 test: case QUrlPrivate::AuthorityPresentAndPathIsRelative:
Executed by:
  • tst_QUrl
1
2077 return
executed 1 time by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Path component is relative and authority is present")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Path component is relative and authority is present" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Path component is relative and authority is present")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Path component is relative and authority is present" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 1 time by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Path component is relative and authority is present")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Path component is relative and authority is present" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
1
2078 case
executed 6 times by 1 test: case QUrlPrivate::RelativeUrlPathContainsColonBeforeSlash:
Executed by:
  • tst_QUrl
QUrlPrivate::RelativeUrlPathContainsColonBeforeSlash:
executed 6 times by 1 test: case QUrlPrivate::RelativeUrlPathContainsColonBeforeSlash:
Executed by:
  • tst_QUrl
6
2079 return
executed 6 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Relative URL's path component contains ':' before any '/'")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Relative URL's path component contains ':' before any '/'" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
([]() -> QString { enum { Size = sizeof(u"" "Relative URL's path component contains ':' before any '/'")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Relative URL's path component contains ':' before any '/'" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 6 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 6 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}());
executed 6 times by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "Relative URL's path component contains ':' before any '/'")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Relative URL's path component contains ':' before any '/'" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QUrl
6
2080 }-
2081-
2082 ((!(false)) ? qt_assert_x("QUrl::errorString", "Cannot happen, unknown error",__FILE__,4012) : qt_noop());-
2083 do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,4013) : qt_noop()); __builtin_unreachable(); } while (0);-
2084 return
never executed: return QString();
QString();
never executed: return QString();
0
2085}-
2086-
2087static inline void appendComponentIfPresent(QString &msg, bool present, const char *componentName,-
2088 const QString &component)-
2089{-
2090 if (present
presentDescription
TRUEevaluated 371 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1043 times by 1 test
Evaluated by:
  • tst_QUrl
) {
371-1043
2091 msg += QLatin1String(componentName);-
2092 msg += QLatin1Char('"');-
2093 msg += component;-
2094 msg += QLatin1String("\",");-
2095 }
executed 371 times by 1 test: end of block
Executed by:
  • tst_QUrl
371
2096}
executed 1414 times by 1 test: end of block
Executed by:
  • tst_QUrl
1414
2097QString QUrl::errorString() const-
2098{-
2099 QString msg;-
2100 if (!d
!dDescription
TRUEevaluated 130 times by 6 tests
Evaluated by:
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
FALSEevaluated 213 times by 2 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QUrl
)
130-213
2101 return
executed 130 times by 6 tests: return msg;
Executed by:
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
msg;
executed 130 times by 6 tests: return msg;
Executed by:
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkRequest
  • tst_QTextDocument
  • tst_QUrl
  • tst_selftests - unknown status
130
2102-
2103 QString errorSource;-
2104 int errorPosition = 0;-
2105 QUrlPrivate::ErrorCode errorCode = d->validityError(&errorSource, &errorPosition);-
2106 if (errorCode == QUrlPrivate::NoError
errorCode == Q...ivate::NoErrorDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QNetworkCacheMetaData
  • tst_QUrl
FALSEevaluated 202 times by 1 test
Evaluated by:
  • tst_QUrl
)
11-202
2107 return
executed 11 times by 2 tests: return msg;
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QUrl
msg;
executed 11 times by 2 tests: return msg;
Executed by:
  • tst_QNetworkCacheMetaData
  • tst_QUrl
11
2108-
2109 msg += errorMessage(errorCode, errorSource, errorPosition);-
2110 msg += QLatin1String("; source was \"");-
2111 msg += errorSource;-
2112 msg += QLatin1String("\";");-
2113 appendComponentIfPresent(msg, d->sectionIsPresent & QUrlPrivate::Scheme,-
2114 " scheme = ", d->scheme);-
2115 appendComponentIfPresent(msg, d->sectionIsPresent & QUrlPrivate::UserInfo,-
2116 " userinfo = ", userInfo());-
2117 appendComponentIfPresent(msg, d->sectionIsPresent & QUrlPrivate::Host,-
2118 " host = ", d->host);-
2119 appendComponentIfPresent(msg, d->port != -1,-
2120 " port = ", QString::number(d->port));-
2121 appendComponentIfPresent(msg, !d->path.isEmpty(),-
2122 " path = ", d->path);-
2123 appendComponentIfPresent(msg, d->sectionIsPresent & QUrlPrivate::Query,-
2124 " query = ", d->query);-
2125 appendComponentIfPresent(msg, d->sectionIsPresent & QUrlPrivate::Fragment,-
2126 " fragment = ", d->fragment);-
2127 if (msg.endsWith(QLatin1Char(','))
msg.endsWith(QLatin1Char(','))Description
TRUEevaluated 201 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
)
1-201
2128 msg.chop(1);
executed 201 times by 1 test: msg.chop(1);
Executed by:
  • tst_QUrl
201
2129 return
executed 202 times by 1 test: return msg;
Executed by:
  • tst_QUrl
msg;
executed 202 times by 1 test: return msg;
Executed by:
  • tst_QUrl
202
2130}-
2131-
2132-
2133-
2134-
2135-
2136-
2137QStringList QUrl::toStringList(const QList<QUrl> &urls, FormattingOptions options)-
2138{-
2139 QStringList lst;-
2140 lst.reserve(urls.size());-
2141 for (const QUrl &url : urls)-
2142 lst.append(url.toString(options));
executed 465 times by 5 tests: lst.append(url.toString(options));
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_languageChange
465
2143 return
executed 235 times by 5 tests: return lst;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_languageChange
lst;
executed 235 times by 5 tests: return lst;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_languageChange
235
2144-
2145}-
2146-
2147-
2148-
2149-
2150-
2151-
2152-
2153QList<QUrl> QUrl::fromStringList(const QStringList &urls, ParsingMode mode)-
2154{-
2155 QList<QUrl> lst;-
2156 lst.reserve(urls.size());-
2157 for (const QString &str : urls)-
2158 lst.append(QUrl(str, mode));
executed 507 times by 5 tests: lst.append(QUrl(str, mode));
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_languageChange
507
2159 return
executed 255 times by 5 tests: return lst;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_languageChange
lst;
executed 255 times by 5 tests: return lst;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QUrl
  • tst_languageChange
255
2160}-
2161uint qHash(const QUrl &url, uint seed) noexcept-
2162{-
2163 if (!url.d
!url.dDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QUrl
)
3-7
2164 return
executed 3 times by 1 test: return qHash(-1, seed);
Executed by:
  • tst_QUrl
qHash(-1, seed);
executed 3 times by 1 test: return qHash(-1, seed);
Executed by:
  • tst_QUrl
3
2165-
2166 return
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
qHash(url.d->scheme) ^
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2167 qHash(url.d->userName) ^
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2168 qHash(url.d->password) ^
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2169 qHash(url.d->host) ^
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2170 qHash(url.d->port, seed) ^
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2171 qHash(url.d->path) ^
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2172 qHash(url.d->query) ^
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2173 qHash(url.d->fragment);
executed 7 times by 1 test: return qHash(url.d->scheme) ^ qHash(url.d->userName) ^ qHash(url.d->password) ^ qHash(url.d->host) ^ qHash(url.d->port, seed) ^ qHash(url.d->path) ^ qHash(url.d->query) ^ qHash(url.d->fragment);
Executed by:
  • tst_QUrl
7
2174}-
2175-
2176static QUrl adjustFtpPath(QUrl url)-
2177{-
2178 if (url.scheme() == ftpScheme()
url.scheme() == ftpScheme()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
) {
3-31
2179 QString path = url.path(QUrl::PrettyDecoded);-
2180 if (path.startsWith(QLatin1String("//"))
path.startsWit...1String("//"))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
)
1-2
2181 url.setPath(QLatin1String("/%2F") + path.midRef(2), QUrl::TolerantMode);
executed 2 times by 1 test: url.setPath(QLatin1String("/%2F") + path.midRef(2), QUrl::TolerantMode);
Executed by:
  • tst_QUrl
2
2182 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QUrl
3
2183 return
executed 34 times by 2 tests: return url;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
url;
executed 34 times by 2 tests: return url;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
34
2184}-
2185-
2186static bool isIp6(const QString &text)-
2187{-
2188 QIPAddressUtils::IPv6Address address;-
2189 return
executed 104 times by 2 tests: return !text.isEmpty() && QIPAddressUtils::parseIp6(address, text.begin(), text.end()) == 0;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
!text.isEmpty() && QIPAddressUtils::parseIp6(address, text.begin(), text.end()) == 0;
executed 104 times by 2 tests: return !text.isEmpty() && QIPAddressUtils::parseIp6(address, text.begin(), text.end()) == 0;
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
104
2190}-
2191QUrl QUrl::fromUserInput(const QString &userInput, const QString &workingDirectory,-
2192 UserInputResolutionOptions options)-
2193{-
2194 QString trimmedString = userInput.trimmed();-
2195-
2196 if (trimmedString.isEmpty()
trimmedString.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 44 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-44
2197 return
executed 2 times by 1 test: return QUrl();
Executed by:
  • tst_QUrl
QUrl();
executed 2 times by 1 test: return QUrl();
Executed by:
  • tst_QUrl
2
2198-
2199-
2200-
2201-
2202 if (isIp6(trimmedString)
isIp6(trimmedString)Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_QUrl
) {
12-32
2203 QUrl url;-
2204 url.setHost(trimmedString);-
2205 url.setScheme(([]() -> QString { enum { Size = sizeof(u"" "http")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "http" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 12 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 12 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()));
12
2206 return
executed 12 times by 1 test: return url;
Executed by:
  • tst_QUrl
url;
executed 12 times by 1 test: return url;
Executed by:
  • tst_QUrl
12
2207 }-
2208-
2209 QUrl url = QUrl(trimmedString, QUrl::TolerantMode);-
2210-
2211 if (url.isRelative()
url.isRelative()Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
&& !QDir::isAbsolutePath(trimmedString)
!QDir::isAbsol...trimmedString)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
) {
2-30
2212 QFileInfo fileInfo(QDir(workingDirectory), trimmedString);-
2213 if ((options & AssumeLocalFile) || fileInfo.exists()
fileInfo.exists()Description
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
)
3-11
2214 return
executed 25 times by 1 test: return QUrl::fromLocalFile(fileInfo.absoluteFilePath());
Executed by:
  • tst_QUrl
QUrl::fromLocalFile(fileInfo.absoluteFilePath());
executed 25 times by 1 test: return QUrl::fromLocalFile(fileInfo.absoluteFilePath());
Executed by:
  • tst_QUrl
25
2215 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QUrl
3
2216-
2217 return
executed 7 times by 1 test: return fromUserInput(trimmedString);
Executed by:
  • tst_QUrl
fromUserInput(trimmedString);
executed 7 times by 1 test: return fromUserInput(trimmedString);
Executed by:
  • tst_QUrl
7
2218}-
2219QUrl QUrl::fromUserInput(const QString &userInput)-
2220{-
2221 QString trimmedString = userInput.trimmed();-
2222-
2223-
2224-
2225 if (isIp6(trimmedString)
isIp6(trimmedString)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 54 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
) {
6-54
2226 QUrl url;-
2227 url.setHost(trimmedString);-
2228 url.setScheme(([]() -> QString { enum { Size = sizeof(u"" "http")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "http" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 6 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
qstring_literal_temp;
executed 6 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QUrl
}()));
6
2229 return
executed 6 times by 1 test: return url;
Executed by:
  • tst_QUrl
url;
executed 6 times by 1 test: return url;
Executed by:
  • tst_QUrl
6
2230 }-
2231-
2232-
2233 if (QDir::isAbsolutePath(trimmedString)
QDir::isAbsolu...trimmedString)Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
)
19-35
2234 return
executed 19 times by 1 test: return QUrl::fromLocalFile(trimmedString);
Executed by:
  • tst_QUrl
QUrl::fromLocalFile(trimmedString);
executed 19 times by 1 test: return QUrl::fromLocalFile(trimmedString);
Executed by:
  • tst_QUrl
19
2235-
2236 QUrl url = QUrl(trimmedString, QUrl::TolerantMode);-
2237 QUrl urlPrepended = QUrl(QLatin1String("http://") + trimmedString, QUrl::TolerantMode);-
2238-
2239-
2240-
2241-
2242 if (url.isValid()
url.isValid()Description
TRUEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
1-34
2243 && !url.scheme().isEmpty()
!url.scheme().isEmpty()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QUrl
16-18
2244 && urlPrepended.port() == -1
urlPrepended.port() == -1Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QUrl
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QUrl
)
3-15
2245 return
executed 15 times by 2 tests: return adjustFtpPath(url);
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
adjustFtpPath(url);
executed 15 times by 2 tests: return adjustFtpPath(url);
Executed by:
  • tst_QNetworkReply
  • tst_QUrl
15
2246-
2247-
2248 if (urlPrepended.isValid()
urlPrepended.isValid()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEnever evaluated
&& (!urlPrepended.host().isEmpty()
!urlPrepended.host().isEmpty()Description
TRUEevaluated 19 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
|| !urlPrepended.path().isEmpty()
!urlPrepended.path().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QUrl
))
0-20
2249 {-
2250 int dotIndex = trimmedString.indexOf(QLatin1Char('.'));-
2251 const QString hostscheme = trimmedString.left(dotIndex).toLower();-
2252 if (hostscheme == ftpScheme()
hostscheme == ftpScheme()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QUrl
FALSEevaluated 17 times by 1 test
Evaluated by:
  • tst_QUrl
)
2-17
2253 urlPrepended.setScheme(ftpScheme());
executed 2 times by 1 test: urlPrepended.setScheme(ftpScheme());
Executed by:
  • tst_QUrl
2
2254 return
executed 19 times by 1 test: return adjustFtpPath(urlPrepended);
Executed by:
  • tst_QUrl
adjustFtpPath(urlPrepended);
executed 19 times by 1 test: return adjustFtpPath(urlPrepended);
Executed by:
  • tst_QUrl
19
2255 }-
2256-
2257 return
executed 1 time by 1 test: return QUrl();
Executed by:
  • tst_QUrl
QUrl();
executed 1 time by 1 test: return QUrl();
Executed by:
  • tst_QUrl
1
2258}-
2259-
2260-
2261-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9