Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | extern QString qt_normalizePathSegments(const QString &name, bool allowUncPaths); | - |
7 | | - |
8 | inline static bool isHex(char c) | - |
9 | { | - |
10 | c |= 0x20; | - |
11 | returnexecuted 59 times by 2 tests: return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'); Executed by:- tst_QNetworkRequest
- tst_QUrl
(c >= '0'TRUE | evaluated 59 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
| FALSE | never evaluated |
&& c <= '9'TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 31 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
) || (c >= 'a'TRUE | evaluated 27 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 4 times by 1 test |
&& c <= 'f'TRUE | evaluated 16 times by 1 test | FALSE | evaluated 11 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
);executed 59 times by 2 tests: return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'); Executed by:- tst_QNetworkRequest
- tst_QUrl
| 0-59 |
12 | } | - |
13 | | - |
14 | static inline QString ftpScheme() | - |
15 | { | - |
16 | returnexecuted 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); returnexecuted 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 | | - |
19 | static inline QString fileScheme() | - |
20 | { | - |
21 | returnexecuted 17052 times by 34 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); returnexecuted 17052 times by 34 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 17052 times by 34 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 17052 times by 34 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
- ...
| 17052 |
22 | } | - |
23 | | - |
24 | static inline QString webDavScheme() | - |
25 | { | - |
26 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 1 time by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 1 time by 1 test: return qstring_literal_temp; }());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; }()); | 1 |
27 | } | - |
28 | | - |
29 | static inline QString webDavSslTag() | - |
30 | { | - |
31 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 4 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 4 times by 1 test: return qstring_literal_temp; }());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; }()); | 4 |
32 | } | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | class QUrlPrivate | - |
41 | { | - |
42 | public: | - |
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 ©); | - |
103 | ~QUrlPrivate(); | - |
104 | | - |
105 | void parse(const QString &url, QUrl::ParsingMode parsingMode); | - |
106 | bool isEmpty() const | - |
107 | { returnexecuted 17287 times by 33 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 == 0TRUE | evaluated 480 times by 12 testsEvaluated by:- tst_NetworkSelfTest
- tst_QHttpNetworkConnection
- tst_QNetworkCacheMetaData
- tst_QNetworkRequest
- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
| FALSE | evaluated 16807 times by 28 testsEvaluated by:- 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_QUrl
- tst_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_languageChange
- tst_qdesktopservices
- ...
|
&& port == -1TRUE | evaluated 479 times by 12 testsEvaluated by:- tst_NetworkSelfTest
- tst_QHttpNetworkConnection
- tst_QNetworkCacheMetaData
- tst_QNetworkRequest
- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
| FALSE | evaluated 1 time by 1 test |
&& path.isEmpty()TRUE | evaluated 121 times by 7 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
- tst_QUrl
| FALSE | evaluated 358 times by 10 testsEvaluated by:- tst_NetworkSelfTest
- tst_QHttpNetworkConnection
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
|
;executed 17287 times by 33 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
- ...
} | 1-17287 |
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 | { returnexecuted 21 times by 1 test: return validateComponent(section, input, 0, uint(input.length())); validateComponent(section, input, 0, uint(input.length()));executed 21 times by 1 test: return validateComponent(section, input, 0, uint(input.length())); } | 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 { returnexecuted 10910 times by 33 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_QUrlInternal
- tst_QVariant
- ...
sectionIsPresent & Scheme;executed 10910 times by 33 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_QUrlInternal
- tst_QVariant
- ...
} | 10910 |
139 | inline bool hasAuthority() const { returnexecuted 10514 times by 31 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- ...
sectionIsPresent & Authority;executed 10514 times by 31 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- ...
} | 10514 |
140 | inline bool hasUserInfo() const { returnexecuted 7098 times by 22 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_qnetworkreply - unknown status
- tst_selftests - unknown status
sectionIsPresent & UserInfo;executed 7098 times by 22 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_qnetworkreply - unknown status
- tst_selftests - unknown status
} | 7098 |
141 | inline bool hasUserName() const { returnexecuted 4584 times by 18 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
sectionIsPresent & UserName;executed 4584 times by 18 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
} | 4584 |
142 | inline bool hasPassword() const { returnexecuted 4373 times by 18 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
sectionIsPresent & Password;executed 4373 times by 18 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
} | 4373 |
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 { returnexecuted 10998 times by 35 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 10998 times by 35 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
- ...
} | 10998 |
147 | inline bool hasFragment() const { returnexecuted 11000 times by 31 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_QUrlInternal
- tst_QVariant
- ...
sectionIsPresent & Fragment;executed 11000 times by 31 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_QUrlInternal
- tst_QVariant
- ...
} | 11000 |
148 | | - |
149 | inline bool isLocalFile() const { returnexecuted 21087 times by 35 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 21087 times by 35 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
- ...
} | 21087 |
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 | | - |
179 | inline QUrlPrivate::QUrlPrivate() | - |
180 | : ref(1), port(-1), | - |
181 | error(0), | - |
182 | sectionIsPresent(0), | - |
183 | flags(0) | - |
184 | { | - |
185 | }executed 24121 times by 56 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
- ...
| 24121 |
186 | | - |
187 | inline QUrlPrivate::QUrlPrivate(const QUrlPrivate ©) | - |
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 9134 times by 18 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
- tst_qnetworkreply - unknown status
| 9134 |
201 | | - |
202 | inline QUrlPrivate::~QUrlPrivate() | - |
203 | { | - |
204 | delete error; | - |
205 | }executed 33248 times by 63 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
- ...
| 33248 |
206 | | - |
207 | inline QUrlPrivate::Error *QUrlPrivate::cloneError() const | - |
208 | { | - |
209 | returnexecuted 9134 times by 18 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
- tst_qnetworkreply - unknown status
errorTRUE | never evaluated | FALSE | evaluated 9134 times by 18 testsEvaluated 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
- tst_qnetworkreply - unknown status
|
? new Error(*error) : 0;executed 9134 times by 18 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
- tst_qnetworkreply - unknown status
| 0-9134 |
210 | } | - |
211 | | - |
212 | inline void QUrlPrivate::clearError() | - |
213 | { | - |
214 | delete error; | - |
215 | error = 0; | - |
216 | }executed 46530 times by 56 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
- ...
| 46530 |
217 | | - |
218 | inline void QUrlPrivate::setError(ErrorCode errorCode, const QString &source, int supplement) | - |
219 | { | - |
220 | if (errorTRUE | evaluated 41 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 263 times by 8 testsEvaluated 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 |
229 | static 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 | }; | - |
248 | static const ushort * const passwordInIsolation = userNameInIsolation + 1; | - |
249 | static const ushort * const pathInIsolation = userNameInIsolation + 5; | - |
250 | static const ushort * const queryInIsolation = userNameInIsolation + 6; | - |
251 | static const ushort * const fragmentInIsolation = userNameInIsolation + 7; | - |
252 | | - |
253 | static 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 | }; | - |
272 | static const ushort * const passwordInUserInfo = userNameInUserInfo + 1; | - |
273 | | - |
274 | static 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 | }; | - |
293 | static const ushort * const passwordInAuthority = userNameInAuthority + 1; | - |
294 | | - |
295 | static 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 | }; | - |
307 | static const ushort * const passwordInUrl = userNameInUrl + 1; | - |
308 | static const ushort * const pathInUrl = userNameInUrl + 5; | - |
309 | static const ushort * const queryInUrl = userNameInUrl + 6; | - |
310 | static const ushort * const fragmentInUrl = userNameInUrl + 6; | - |
311 | | - |
312 | static inline void parseDecodedComponent(QString &data) | - |
313 | { | - |
314 | data.replace(QLatin1Char('%'), ([]() -> QString { enum { Size = sizeof(u"" "%25")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "%25" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 14769 times by 41 tests: return qstring_literal_temp; 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
- ...
qstring_literal_temp;executed 14769 times by 41 tests: return qstring_literal_temp; 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
- ...
}())); | 14769 |
315 | }executed 14769 times by 41 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
- ...
| 14769 |
316 | | - |
317 | static inline QString | - |
318 | recodeFromUser(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)TRUE | evaluated 197 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QUrl
| FALSE | evaluated 19684 times by 36 testsEvaluated 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-19684 |
324 | returnexecuted 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 | returnexecuted 19684 times by 36 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 19684 times by 36 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
- ...
| 19684 |
327 | } | - |
328 | | - |
329 | | - |
330 | | - |
331 | static inline void appendToUser(QString &appendTo, const QString &value, QUrl::FormattingOptions options, | - |
332 | const ushort *actions) | - |
333 | { | - |
334 | if (options == QUrl::PrettyDecodedTRUE | evaluated 291 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 25181 times by 35 testsEvaluated 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-25181 |
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)TRUE | evaluated 24242 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 939 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
|
) | 939-24242 |
340 | appendTo += value;executed 24242 times by 35 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
- ...
| 24242 |
341 | }executed 25181 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_QTextEdit
- tst_QUrl
- ...
| 25181 |
342 | | - |
343 | inline void QUrlPrivate::appendAuthority(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const | - |
344 | { | - |
345 | if ((TRUE | evaluated 4584 times by 18 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
| FALSE | evaluated 1081 times by 9 testsEvaluated 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::RemoveUserInfoTRUE | evaluated 4584 times by 18 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
| FALSE | evaluated 1081 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
|
) { | 1081-4584 |
346 | appendUserInfo(appendTo, options, appendingTo); | - |
347 | | - |
348 | | - |
349 | if (hasUserName()TRUE | evaluated 627 times by 5 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 3957 times by 17 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QFileSelector
- tst_QHttpNetworkConnection
- tst_QMetaType
- tst_QMimeData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
|
|| (hasPassword()TRUE | evaluated 98 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 3859 times by 17 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QFileSelector
- tst_QHttpNetworkConnection
- tst_QMetaType
- tst_QMimeData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
|
&& (TRUE | evaluated 7 times by 1 test | FALSE | evaluated 91 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
options & QUrl::RemovePassword) == 0TRUE | evaluated 7 times by 1 test | FALSE | evaluated 91 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
)) | 7-3957 |
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 4584 times by 18 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
| 4584 |
352 | appendHost(appendTo, options); | - |
353 | if (!(options & QUrl::RemovePort)TRUE | evaluated 5661 times by 21 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
| FALSE | evaluated 4 times by 1 test |
&& port != -1TRUE | evaluated 1784 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
| FALSE | evaluated 3877 times by 16 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QFileSelector
- tst_QMetaType
- tst_QMimeData
- tst_QNetworkCacheMetaData
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
|
) | 4-5661 |
354 | appendTo += QLatin1Char(':') + QString::number(port);executed 1784 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
| 1784 |
355 | }executed 5665 times by 21 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
| 5665 |
356 | | - |
357 | inline void QUrlPrivate::appendUserInfo(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const | - |
358 | { | - |
359 | if (__builtin_expect(!!(!hasUserInfo()), true)TRUE | evaluated 6308 times by 21 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_qnetworkreply - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 790 times by 5 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) | 790-6308 |
360 | return;executed 6308 times by 21 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_qnetworkreply - unknown status
- tst_selftests - unknown status
| 6308 |
361 | | - |
362 | const ushort *userNameActions; | - |
363 | const ushort *passwordActions; | - |
364 | if (options & QUrl::EncodeDelimitersTRUE | evaluated 605 times by 5 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 185 times by 2 testsEvaluated 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 | caseexecuted 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 | caseexecuted 25 times by 1 test: case Authority: Authority:executed 25 times by 1 test: case Authority: | 25 |
375 | userNameActions = userNameInAuthority; | - |
376 | passwordActions = passwordInAuthority; | - |
377 | break;executed 25 times by 1 test: break; | 25 |
378 | | - |
379 | caseexecuted 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__,888) : 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)TRUE | evaluated 723 times by 5 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 67 times by 1 test |
) | 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()TRUE | evaluated 191 times by 5 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 225 times by 2 testsEvaluated 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)TRUE | evaluated 168 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 57 times by 1 test |
) | 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 | | - |
402 | inline 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 | | - |
409 | inline 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 | | - |
416 | inline void QUrlPrivate::appendPath(QString &appendTo, QUrl::FormattingOptions options, Section appendingTo) const | - |
417 | { | - |
418 | QString thePath = path; | - |
419 | if (options & QUrl::NormalizePathSegmentsTRUE | evaluated 19 times by 1 test | FALSE | evaluated 22456 times by 35 testsEvaluated 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-22456 |
420 | thePath = qt_normalizePathSegments(path, false); | - |
421 | }executed 19 times by 1 test: end of block | 19 |
422 | if (options & QUrl::RemoveFilenameTRUE | evaluated 54 times by 1 test | FALSE | evaluated 22421 times by 35 testsEvaluated 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-22421 |
423 | const int slash = path.lastIndexOf(QLatin1Char('/')); | - |
424 | if (slash == -1TRUE | evaluated 5 times by 1 test | FALSE | evaluated 49 times by 1 test |
) | 5-49 |
425 | return;executed 5 times by 1 test: return; | 5 |
426 | thePath = path.left(slash+1); | - |
427 | }executed 49 times by 1 test: end of block | 49 |
428 | | - |
429 | if (options & QUrl::StripTrailingSlashTRUE | evaluated 44 times by 1 test | FALSE | evaluated 22426 times by 35 testsEvaluated 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-22426 |
430 | while (thePath.length() > 1TRUE | evaluated 58 times by 1 test | FALSE | evaluated 16 times by 1 test |
&& thePath.endsWith(QLatin1Char('/'))TRUE | evaluated 30 times by 1 test | FALSE | evaluated 28 times by 1 test |
) | 16-58 |
431 | thePath.chop(1);executed 30 times by 1 test: thePath.chop(1); | 30 |
432 | }executed 44 times by 1 test: end of block | 44 |
433 | | - |
434 | appendToUser(appendTo, thePath, options, | - |
435 | appendingTo == FullUrl || options & QUrl::EncodeDelimiters ? pathInUrl : pathInIsolation); | - |
436 | | - |
437 | }executed 22470 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_QTextEdit
- tst_QUrl
- ...
| 22470 |
438 | | - |
439 | inline 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 | | - |
446 | inline 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 722 times by 4 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 722 |
451 | | - |
452 | | - |
453 | | - |
454 | inline bool QUrlPrivate::setScheme(const QString &value, int len, bool doSetError) | - |
455 | { | - |
456 | | - |
457 | | - |
458 | | - |
459 | | - |
460 | | - |
461 | | - |
462 | | - |
463 | scheme.clear(); | - |
464 | if (len == 0TRUE | evaluated 6 times by 4 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextEdit
- tst_QUrl
| FALSE | evaluated 12039 times by 34 testsEvaluated 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-12039 |
465 | returnexecuted 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 < lenTRUE | evaluated 50535 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 11910 times by 34 testsEvaluated 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) { | 11910-50535 |
473 | if (p[i] >= 'a'TRUE | evaluated 49628 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 907 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
- tst_Spdy
|
&& p[i] <= 'z'TRUE | evaluated 49610 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 18 times by 1 test |
) | 18-49628 |
474 | continue;executed 49610 times by 34 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
- ...
| 49610 |
475 | if (p[i] >= 'A'TRUE | evaluated 308 times by 1 test | FALSE | evaluated 617 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
- tst_Spdy
|
&& p[i] <= 'Z'TRUE | evaluated 272 times by 1 test | FALSE | evaluated 36 times by 1 test |
) { | 36-617 |
476 | needsLowercasing = i; | - |
477 | continue;executed 272 times by 1 test: continue; | 272 |
478 | } | - |
479 | if (iTRUE | evaluated 615 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 38 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
) { | 38-615 |
480 | if (p[i] >= '0'TRUE | evaluated 192 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 423 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
&& p[i] <= '9'TRUE | evaluated 145 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 47 times by 1 test |
) | 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] == '+'TRUE | evaluated 8 times by 1 test | FALSE | evaluated 462 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
|| p[i] == '-'TRUE | evaluated 361 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 101 times by 1 test |
|| p[i] == '.'TRUE | evaluated 10 times by 1 test | FALSE | evaluated 91 times by 1 test |
) | 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 | 91 |
485 | | - |
486 | | - |
487 | | - |
488 | | - |
489 | if (doSetErrorTRUE | evaluated 74 times by 1 test | FALSE | evaluated 55 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
) | 55-74 |
490 | setError(InvalidSchemeError, value, i);executed 74 times by 1 test: setError(InvalidSchemeError, value, i); | 74 |
491 | returnexecuted 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 != -1TRUE | evaluated 33 times by 1 test | FALSE | evaluated 11877 times by 34 testsEvaluated 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-11877 |
497 | | - |
498 | QChar *schemeData = scheme.data(); | - |
499 | for (int i = needsLowercasing; i >= 0TRUE | evaluated 192 times by 1 test | FALSE | evaluated 33 times by 1 test |
; --i) { | 33-192 |
500 | ushort c = schemeData[i].unicode(); | - |
501 | if (c >= 'A'TRUE | evaluated 180 times by 1 test | FALSE | evaluated 12 times by 1 test |
&& c <= 'Z'TRUE | evaluated 178 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-180 |
502 | schemeData[i] = c + 0x20;executed 178 times by 1 test: schemeData[i] = c + 0x20; | 178 |
503 | }executed 192 times by 1 test: end of block | 192 |
504 | }executed 33 times by 1 test: end of block | 33 |
505 | | - |
506 | | - |
507 | if (scheme == fileScheme()TRUE | evaluated 6355 times by 15 testsEvaluated 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
| FALSE | evaluated 5555 times by 23 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
|
| 5555-6355 |
508 | | - |
509 | | - |
510 | | - |
511 | ) { | - |
512 | flags |= IsLocalFile; | - |
513 | }executed 6355 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 { | 6355 |
514 | flags &= ~IsLocalFile; | - |
515 | }executed 5555 times by 23 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_qnetworkreply - unknown status
- tst_selftests - unknown status
| 5555 |
516 | returnexecuted 11910 times by 34 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 11910 times by 34 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
- ...
| 11910 |
517 | } | - |
518 | | - |
519 | inline 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 != endTRUE | evaluated 4907 times by 23 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 618 times by 9 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QTextDocument
- tst_QUrl
- tst_languageChange
- tst_qfileopenevent
|
) { | 618-4907 |
526 | int userInfoIndex = auth.indexOf(QLatin1Char('@'), from); | - |
527 | if (uint(userInfoIndex) < uint(end)TRUE | evaluated 166 times by 4 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 4741 times by 22 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
|
) { | 166-4741 |
528 | setUserInfo(auth, from, userInfoIndex); | - |
529 | if (mode == QUrl::StrictModeTRUE | evaluated 8 times by 1 test | FALSE | evaluated 158 times by 4 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
|
&& !validateComponent(UserInfo, auth, from, userInfoIndex)TRUE | evaluated 7 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-158 |
530 | break;executed 7 times by 1 test: break; | 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 < fromTRUE | evaluated 4060 times by 20 testsEvaluated 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
| FALSE | evaluated 840 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
|
) | 840-4060 |
536 | colonIndex = -1;executed 4060 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
| 4060 |
537 | | - |
538 | if (uint(colonIndex) < uint(end)TRUE | evaluated 840 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| FALSE | evaluated 4060 times by 20 testsEvaluated 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
|
) { | 840-4060 |
539 | if (auth.at(from).unicode() == '['TRUE | evaluated 65 times by 4 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 775 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
|
) { | 65-775 |
540 | | - |
541 | int closingBracket = auth.indexOf(QLatin1Char(']'), from); | - |
542 | if (uint(closingBracket) > uint(colonIndex)TRUE | evaluated 59 times by 4 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 6 times by 1 test |
) | 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 840 times by 7 tests: end of block Executed by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| 840 |
546 | | - |
547 | if (colonIndex == end - 1TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 4888 times by 23 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
|
) { | 12-4888 |
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)TRUE | evaluated 769 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| FALSE | evaluated 4119 times by 20 testsEvaluated 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-4119 |
551 | unsigned long x = 0; | - |
552 | for (int i = colonIndex + 1; i < endTRUE | evaluated 3045 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| FALSE | evaluated 762 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
|
; ++i) { | 762-3045 |
553 | ushort c = auth.at(i).unicode(); | - |
554 | if (c >= '0'TRUE | evaluated 3044 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| FALSE | evaluated 1 time by 1 test |
&& c <= '9'TRUE | evaluated 3038 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| FALSE | evaluated 6 times by 1 test |
) { | 1-3044 |
555 | x *= 10; | - |
556 | x += c - '0'; | - |
557 | }executed 3038 times by 7 tests: end of block Executed by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
else { | 3038 |
558 | x = ulong(-1); | - |
559 | break;executed 7 times by 1 test: break; | 7 |
560 | } | - |
561 | } | - |
562 | if (x == ushort(x)TRUE | evaluated 759 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
| FALSE | evaluated 10 times by 1 test |
) { | 10-759 |
563 | port = ushort(x); | - |
564 | }executed 759 times by 7 tests: end of block Executed by:- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
else { | 759 |
565 | setError(InvalidPortError, auth, colonIndex + 1); | - |
566 | if (mode == QUrl::StrictModeTRUE | evaluated 4 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 4-6 |
567 | break;executed 4 times by 1 test: break; | 4 |
568 | }executed 6 times by 1 test: end of block | 6 |
569 | } else { | - |
570 | port = -1; | - |
571 | }executed 4119 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
| 4119 |
572 | | - |
573 | setHost(auth, from, qMin<uint>(end, colonIndex), mode); | - |
574 | if (mode == QUrl::StrictModeTRUE | evaluated 86 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 4810 times by 23 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
|
&& !validateComponent(Host, auth, from, qMin<uint>(end, colonIndex))TRUE | evaluated 6 times by 1 test | FALSE | evaluated 80 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
) { | 6-4810 |
575 | | - |
576 | sectionIsPresent &= ~Authority; | - |
577 | break;executed 6 times by 1 test: break; | 6 |
578 | } | - |
579 | | - |
580 | | - |
581 | return;executed 4890 times by 23 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_qnetworkreply - unknown status
- tst_selftests - unknown status
| 4890 |
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 | | - |
591 | inline 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)TRUE | evaluated 87 times by 4 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 130 times by 4 testsEvaluated 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 | | - |
604 | inline 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 | | - |
610 | inline 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 | | - |
616 | inline void QUrlPrivate::setPath(const QString &value, int from, int end) | - |
617 | { | - |
618 | | - |
619 | path = recodeFromUser(value, pathInIsolation, from, end); | - |
620 | }executed 14848 times by 36 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
- ...
| 14848 |
621 | | - |
622 | inline 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 | | - |
628 | inline 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 |
633 | inline void QUrlPrivate::appendHost(QString &appendTo, QUrl::FormattingOptions options) const | - |
634 | { | - |
635 | | - |
636 | if ((TRUE | evaluated 10043 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 5748 times by 21 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
|
options & QUrl::FullyDecoded) == QUrl::FullyDecodedTRUE | evaluated 10043 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 5748 times by 21 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
|
) | 5748-10043 |
637 | options = 0;executed 10043 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
- ...
| 10043 |
638 | else | - |
639 | options &= QUrl::EncodeUnicode;executed 5748 times by 21 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
| 5748 |
640 | if (host.isEmpty()TRUE | evaluated 1225 times by 21 testsEvaluated 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
| FALSE | evaluated 14566 times by 41 testsEvaluated 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
- ...
|
) | 1225-14566 |
641 | return;executed 1225 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
| 1225 |
642 | if (host.at(0).unicode() == '['TRUE | evaluated 187 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 14379 times by 41 testsEvaluated 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-14379 |
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)TRUE | evaluated 3865 times by 18 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_selftests - unknown status
| FALSE | never evaluated |
) | 0-3865 |
649 | appendTo += qt_ACE_do(host, ToAceOnly, AllowLeadingDot);executed 3865 times by 18 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_selftests - unknown status
| 3865 |
650 | else | - |
651 | appendTo += host;executed 10514 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
- ...
| 10514 |
652 | } | - |
653 | } | - |
654 | | - |
655 | | - |
656 | | - |
657 | static 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() != '.'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 28 times by 1 test |
) | 3-28 |
668 | returnexecuted 3 times by 1 test: return &begin[3]; &begin[3];executed 3 times by 1 test: return &begin[3]; | 3 |
669 | if ((begin[2].unicode() >= 'A'TRUE | evaluated 5 times by 1 test | FALSE | evaluated 23 times by 1 test |
&& begin[2].unicode() <= 'F'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 2 times by 1 test |
) || | 2-23 |
670 | (begin[2].unicode() >= 'a'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 23 times by 1 test |
&& begin[2].unicode() <= 'f'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
) || | 1-23 |
671 | (begin[2].unicode() >= '0'TRUE | evaluated 24 times by 1 test | FALSE | never evaluated |
&& begin[2].unicode() <= '9'TRUE | evaluated 23 times by 1 test | FALSE | evaluated 1 time by 1 test |
)) { | 0-24 |
672 | | - |
673 | | - |
674 | host += QString::fromRawData(begin, 4); | - |
675 | | - |
676 | | - |
677 | if (begin[2].unicode() >= 'a'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 26 times by 1 test |
) | 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; | 1 |
679 | | - |
680 | begin += 4; | - |
681 | --end; | - |
682 | | - |
683 | QString decoded; | - |
684 | if (mode == QUrl::TolerantModeTRUE | evaluated 25 times by 1 test | FALSE | evaluated 2 times by 1 test |
&& qt_urlRecode(decoded, begin, end, QUrl::FullyDecoded, 0)TRUE | evaluated 6 times by 1 test | FALSE | evaluated 19 times by 1 test |
) { | 2-25 |
685 | begin = decoded.constBegin(); | - |
686 | end = decoded.constEnd(); | - |
687 | }executed 6 times by 1 test: end of block | 6 |
688 | | - |
689 | for ( ; begin != endTRUE | evaluated 123 times by 1 test | FALSE | evaluated 18 times by 1 test |
; ++begin) { | 18-123 |
690 | if (begin->unicode() >= 'A'TRUE | evaluated 40 times by 1 test | FALSE | evaluated 83 times by 1 test |
&& begin->unicode() <= 'Z'TRUE | evaluated 12 times by 1 test | FALSE | evaluated 28 times by 1 test |
) | 12-83 |
691 | host += *begin;executed 12 times by 1 test: host += *begin; | 12 |
692 | else if (begin->unicode() >= 'a'TRUE | evaluated 23 times by 1 test | FALSE | evaluated 88 times by 1 test |
&& begin->unicode() <= 'z'TRUE | evaluated 16 times by 1 test | FALSE | evaluated 7 times by 1 test |
) | 7-88 |
693 | host += *begin;executed 16 times by 1 test: host += *begin; | 16 |
694 | else if (begin->unicode() >= '0'TRUE | evaluated 47 times by 1 test | FALSE | evaluated 48 times by 1 test |
&& begin->unicode() <= '9'TRUE | evaluated 22 times by 1 test | FALSE | evaluated 25 times by 1 test |
) | 22-48 |
695 | host += *begin;executed 22 times by 1 test: host += *begin; | 22 |
696 | else if (begin->unicode() < 0x80TRUE | evaluated 72 times by 1 test | FALSE | evaluated 1 time by 1 test |
&& strchr(acceptable, begin->unicode()) != 0TRUE | evaluated 64 times by 1 test | FALSE | evaluated 8 times by 1 test |
) | 1-72 |
697 | host += *begin;executed 64 times by 1 test: host += *begin; | 64 |
698 | else | - |
699 | returnexecuted 9 times by 1 test: return decoded.isEmpty() ? begin : &origBegin[2]; decoded.isEmpty()TRUE | evaluated 6 times by 1 test | FALSE | evaluated 3 times by 1 test |
? begin : &origBegin[2];executed 9 times by 1 test: return decoded.isEmpty() ? begin : &origBegin[2]; | 3-9 |
700 | } | - |
701 | host += QLatin1Char(']'); | - |
702 | returnexecuted 18 times by 1 test: return 0; 0;executed 18 times by 1 test: return 0; | 18 |
703 | } | - |
704 | returnexecuted 1 time by 1 test: return &origBegin[2]; &origBegin[2];executed 1 time by 1 test: return &origBegin[2]; | 1 |
705 | } | - |
706 | | - |
707 | | - |
708 | static 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 (retTRUE | evaluated 44 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 112 times by 7 testsEvaluated 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::TolerantModeTRUE | evaluated 36 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 8 times by 1 test |
&& qt_urlRecode(decoded, begin, end, 0, decodeColon)TRUE | evaluated 4 times by 2 tests | FALSE | evaluated 32 times by 5 testsEvaluated 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 | returnexecuted 4 times by 2 tests: return ret ? end : 0; retTRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
? end : 0;executed 4 times by 2 tests: return ret ? end : 0; | 2-4 |
726 | } | - |
727 | | - |
728 | | - |
729 | returnexecuted 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 | returnexecuted 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 | | - |
739 | inline 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 == 0TRUE | evaluated 184 times by 7 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocketNotifier
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 11809 times by 44 testsEvaluated 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-11809 |
748 | returnexecuted 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() == '['TRUE | evaluated 184 times by 9 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 11625 times by 44 testsEvaluated 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-11625 |
751 | | - |
752 | | - |
753 | | - |
754 | if (end[-1].unicode() != ']'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 183 times by 9 testsEvaluated 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 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
757 | } | - |
758 | | - |
759 | if (len > 5TRUE | evaluated 126 times by 6 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 57 times by 6 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
&& begin[1].unicode() == 'v'TRUE | evaluated 31 times by 1 test | FALSE | evaluated 95 times by 6 testsEvaluated 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 (cTRUE | evaluated 13 times by 1 test | FALSE | evaluated 18 times by 1 test |
) | 13-18 |
762 | setError(InvalidIPvFutureError, value, c - value.constData());executed 13 times by 1 test: setError(InvalidIPvFutureError, value, c - value.constData()); | 13 |
763 | returnexecuted 31 times by 1 test: return !c; !c;executed 31 times by 1 test: return !c; | 31 |
764 | } else if (begin[1].unicode() == 'v'TRUE | evaluated 6 times by 1 test | FALSE | evaluated 146 times by 9 testsEvaluated 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 | 6 |
767 | | - |
768 | const QChar *c = parseIp6(host, begin + 1, end - 1, mode); | - |
769 | if (!cTRUE | evaluated 112 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 40 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
|
) | 40-112 |
770 | returnexecuted 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 - 1TRUE | evaluated 28 times by 3 testsEvaluated by:- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 12 times by 4 testsEvaluated 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 | returnexecuted 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)TRUE | evaluated 1228 times by 20 testsEvaluated 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
| FALSE | evaluated 10397 times by 38 testsEvaluated 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
- ...
|
) { | 1228-10397 |
782 | | - |
783 | QIPAddressUtils::toString(host, ip4); | - |
784 | returnexecuted 1228 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 1228 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
| 1228 |
785 | } | - |
786 | QString s; | - |
787 | if (mode == QUrl::TolerantModeTRUE | evaluated 10269 times by 38 testsEvaluated 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
- ...
| FALSE | evaluated 128 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
&& qt_urlRecode(s, begin, end, 0, 0)TRUE | evaluated 54 times by 2 tests | FALSE | evaluated 10215 times by 38 testsEvaluated 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-10269 |
788 | | - |
789 | | - |
790 | int pos = s.indexOf(QChar(0x25)); | - |
791 | if (pos != -1TRUE | evaluated 4 times by 1 test | FALSE | evaluated 50 times by 1 test |
) { | 4-50 |
792 | setError(InvalidRegNameError, s, pos); | - |
793 | returnexecuted 4 times by 1 test: return false; false;executed 4 times by 1 test: return false; | 4 |
794 | } | - |
795 | | - |
796 | | - |
797 | returnexecuted 50 times by 1 test: return setHost(s, 0, s.length(), QUrl::StrictMode); setHost(s, 0, s.length(), QUrl::StrictMode);executed 50 times by 1 test: return setHost(s, 0, s.length(), QUrl::StrictMode); | 50 |
798 | } | - |
799 | | - |
800 | s = qt_ACE_do(QString::fromRawData(begin, len), NormalizeAce, ForbidLeadingDot); | - |
801 | if (s.isEmpty()TRUE | evaluated 114 times by 7 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 10229 times by 38 testsEvaluated 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-10229 |
802 | setError(InvalidRegNameError, value); | - |
803 | returnexecuted 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())TRUE | never evaluated | FALSE | evaluated 10229 times by 38 testsEvaluated 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-10229 |
808 | QIPAddressUtils::toString(host, ip4); | - |
809 | } never executed: end of block else { | 0 |
810 | host = s; | - |
811 | }executed 10229 times by 38 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
- ...
| 10229 |
812 | returnexecuted 10229 times by 38 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 10229 times by 38 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
- ...
| 10229 |
813 | } | - |
814 | | - |
815 | inline 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 < lenTRUE | evaluated 249781 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 9829 times by 35 testsEvaluated 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) { | 9829-249781 |
830 | uint uc = data[i]; | - |
831 | if (uc == '#'TRUE | evaluated 136 times by 4 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QTextBrowser
- tst_QUrl
| FALSE | evaluated 249645 times by 35 testsEvaluated 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 == -1TRUE | evaluated 136 times by 4 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QTextBrowser
- tst_QUrl
| FALSE | never evaluated |
) { | 0-249645 |
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 == -1TRUE | evaluated 246317 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 3328 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) { | 3328-246317 |
839 | if (uc == ':'TRUE | evaluated 7328 times by 31 testsEvaluated 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
- ...
| FALSE | evaluated 238989 times by 35 testsEvaluated 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 == -1TRUE | evaluated 6181 times by 31 testsEvaluated 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
- ...
| FALSE | evaluated 1147 times by 8 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkCookieJar
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_qnetworkreply - unknown status
|
) | 1147-238989 |
840 | colon = i;executed 6181 times by 31 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
- ...
| 6181 |
841 | else if (uc == '?'TRUE | evaluated 345 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 239791 times by 35 testsEvaluated 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-239791 |
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 246317 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_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- ...
| 246317 |
844 | }executed 249645 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_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- ...
| 249645 |
845 | | - |
846 | | - |
847 | int hierStart; | - |
848 | if (colon != -1TRUE | evaluated 6181 times by 31 testsEvaluated 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
- ...
| FALSE | evaluated 3784 times by 16 testsEvaluated 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)TRUE | evaluated 6120 times by 29 testsEvaluated 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
- ...
| FALSE | evaluated 61 times by 5 testsEvaluated by:- tst_QNetworkRequest
- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextEdit
- tst_QUrl
|
) { | 61-6181 |
849 | hierStart = colon + 1; | - |
850 | }executed 6120 times by 29 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 { | 6120 |
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 >= 2TRUE | evaluated 9293 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 672 times by 13 testsEvaluated 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] == '/'TRUE | evaluated 5608 times by 30 testsEvaluated 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
- ...
| FALSE | evaluated 3685 times by 13 testsEvaluated 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] == '/'TRUE | evaluated 5494 times by 29 testsEvaluated 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
- ...
| FALSE | evaluated 114 times by 5 testsEvaluated by:- tst_NetworkSelfTest
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
|
) { | 114-9293 |
860 | | - |
861 | int authorityEnd = hierEnd; | - |
862 | for (int i = hierStart + 2; i < authorityEndTRUE | evaluated 86403 times by 29 testsEvaluated 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
- ...
| FALSE | evaluated 2853 times by 14 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
|
; ++i) { | 2853-86403 |
863 | if (data[i] == '/'TRUE | evaluated 2641 times by 22 testsEvaluated 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
| FALSE | evaluated 83762 times by 23 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
|
) { | 2641-83762 |
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 83762 times by 23 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_qnetworkreply - unknown status
- tst_selftests - unknown status
| 83762 |
868 | | - |
869 | setAuthority(url, hierStart + 2, authorityEnd, parsingMode); | - |
870 | | - |
871 | | - |
872 | pathStart = authorityEnd; | - |
873 | setPath(url, pathStart, hierEnd); | - |
874 | }executed 5494 times by 29 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 { | 5494 |
875 | userName.clear(); | - |
876 | password.clear(); | - |
877 | host.clear(); | - |
878 | port = -1; | - |
879 | pathStart = hierStart; | - |
880 | | - |
881 | if (hierStart < hierEndTRUE | evaluated 3830 times by 16 testsEvaluated 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
| FALSE | evaluated 641 times by 13 testsEvaluated 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
|
) | 641-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 641 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
| 641 |
885 | } | - |
886 | | - |
887 | if (uint(question) < uint(hash)TRUE | evaluated 345 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkCookieJar
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 9620 times by 35 testsEvaluated 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-9620 |
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 != -1TRUE | evaluated 136 times by 4 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QTextBrowser
- tst_QUrl
| FALSE | evaluated 9829 times by 35 testsEvaluated 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-9829 |
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 (errorTRUE | evaluated 71 times by 2 tests | FALSE | evaluated 9894 times by 34 testsEvaluated 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::TolerantModeTRUE | evaluated 9825 times by 34 testsEvaluated 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
- ...
| FALSE | evaluated 69 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
) | 69-9894 |
894 | return;executed 9896 times by 35 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
- ...
| 9896 |
895 | | - |
896 | | - |
897 | | - |
898 | | - |
899 | | - |
900 | | - |
901 | | - |
902 | if (!validateComponent(Path, url, pathStart, hierEnd)TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 64 times by 4 testsEvaluated 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)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 63 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
&& !validateComponent(Query, url, question + 1, qMin<uint>(hash, len))TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-63 |
905 | return;executed 1 time by 1 test: return; | 1 |
906 | if (hash != -1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 62 times by 4 testsEvaluated 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); | 1 |
908 | }executed 63 times by 4 tests: end of block Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
| 63 |
909 | | - |
910 | QString 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()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 10434 times by 15 testsEvaluated 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-10434 |
918 | tmp = ([]() -> QString { enum { Size = sizeof(u"" "//")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "//" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); returnexecuted 4 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 4 times by 1 test: return qstring_literal_temp; }()) + host; | 4 |
919 | | - |
920 | | - |
921 | | - |
922 | | - |
923 | if (!ourPath.isEmpty()TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1 time by 1 test |
&& !ourPath.startsWith(QLatin1Char('/'))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 2 times by 1 test |
) | 1-3 |
924 | tmp += QLatin1Char('/');executed 1 time by 1 test: tmp += QLatin1Char('/'); | 1 |
925 | tmp += ourPath; | - |
926 | }executed 4 times by 1 test: end of block else { | 4 |
927 | tmp = ourPath; | - |
928 | | - |
929 | | - |
930 | | - |
931 | | - |
932 | | - |
933 | }executed 10434 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
| 10434 |
934 | returnexecuted 10438 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 10438 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
| 10438 |
935 | } | - |
936 | inline QString QUrlPrivate::mergePaths(const QString &relativePath) const | - |
937 | { | - |
938 | | - |
939 | | - |
940 | | - |
941 | if (!host.isEmpty()TRUE | evaluated 1043 times by 2 tests | FALSE | evaluated 2346 times by 4 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& path.isEmpty()TRUE | evaluated 1000 times by 1 test | FALSE | evaluated 43 times by 2 tests |
) | 43-2346 |
942 | returnexecuted 1000 times by 1 test: return QLatin1Char('/') + relativePath; QLatin1Char('/') + relativePath;executed 1000 times by 1 test: return QLatin1Char('/') + relativePath; | 1000 |
943 | | - |
944 | | - |
945 | | - |
946 | | - |
947 | | - |
948 | | - |
949 | QString newPath; | - |
950 | if (!path.contains(QLatin1Char('/'))TRUE | evaluated 19 times by 2 tests | FALSE | evaluated 2370 times by 4 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) | 19-2370 |
951 | newPath = relativePath;executed 19 times by 2 tests: newPath = relativePath; | 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 | returnexecuted 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 | | - |
964 | static 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() == 1TRUE | evaluated 4 times by 1 test | FALSE | evaluated 4482 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& in[0].unicode() == '.'TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
) | 0-4482 |
977 | ++ never executed: ++in; in;never executed: ++in; | 0 |
978 | else if (path->size() == 2TRUE | evaluated 3 times by 1 test | FALSE | evaluated 4483 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& in[0].unicode() == '.'TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
&& in[1].unicode() == '.'TRUE | never evaluated | FALSE | never evaluated |
) | 0-4483 |
979 | in += 2; never executed: in += 2; | 0 |
980 | | - |
981 | while (in < endTRUE | evaluated 37799 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 4482 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) { | 4482-37799 |
982 | | - |
983 | | - |
984 | | - |
985 | if (path->size() >= 2TRUE | evaluated 37795 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 4 times by 1 test |
&& in[0].unicode() == '.'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 37794 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& in[1].unicode() == '/'TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-37795 |
986 | in += 2; never executed: in += 2; | 0 |
987 | else if (path->size() >= 3TRUE | evaluated 37792 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 7 times by 1 test |
&& in[0].unicode() == '.'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 37791 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
| 1-37792 |
988 | && in[1].unicode() == '.'TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
&& in[2].unicode() == '/'TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) | 0-1 |
989 | in += 3;executed 1 time by 1 test: in += 3; | 1 |
990 | | - |
991 | | - |
992 | | - |
993 | | - |
994 | if (in <= end - 3TRUE | evaluated 37746 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 53 times by 3 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QUrl
- tst_QXmlStream
|
&& in[0].unicode() == '/'TRUE | evaluated 37715 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 31 times by 2 tests |
&& in[1].unicode() == '.'TRUE | evaluated 46 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | evaluated 37669 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
| 31-37746 |
995 | && in[2].unicode() == '/'TRUE | evaluated 7 times by 1 test | FALSE | evaluated 39 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
|
) { | 7-39 |
996 | in += 2; | - |
997 | continue;executed 7 times by 1 test: continue; | 7 |
998 | } else if (in == end - 2TRUE | evaluated 29 times by 1 test | FALSE | evaluated 37763 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& in[0].unicode() == '/'TRUE | evaluated 29 times by 1 test | FALSE | never evaluated |
&& in[1].unicode() == '.'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 27 times by 1 test |
) { | 0-37763 |
999 | *out++ = QLatin1Char('/'); | - |
1000 | in += 2; | - |
1001 | break;executed 2 times by 1 test: break; | 2 |
1002 | } | - |
1003 | | - |
1004 | | - |
1005 | | - |
1006 | | - |
1007 | | - |
1008 | | - |
1009 | if (in <= end - 4TRUE | evaluated 37733 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 57 times by 3 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QUrl
- tst_QXmlStream
|
&& in[0].unicode() == '/'TRUE | evaluated 37702 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 31 times by 2 tests |
&& in[1].unicode() == '.'TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | evaluated 37666 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
| 31-37733 |
1010 | && in[2].unicode() == '.'TRUE | evaluated 36 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | never evaluated |
&& in[3].unicode() == '/'TRUE | evaluated 35 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | evaluated 1 time by 1 test |
) { | 0-36 |
1011 | while (out > path->constData()TRUE | evaluated 111 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | evaluated 8 times by 2 tests |
&& (--TRUE | evaluated 84 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | evaluated 27 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
|
out)->unicode() != '/'TRUE | evaluated 84 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | evaluated 27 times by 3 testsEvaluated 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()TRUE | evaluated 14 times by 2 tests | FALSE | evaluated 21 times by 3 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
|
&& out->unicode() != '/'TRUE | evaluated 3 times by 2 tests | FALSE | evaluated 11 times by 1 test |
) | 3-21 |
1014 | ++executed 3 times by 2 tests: ++in; in;executed 3 times by 2 tests: ++in; | 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 - 3TRUE | evaluated 6 times by 1 test | FALSE | evaluated 37749 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& in[0].unicode() == '/'TRUE | evaluated 6 times by 1 test | FALSE | never evaluated |
&& in[1].unicode() == '.'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 3 times by 1 test |
| 0-37749 |
1018 | && in[2].unicode() == '.'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
) { | 1-2 |
1019 | while (out > path->constData()TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
&& (--TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
out)->unicode() != '/'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 0-4 |
1020 | ;executed 2 times by 1 test: ; | 2 |
1021 | if (out->unicode() == '/'TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
1022 | ++executed 2 times by 1 test: ++out; out;executed 2 times by 1 test: ++out; | 2 |
1023 | in += 3; | - |
1024 | break;executed 2 times by 1 test: break; | 2 |
1025 | } | - |
1026 | | - |
1027 | | - |
1028 | | - |
1029 | | - |
1030 | | - |
1031 | | - |
1032 | | - |
1033 | *out++ = *in++; | - |
1034 | while (in < endTRUE | evaluated 267871 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 3480 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& in->unicode() != '/'TRUE | evaluated 233598 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 34273 times by 5 testsEvaluated 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 | | - |
1040 | inline QUrlPrivate::ErrorCode QUrlPrivate::validityError(QString *source, int *position) const | - |
1041 | { | - |
1042 | ((!(!source == !position)) ? qt_assert("!source == !position",__FILE__,1607) : qt_noop()); | - |
1043 | if (errorTRUE | evaluated 464 times by 3 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
- tst_QUrlInternal
| FALSE | evaluated 15863 times by 32 testsEvaluated 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
- ...
|
) { | 464-15863 |
1044 | if (sourceTRUE | evaluated 195 times by 1 test | FALSE | evaluated 269 times by 3 testsEvaluated 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 | 195 |
1048 | returnexecuted 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()TRUE | evaluated 4562 times by 20 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_languageChange
- tst_qnetworkreply - unknown status
- tst_selftests - unknown status
| FALSE | evaluated 11301 times by 28 testsEvaluated 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('/')TRUE | evaluated 10596 times by 23 testsEvaluated 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
- tst_qnetworkreply - unknown status
| FALSE | evaluated 705 times by 13 testsEvaluated 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
|
) | 705-11301 |
1051 | returnexecuted 15158 times by 28 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_languageChange
- tst_qdesktopservices
- ...
NoError;executed 15158 times by 28 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_languageChange
- tst_qdesktopservices
- ...
| 15158 |
1052 | if (sectionIsPresent & QUrlPrivate::HostTRUE | evaluated 6 times by 1 test | FALSE | evaluated 699 times by 13 testsEvaluated 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-699 |
1053 | if (sourceTRUE | evaluated 1 time by 1 test | FALSE | evaluated 5 times by 1 test |
) { | 1-5 |
1054 | *source = path; | - |
1055 | *position = 0; | - |
1056 | }executed 1 time by 1 test: end of block | 1 |
1057 | returnexecuted 6 times by 1 test: return AuthorityPresentAndPathIsRelative; AuthorityPresentAndPathIsRelative;executed 6 times by 1 test: return AuthorityPresentAndPathIsRelative; | 6 |
1058 | } | - |
1059 | if (sectionIsPresent & QUrlPrivate::SchemeTRUE | evaluated 360 times by 6 testsEvaluated by:- tst_QDataUrl
- tst_QFileDialog2
- tst_QFiledialog
- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
| FALSE | evaluated 339 times by 9 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
|
) | 339-360 |
1060 | returnexecuted 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()TRUE | evaluated 3961 times by 9 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
| FALSE | evaluated 194 times by 7 testsEvaluated by:- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
|
; ++i) { | 194-3961 |
1064 | ushort c = path.at(i).unicode(); | - |
1065 | if (c == '/'TRUE | evaluated 68 times by 4 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
| FALSE | evaluated 3893 times by 9 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
|
) { | 68-3893 |
1066 | | - |
1067 | returnexecuted 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 == ':'TRUE | evaluated 77 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 3816 times by 9 testsEvaluated by:- tst_QHttpNetworkConnection
- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
|
) { | 77-3816 |
1070 | | - |
1071 | if (sourceTRUE | evaluated 6 times by 1 test | FALSE | evaluated 71 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
) { | 6-71 |
1072 | *source = path; | - |
1073 | *position = i; | - |
1074 | }executed 6 times by 1 test: end of block | 6 |
1075 | returnexecuted 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 3816 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
| 3816 |
1078 | returnexecuted 194 times by 7 tests: return NoError; Executed by:- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
NoError;executed 194 times by 7 tests: return NoError; Executed by:- tst_QNetworkRequest
- tst_QTextBrowser
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
| 194 |
1079 | } | - |
1080 | | - |
1081 | bool 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__,1677) : qt_noop()); | - |
1088 | | - |
1089 | const ushort *const data = reinterpret_cast<const ushort *>(input.constData()); | - |
1090 | for (uint i = uint(begin); i < uint(end)TRUE | evaluated 3566 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 147 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
; ++i) { | 147-3566 |
1091 | uint uc = data[i]; | - |
1092 | if (uc >= 0x80TRUE | evaluated 11 times by 1 test | FALSE | evaluated 3555 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
) | 11-3555 |
1093 | continue;executed 11 times by 1 test: continue; | 11 |
1094 | | - |
1095 | bool error = false; | - |
1096 | if ((uc == '%'TRUE | evaluated 33 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 3522 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
&& (uint(end) < i + 2TRUE | evaluated 1 time by 1 test | FALSE | evaluated 32 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
|| !isHex(data[i + 1])TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
|| !isHex(data[i + 2])TRUE | evaluated 10 times by 1 test | FALSE | evaluated 17 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
)) | 1-3522 |
1097 | || uc <= 0x20TRUE | evaluated 4 times by 1 test | FALSE | evaluated 3535 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
|| strchr(forbidden, uc)TRUE | evaluated 14 times by 1 test | FALSE | evaluated 3521 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
) { | 4-3535 |
1098 | | - |
1099 | error = true; | - |
1100 | }executed 34 times by 2 tests: end of block Executed by:- tst_QNetworkRequest
- tst_QUrl
else if (section & UserInfoTRUE | evaluated 75 times by 1 test | FALSE | evaluated 3446 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
|
) { | 34-3446 |
1101 | if (section == UserInfoTRUE | evaluated 53 times by 1 test | FALSE | evaluated 22 times by 1 test |
&& strchr(forbiddenUserInfo + 1, uc)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 52 times by 1 test |
) | 1-53 |
1102 | error = true;executed 1 time by 1 test: error = true; | 1 |
1103 | else if (section != UserInfoTRUE | evaluated 22 times by 1 test | FALSE | evaluated 52 times by 1 test |
&& strchr(forbiddenUserInfo, uc)TRUE | evaluated 4 times by 1 test | FALSE | evaluated 18 times by 1 test |
) | 4-52 |
1104 | error = true;executed 4 times by 1 test: error = true; | 4 |
1105 | }executed 75 times by 1 test: end of block | 75 |
1106 | | - |
1107 | if (!errorTRUE | evaluated 3516 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
| FALSE | evaluated 39 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
) | 39-3516 |
1108 | continue;executed 3516 times by 4 tests: continue; Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
| 3516 |
1109 | | - |
1110 | ErrorCode errorCode = ErrorCode(int(section) << 8); | - |
1111 | if (section == UserInfoTRUE | evaluated 12 times by 1 test | FALSE | evaluated 27 times by 2 testsEvaluated by:- tst_QNetworkRequest
- tst_QUrl
|
) { | 12-27 |
1112 | | - |
1113 | errorCode = InvalidUserNameError; | - |
1114 | for (uint j = uint(begin); j < iTRUE | evaluated 41 times by 1 test | FALSE | evaluated 9 times by 1 test |
; ++j) | 9-41 |
1115 | if (data[j] == ':'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 38 times by 1 test |
) { | 3-38 |
1116 | errorCode = InvalidPasswordError; | - |
1117 | break;executed 3 times by 1 test: break; | 3 |
1118 | } | - |
1119 | }executed 12 times by 1 test: end of block | 12 |
1120 | | - |
1121 | setError(errorCode, input, i); | - |
1122 | returnexecuted 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 | returnexecuted 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 | } | - |
1128 | QUrl::QUrl(const QString &url, ParsingMode parsingMode) : d(0) | - |
1129 | { | - |
1130 | setUrl(url, parsingMode); | - |
1131 | }executed 8701 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_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- ...
| 8701 |
1132 | | - |
1133 | | - |
1134 | | - |
1135 | | - |
1136 | QUrl::QUrl() : d(0) | - |
1137 | { | - |
1138 | }executed 45628 times by 87 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
- ...
| 45628 |
1139 | | - |
1140 | | - |
1141 | | - |
1142 | | - |
1143 | QUrl::QUrl(const QUrl &other) : d(other.d) | - |
1144 | { | - |
1145 | if (dTRUE | evaluated 63712 times by 51 testsEvaluated 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
- ...
| FALSE | evaluated 10150 times by 25 testsEvaluated 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_qnetworkreply - unknown status
- tst_selftests - unknown status
|
) | 10150-63712 |
1146 | d->ref.ref();executed 63712 times by 51 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
- ...
| 63712 |
1147 | }executed 73862 times by 53 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
- ...
| 73862 |
1148 | | - |
1149 | | - |
1150 | | - |
1151 | | - |
1152 | QUrl::~QUrl() | - |
1153 | { | - |
1154 | if (dTRUE | evaluated 94783 times by 63 testsEvaluated 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
- ...
| FALSE | evaluated 37669 times by 85 testsEvaluated 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_QInputDialog
- tst_QItemDelegate
- tst_QLabel
- tst_QMainWindow
- ...
|
&& !d->ref.deref()TRUE | evaluated 32476 times by 63 testsEvaluated 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
- ...
| FALSE | evaluated 62307 times by 53 testsEvaluated 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
- ...
|
) | 32476-94783 |
1155 | delete d;executed 32476 times by 63 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
- ...
| 32476 |
1156 | }executed 132452 times by 100 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
- ...
| 132452 |
1157 | bool QUrl::isValid() const | - |
1158 | { | - |
1159 | if (isEmpty()TRUE | evaluated 299 times by 15 testsEvaluated 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 | evaluated 16114 times by 32 testsEvaluated 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
- ...
|
) { | 299-16114 |
1160 | | - |
1161 | returnexecuted 299 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 299 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
| 299 |
1162 | } | - |
1163 | returnexecuted 16114 times by 32 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 16114 times by 32 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
- ...
| 16114 |
1164 | } | - |
1165 | | - |
1166 | | - |
1167 | | - |
1168 | | - |
1169 | | - |
1170 | | - |
1171 | bool QUrl::isEmpty() const | - |
1172 | { | - |
1173 | if (!dTRUE | evaluated 893 times by 17 testsEvaluated 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
| FALSE | evaluated 16759 times by 33 testsEvaluated 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
- ...
|
) returnexecuted 893 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 893 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
| 893-16759 |
1174 | returnexecuted 16759 times by 33 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 16759 times by 33 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
- ...
| 16759 |
1175 | } | - |
1176 | void QUrl::clear() | - |
1177 | { | - |
1178 | if (dTRUE | evaluated 108 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QUrl
| FALSE | never evaluated |
&& !d->ref.deref()TRUE | evaluated 108 times by 3 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QUrl
| FALSE | never evaluated |
) | 0-108 |
1179 | delete d;executed 108 times by 3 tests: delete d; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QUrl
| 108 |
1180 | d = 0; | - |
1181 | }executed 108 times by 3 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QUrl
| 108 |
1182 | void QUrl::setUrl(const QString &url, ParsingMode parsingMode) | - |
1183 | { | - |
1184 | if (parsingMode == DecodedModeTRUE | never evaluated | FALSE | evaluated 9955 times by 35 testsEvaluated 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-9955 |
1185 | QMessageLogger(__FILE__, 1902, __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 9955 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_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
- ...
| 9955 |
1190 | } | - |
1191 | void QUrl::setScheme(const QString &scheme) | - |
1192 | { | - |
1193 | detach(); | - |
1194 | d->clearError(); | - |
1195 | if (scheme.isEmpty()TRUE | evaluated 6194 times by 26 testsEvaluated 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
- ...
| FALSE | evaluated 5864 times by 18 testsEvaluated 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
|
) { | 5864-6194 |
1196 | | - |
1197 | d->sectionIsPresent &= ~QUrlPrivate::Scheme; | - |
1198 | d->flags &= ~QUrlPrivate::IsLocalFile; | - |
1199 | d->scheme.clear(); | - |
1200 | }executed 6194 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 { | 6194 |
1201 | d->setScheme(scheme, scheme.length(), true); | - |
1202 | }executed 5864 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
| 5864 |
1203 | } | - |
1204 | QString QUrl::scheme() const | - |
1205 | { | - |
1206 | if (!dTRUE | evaluated 560 times by 10 testsEvaluated 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
| FALSE | evaluated 11019 times by 28 testsEvaluated 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
- ...
|
) returnexecuted 560 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 560 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
| 560-11019 |
1207 | | - |
1208 | returnexecuted 11019 times by 28 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 11019 times by 28 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
- ...
| 11019 |
1209 | } | - |
1210 | void QUrl::setAuthority(const QString &authority, ParsingMode mode) | - |
1211 | { | - |
1212 | detach(); | - |
1213 | d->clearError(); | - |
1214 | | - |
1215 | if (mode == DecodedModeTRUE | never evaluated | FALSE | evaluated 31 times by 1 test |
) { | 0-31 |
1216 | QMessageLogger(__FILE__, 2016, __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()TRUE | evaluated 13 times by 1 test | FALSE | evaluated 18 times by 1 test |
) { | 13-18 |
1222 | | - |
1223 | | - |
1224 | d->sectionIsPresent &= ~QUrlPrivate::Authority; | - |
1225 | }executed 13 times by 1 test: end of block | 13 |
1226 | }executed 31 times by 1 test: end of block | 31 |
1227 | QString QUrl::authority(ComponentFormattingOptions options) const | - |
1228 | { | - |
1229 | if (!dTRUE | evaluated 1 time by 1 test | FALSE | evaluated 177 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) returnexecuted 1 time by 1 test: return QString(); QString();executed 1 time by 1 test: return QString(); | 1-177 |
1230 | | - |
1231 | if (options == QUrl::FullyDecodedTRUE | never evaluated | FALSE | evaluated 177 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) { | 0-177 |
1232 | QMessageLogger(__FILE__, 2048, __PRETTY_FUNCTION__).warning("QUrl::authority(): QUrl::FullyDecoded is not permitted in this function"); | - |
1233 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
1234 | } | - |
1235 | | - |
1236 | QString result; | - |
1237 | d->appendAuthority(result, options, QUrlPrivate::Authority); | - |
1238 | returnexecuted 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 |
1239 | } | - |
1240 | void QUrl::setUserInfo(const QString &userInfo, ParsingMode mode) | - |
1241 | { | - |
1242 | detach(); | - |
1243 | d->clearError(); | - |
1244 | QString trimmed = userInfo.trimmed(); | - |
1245 | if (mode == DecodedModeTRUE | never evaluated | FALSE | evaluated 51 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
) { | 0-51 |
1246 | QMessageLogger(__FILE__, 2086, __PRETTY_FUNCTION__).warning("QUrl::setUserInfo(): QUrl::DecodedMode is not permitted in this function"); | - |
1247 | return; never executed: return; | 0 |
1248 | } | - |
1249 | | - |
1250 | d->setUserInfo(trimmed, 0, trimmed.length()); | - |
1251 | if (userInfo.isNull()TRUE | evaluated 41 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
) { | 10-41 |
1252 | | - |
1253 | | - |
1254 | d->sectionIsPresent &= ~QUrlPrivate::UserInfo; | - |
1255 | }executed 41 times by 2 tests: end of block Executed by:- tst_QNetworkReply
- tst_QUrl
else if (mode == StrictModeTRUE | evaluated 5 times by 1 test | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
&& !d->validateComponent(QUrlPrivate::UserInfo, userInfo)TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
) { | 0-41 |
1256 | d->sectionIsPresent &= ~QUrlPrivate::UserInfo; | - |
1257 | d->userName.clear(); | - |
1258 | d->password.clear(); | - |
1259 | }executed 5 times by 1 test: end of block | 5 |
1260 | }executed 51 times by 2 tests: end of block Executed by:- tst_QNetworkReply
- tst_QUrl
| 51 |
1261 | QString QUrl::userInfo(ComponentFormattingOptions options) const | - |
1262 | { | - |
1263 | if (!dTRUE | evaluated 1 time by 1 test | FALSE | evaluated 2514 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) returnexecuted 1 time by 1 test: return QString(); QString();executed 1 time by 1 test: return QString(); | 1-2514 |
1264 | | - |
1265 | if (options == QUrl::FullyDecodedTRUE | never evaluated | FALSE | evaluated 2514 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) { | 0-2514 |
1266 | QMessageLogger(__FILE__, 2121, __PRETTY_FUNCTION__).warning("QUrl::userInfo(): QUrl::FullyDecoded is not permitted in this function"); | - |
1267 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
1268 | } | - |
1269 | | - |
1270 | QString result; | - |
1271 | d->appendUserInfo(result, options, QUrlPrivate::UserInfo); | - |
1272 | returnexecuted 2514 times by 10 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
- tst_qnetworkreply - unknown status
result;executed 2514 times by 10 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
- tst_qnetworkreply - unknown status
| 2514 |
1273 | } | - |
1274 | void QUrl::setUserName(const QString &userName, ParsingMode mode) | - |
1275 | { | - |
1276 | detach(); | - |
1277 | d->clearError(); | - |
1278 | | - |
1279 | QString data = userName; | - |
1280 | if (mode == DecodedModeTRUE | evaluated 1888 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 9 times by 1 test |
) { | 9-1888 |
1281 | parseDecodedComponent(data); | - |
1282 | mode = TolerantMode; | - |
1283 | }executed 1888 times by 3 tests: end of block Executed by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 1888 |
1284 | | - |
1285 | d->setUserName(data, 0, data.length()); | - |
1286 | if (userName.isNull()TRUE | evaluated 532 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 1365 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) | 532-1365 |
1287 | d->sectionIsPresent &= ~QUrlPrivate::UserName;executed 532 times by 3 tests: d->sectionIsPresent &= ~QUrlPrivate::UserName; Executed by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 532 |
1288 | else if (mode == StrictModeTRUE | evaluated 4 times by 1 test | FALSE | evaluated 1361 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
&& !d->validateComponent(QUrlPrivate::UserName, userName)TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) | 0-1361 |
1289 | d->userName.clear();executed 4 times by 1 test: d->userName.clear(); | 4 |
1290 | }executed 1897 times by 3 tests: end of block Executed by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 1897 |
1291 | QString QUrl::userName(ComponentFormattingOptions options) const | - |
1292 | { | - |
1293 | if (!dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 783 times by 3 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
|
) returnexecuted 2 times by 1 test: return QString(); QString();executed 2 times by 1 test: return QString(); | 2-783 |
1294 | | - |
1295 | QString result; | - |
1296 | d->appendUserName(result, options); | - |
1297 | returnexecuted 783 times by 3 tests: return result; Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
result;executed 783 times by 3 tests: return result; Executed by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
| 783 |
1298 | } | - |
1299 | void QUrl::setPassword(const QString &password, ParsingMode mode) | - |
1300 | { | - |
1301 | detach(); | - |
1302 | d->clearError(); | - |
1303 | | - |
1304 | QString data = password; | - |
1305 | if (mode == DecodedModeTRUE | evaluated 446 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 7 times by 1 test |
) { | 7-446 |
1306 | parseDecodedComponent(data); | - |
1307 | mode = TolerantMode; | - |
1308 | }executed 446 times by 5 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
| 446 |
1309 | | - |
1310 | d->setPassword(data, 0, data.length()); | - |
1311 | if (password.isNull()TRUE | evaluated 437 times by 5 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 16 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
) | 16-437 |
1312 | 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 |
1313 | else if (mode == StrictModeTRUE | evaluated 4 times by 1 test | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
&& !d->validateComponent(QUrlPrivate::Password, password)TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) | 0-12 |
1314 | d->password.clear();executed 4 times by 1 test: d->password.clear(); | 4 |
1315 | }executed 453 times by 5 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
| 453 |
1316 | QString QUrl::password(ComponentFormattingOptions options) const | - |
1317 | { | - |
1318 | if (!dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 577 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) returnexecuted 2 times by 1 test: return QString(); QString();executed 2 times by 1 test: return QString(); | 2-577 |
1319 | | - |
1320 | QString result; | - |
1321 | d->appendPassword(result, options); | - |
1322 | returnexecuted 577 times by 6 tests: return result; Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
result;executed 577 times by 6 tests: return result; Executed by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 577 |
1323 | } | - |
1324 | void QUrl::setHost(const QString &host, ParsingMode mode) | - |
1325 | { | - |
1326 | detach(); | - |
1327 | d->clearError(); | - |
1328 | | - |
1329 | QString data = host; | - |
1330 | if (mode == DecodedModeTRUE | evaluated 6961 times by 27 testsEvaluated 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
- ...
| FALSE | evaluated 5 times by 1 test |
) { | 5-6961 |
1331 | parseDecodedComponent(data); | - |
1332 | mode = TolerantMode; | - |
1333 | }executed 6961 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
- ...
| 6961 |
1334 | | - |
1335 | if (d->setHost(data, 0, data.length(), mode)TRUE | evaluated 6885 times by 27 testsEvaluated 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
- ...
| FALSE | evaluated 81 times by 7 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
|
) { | 81-6885 |
1336 | if (host.isNull()TRUE | evaluated 181 times by 7 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSocketNotifier
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 6704 times by 27 testsEvaluated 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-6704 |
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 6885 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('['))TRUE | evaluated 81 times by 7 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | never evaluated |
) { | 0-6885 |
1339 | | - |
1340 | ((!(d->error)) ? qt_assert("d->error",__FILE__,2351) : qt_noop()); | - |
1341 | | - |
1342 | data.prepend(QLatin1Char('[')); | - |
1343 | data.append(QLatin1Char(']')); | - |
1344 | if (!d->setHost(data, 0, data.length(), mode)TRUE | evaluated 27 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrl
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 54 times by 5 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
|
) { | 27-54 |
1345 | | - |
1346 | if (data.contains(QLatin1Char(':'))TRUE | evaluated 8 times by 4 testsEvaluated by:- tst_QNetworkProxyFactory
- tst_QTcpServer
- tst_QUrlInternal
- tst_Spdy
| FALSE | evaluated 19 times by 2 tests |
) { | 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 6966 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
- ...
| 6966 |
1356 | QString QUrl::host(ComponentFormattingOptions options) const | - |
1357 | { | - |
1358 | if (!dTRUE | evaluated 2576 times by 20 testsEvaluated 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
| FALSE | evaluated 10126 times by 34 testsEvaluated 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
- ...
|
) returnexecuted 2576 times by 20 tests: return QString(); Executed 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
QString();executed 2576 times by 20 tests: return QString(); Executed 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
| 2576-10126 |
1359 | | - |
1360 | QString result; | - |
1361 | d->appendHost(result, options); | - |
1362 | if (result.startsWith(QLatin1Char('['))TRUE | evaluated 53 times by 7 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| FALSE | evaluated 10073 times by 34 testsEvaluated 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-10073 |
1363 | returnexecuted 53 times by 7 tests: return result.mid(1, result.length() - 2); Executed by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
result.mid(1, result.length() - 2);executed 53 times by 7 tests: return result.mid(1, result.length() - 2); Executed by:- tst_QNetworkCookieJar
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QTcpServer
- tst_QTcpSocket
- tst_QUdpSocket
- tst_QUrl
| 53 |
1364 | returnexecuted 10073 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 10073 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
- ...
| 10073 |
1365 | } | - |
1366 | void QUrl::setPort(int port) | - |
1367 | { | - |
1368 | detach(); | - |
1369 | d->clearError(); | - |
1370 | | - |
1371 | if (port < -1TRUE | evaluated 1 time by 1 test | FALSE | evaluated 7715 times by 30 testsEvaluated 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 > 65535TRUE | evaluated 2 times by 1 test | FALSE | evaluated 7713 times by 30 testsEvaluated 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-7715 |
1372 | d->setError(QUrlPrivate::InvalidPortError, QString::number(port), 0); | - |
1373 | port = -1; | - |
1374 | }executed 3 times by 1 test: end of block | 3 |
1375 | | - |
1376 | d->port = port; | - |
1377 | }executed 7716 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
- ...
| 7716 |
1378 | int QUrl::port(int defaultPort) const | - |
1379 | { | - |
1380 | if (!dTRUE | evaluated 1 time by 1 test | FALSE | evaluated 4126 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
) returnexecuted 1 time by 1 test: return defaultPort; defaultPort;executed 1 time by 1 test: return defaultPort; | 1-4126 |
1381 | returnexecuted 4126 times by 10 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
- tst_qnetworkreply - unknown status
d->port == -1TRUE | evaluated 2323 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 1803 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
? defaultPort : d->port;executed 4126 times by 10 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
- tst_qnetworkreply - unknown status
| 1803-4126 |
1382 | } | - |
1383 | void QUrl::setPath(const QString &path, ParsingMode mode) | - |
1384 | { | - |
1385 | detach(); | - |
1386 | d->clearError(); | - |
1387 | | - |
1388 | QString data = path; | - |
1389 | if (mode == DecodedModeTRUE | evaluated 5472 times by 17 testsEvaluated 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
- tst_qnetworkreply - unknown status
| FALSE | evaluated 12 times by 1 test |
) { | 12-5472 |
1390 | parseDecodedComponent(data); | - |
1391 | mode = TolerantMode; | - |
1392 | }executed 5472 times by 17 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
- tst_qnetworkreply - unknown status
| 5472 |
1393 | | - |
1394 | int from = 0; | - |
1395 | while (from < data.length() - 2TRUE | evaluated 5148 times by 11 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QUrl
- tst_QXmlStream
- tst_languageChange
- tst_qfileopenevent
| FALSE | evaluated 338 times by 11 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QHttpNetworkConnection
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QSidebar
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
&& data.midRef(from, 2) == QLatin1String("//")TRUE | evaluated 2 times by 1 test | FALSE | evaluated 5146 times by 11 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QUrl
- tst_QXmlStream
- tst_languageChange
- tst_qfileopenevent
|
) | 2-5148 |
1396 | ++executed 2 times by 1 test: ++from; from;executed 2 times by 1 test: ++from; | 2 |
1397 | d->setPath(data, from, data.length()); | - |
1398 | | - |
1399 | | - |
1400 | | - |
1401 | | - |
1402 | | - |
1403 | if (mode == StrictModeTRUE | evaluated 4 times by 1 test | FALSE | evaluated 5480 times by 17 testsEvaluated 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
- tst_qnetworkreply - unknown status
|
&& !d->validateComponent(QUrlPrivate::Path, path)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) | 2-5480 |
1404 | d->path.clear();executed 2 times by 1 test: d->path.clear(); | 2 |
1405 | }executed 5484 times by 17 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
- tst_qnetworkreply - unknown status
| 5484 |
1406 | QString QUrl::path(ComponentFormattingOptions options) const | - |
1407 | { | - |
1408 | if (!dTRUE | evaluated 7 times by 3 testsEvaluated by:- tst_QAccessibility
- tst_QTextBrowser
- tst_QUrl
| FALSE | evaluated 4804 times by 20 testsEvaluated 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
- tst_qnetworkreply - unknown status
|
) returnexecuted 7 times by 3 tests: return QString(); Executed by:- tst_QAccessibility
- tst_QTextBrowser
- tst_QUrl
QString();executed 7 times by 3 tests: return QString(); Executed by:- tst_QAccessibility
- tst_QTextBrowser
- tst_QUrl
| 7-4804 |
1409 | | - |
1410 | QString result; | - |
1411 | d->appendPath(result, options, QUrlPrivate::Path); | - |
1412 | returnexecuted 4804 times by 20 tests: return result; 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
- tst_qnetworkreply - unknown status
result;executed 4804 times by 20 tests: return result; 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
- tst_qnetworkreply - unknown status
| 4804 |
1413 | } | - |
1414 | QString QUrl::fileName(ComponentFormattingOptions options) const | - |
1415 | { | - |
1416 | const QString ourPath = path(options); | - |
1417 | const int slash = ourPath.lastIndexOf(QLatin1Char('/')); | - |
1418 | if (slash == -1TRUE | evaluated 2 times by 1 test | FALSE | evaluated 15 times by 1 test |
) | 2-15 |
1419 | returnexecuted 2 times by 1 test: return ourPath; ourPath;executed 2 times by 1 test: return ourPath; | 2 |
1420 | returnexecuted 15 times by 1 test: return ourPath.mid(slash + 1); ourPath.mid(slash + 1);executed 15 times by 1 test: return ourPath.mid(slash + 1); | 15 |
1421 | } | - |
1422 | bool QUrl::hasQuery() const | - |
1423 | { | - |
1424 | if (!dTRUE | never evaluated | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
) returnnever executed: return false; false;never executed: return false; | 0-26 |
1425 | returnexecuted 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 |
1426 | } | - |
1427 | void QUrl::setQuery(const QString &query, ParsingMode mode) | - |
1428 | { | - |
1429 | detach(); | - |
1430 | d->clearError(); | - |
1431 | | - |
1432 | QString data = query; | - |
1433 | if (mode == DecodedModeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 158 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) { | 1-158 |
1434 | parseDecodedComponent(data); | - |
1435 | mode = TolerantMode; | - |
1436 | }executed 1 time by 1 test: end of block | 1 |
1437 | | - |
1438 | d->setQuery(data, 0, data.length()); | - |
1439 | if (query.isNull()TRUE | evaluated 7 times by 1 test | FALSE | evaluated 152 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) | 7-152 |
1440 | d->sectionIsPresent &= ~QUrlPrivate::Query;executed 7 times by 1 test: d->sectionIsPresent &= ~QUrlPrivate::Query; | 7 |
1441 | else if (mode == StrictModeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 150 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
&& !d->validateComponent(QUrlPrivate::Query, query)TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-150 |
1442 | d->query.clear();executed 2 times by 1 test: d->query.clear(); | 2 |
1443 | }executed 159 times by 3 tests: end of block Executed by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 159 |
1444 | void QUrl::setQuery(const QUrlQuery &query) | - |
1445 | { | - |
1446 | detach(); | - |
1447 | d->clearError(); | - |
1448 | | - |
1449 | | - |
1450 | d->query = query.toString(); | - |
1451 | if (query.isEmpty()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
1452 | d->sectionIsPresent &= ~QUrlPrivate::Query; never executed: d->sectionIsPresent &= ~QUrlPrivate::Query; | 0 |
1453 | else | - |
1454 | d->sectionIsPresent |= QUrlPrivate::Query; never executed: d->sectionIsPresent |= QUrlPrivate::Query; | 0 |
1455 | } | - |
1456 | QString QUrl::query(ComponentFormattingOptions options) const | - |
1457 | { | - |
1458 | if (!dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 189 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) returnexecuted 2 times by 1 test: return QString(); QString();executed 2 times by 1 test: return QString(); | 2-189 |
1459 | | - |
1460 | QString result; | - |
1461 | d->appendQuery(result, options, QUrlPrivate::Query); | - |
1462 | if (d->hasQuery()TRUE | evaluated 166 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 23 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
&& result.isNull()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 164 times by 3 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
|
) | 2-166 |
1463 | result.detach();executed 2 times by 1 test: result.detach(); | 2 |
1464 | returnexecuted 189 times by 3 tests: return result; Executed by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
result;executed 189 times by 3 tests: return result; Executed by:- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 189 |
1465 | } | - |
1466 | void QUrl::setFragment(const QString &fragment, ParsingMode mode) | - |
1467 | { | - |
1468 | detach(); | - |
1469 | d->clearError(); | - |
1470 | | - |
1471 | QString data = fragment; | - |
1472 | if (mode == DecodedModeTRUE | evaluated 1 time by 1 test | FALSE | evaluated 1695 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
|
) { | 1-1695 |
1473 | parseDecodedComponent(data); | - |
1474 | mode = TolerantMode; | - |
1475 | }executed 1 time by 1 test: end of block | 1 |
1476 | | - |
1477 | d->setFragment(data, 0, data.length()); | - |
1478 | if (fragment.isNull()TRUE | evaluated 1029 times by 8 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 667 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
|
) | 667-1029 |
1479 | 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 |
1480 | else if (mode == StrictModeTRUE | evaluated 2 times by 1 test | FALSE | evaluated 665 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
|
&& !d->validateComponent(QUrlPrivate::Fragment, fragment)TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-665 |
1481 | d->fragment.clear();executed 2 times by 1 test: d->fragment.clear(); | 2 |
1482 | }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 |
1483 | QString QUrl::fragment(ComponentFormattingOptions options) const | - |
1484 | { | - |
1485 | if (!dTRUE | evaluated 2 times by 1 test | FALSE | evaluated 128 times by 2 tests |
) returnexecuted 2 times by 1 test: return QString(); QString();executed 2 times by 1 test: return QString(); | 2-128 |
1486 | | - |
1487 | QString result; | - |
1488 | d->appendFragment(result, options, QUrlPrivate::Fragment); | - |
1489 | if (d->hasFragment()TRUE | evaluated 59 times by 2 tests | FALSE | evaluated 69 times by 2 tests |
&& result.isNull()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 57 times by 2 tests |
) | 2-69 |
1490 | result.detach();executed 2 times by 1 test: result.detach(); | 2 |
1491 | returnexecuted 128 times by 2 tests: return result; result;executed 128 times by 2 tests: return result; | 128 |
1492 | } | - |
1493 | bool QUrl::hasFragment() const | - |
1494 | { | - |
1495 | if (!dTRUE | never evaluated | FALSE | evaluated 137 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
- tst_QUrl
|
) returnnever executed: return false; false;never executed: return false; | 0-137 |
1496 | returnexecuted 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 |
1497 | } | - |
1498 | QString QUrl::topLevelDomain(ComponentFormattingOptions options) const | - |
1499 | { | - |
1500 | QString tld = qTopLevelDomain(host()); | - |
1501 | if (options & EncodeUnicodeTRUE | evaluated 18 times by 1 test | FALSE | evaluated 18 times by 1 test |
) { | 18 |
1502 | returnexecuted 18 times by 1 test: return qt_ACE_do(tld, ToAceOnly, AllowLeadingDot); qt_ACE_do(tld, ToAceOnly, AllowLeadingDot);executed 18 times by 1 test: return qt_ACE_do(tld, ToAceOnly, AllowLeadingDot); | 18 |
1503 | } | - |
1504 | returnexecuted 18 times by 1 test: return tld; tld;executed 18 times by 1 test: return tld; | 18 |
1505 | } | - |
1506 | QUrl QUrl::resolved(const QUrl &relative) const | - |
1507 | { | - |
1508 | if (!dTRUE | evaluated 150 times by 7 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
| FALSE | evaluated 4486 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) returnexecuted 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 |
1509 | if (!relative.dTRUE | never evaluated | FALSE | evaluated 4486 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) returnnever executed: return *this; *this;never executed: return *this; | 0-4486 |
1510 | | - |
1511 | QUrl t; | - |
1512 | | - |
1513 | if (!relative.d->scheme.isEmpty()TRUE | evaluated 1084 times by 3 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QUrl
| FALSE | evaluated 3402 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
&& (!relative.isLocalFile()TRUE | evaluated 1053 times by 2 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QUrl
| FALSE | evaluated 31 times by 1 test |
|| QDir::isAbsolutePath(relative.d->path)TRUE | evaluated 10 times by 1 test | FALSE | evaluated 21 times by 1 test |
)) { | 10-3402 |
1514 | t = relative; | - |
1515 | t.detach(); | - |
1516 | }executed 1063 times by 3 tests: end of block Executed by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QUrl
else { | 1063 |
1517 | if (relative.d->hasAuthority()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 3421 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) { | 2-3421 |
1518 | t = relative; | - |
1519 | t.detach(); | - |
1520 | }executed 2 times by 1 test: end of block else { | 2 |
1521 | t.d = new QUrlPrivate; | - |
1522 | | - |
1523 | | - |
1524 | t.d->userName = d->userName; | - |
1525 | t.d->password = d->password; | - |
1526 | t.d->host = d->host; | - |
1527 | t.d->port = d->port; | - |
1528 | t.d->sectionIsPresent = d->sectionIsPresent & QUrlPrivate::Authority; | - |
1529 | | - |
1530 | if (relative.d->path.isEmpty()TRUE | evaluated 5 times by 2 tests | FALSE | evaluated 3416 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) { | 5-3416 |
1531 | t.d->path = d->path; | - |
1532 | if (relative.d->hasQuery()TRUE | evaluated 1 time by 1 test | FALSE | evaluated 4 times by 2 tests |
) { | 1-4 |
1533 | t.d->query = relative.d->query; | - |
1534 | t.d->sectionIsPresent |= QUrlPrivate::Query; | - |
1535 | }executed 1 time by 1 test: end of block else if (d->hasQuery()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 1-2 |
1536 | t.d->query = d->query; | - |
1537 | t.d->sectionIsPresent |= QUrlPrivate::Query; | - |
1538 | }executed 2 times by 1 test: end of block | 2 |
1539 | }executed 5 times by 2 tests: end of block else { | 5 |
1540 | t.d->path = relative.d->path.startsWith(QLatin1Char('/'))TRUE | evaluated 27 times by 2 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QUrl
| FALSE | evaluated 3389 times by 4 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
| 27-3389 |
1541 | ? relative.d->path | - |
1542 | : d->mergePaths(relative.d->path); | - |
1543 | if (relative.d->hasQuery()TRUE | evaluated 25 times by 2 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QUrl
| FALSE | evaluated 3391 times by 4 testsEvaluated by:- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) { | 25-3391 |
1544 | t.d->query = relative.d->query; | - |
1545 | t.d->sectionIsPresent |= QUrlPrivate::Query; | - |
1546 | }executed 25 times by 2 tests: end of block Executed by:- tst_QNetworkCookieJar
- tst_QUrl
| 25 |
1547 | }executed 3416 times by 5 tests: end of block Executed by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| 3416 |
1548 | } | - |
1549 | t.d->scheme = d->scheme; | - |
1550 | if (d->hasScheme()TRUE | evaluated 3411 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| FALSE | evaluated 12 times by 2 tests |
) | 12-3411 |
1551 | 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 |
1552 | else | - |
1553 | t.d->sectionIsPresent &= ~QUrlPrivate::Scheme;executed 12 times by 2 tests: t.d->sectionIsPresent &= ~QUrlPrivate::Scheme; | 12 |
1554 | t.d->flags |= d->flags & QUrlPrivate::IsLocalFile; | - |
1555 | }executed 3423 times by 5 tests: end of block Executed by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
| 3423 |
1556 | t.d->fragment = relative.d->fragment; | - |
1557 | if (relative.d->hasFragment()TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 4476 times by 5 testsEvaluated by:- tst_QNetworkCookieJar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_QXmlStream
|
) | 10-4476 |
1558 | t.d->sectionIsPresent |= QUrlPrivate::Fragment;executed 10 times by 2 tests: t.d->sectionIsPresent |= QUrlPrivate::Fragment; | 10 |
1559 | else | - |
1560 | 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 |
1561 | | - |
1562 | removeDotsFromPath(&t.d->path); | - |
1563 | | - |
1564 | | - |
1565 | | - |
1566 | | - |
1567 | | - |
1568 | | - |
1569 | | - |
1570 | returnexecuted 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 |
1571 | } | - |
1572 | bool QUrl::isRelative() const | - |
1573 | { | - |
1574 | if (!dTRUE | evaluated 3 times by 1 test | FALSE | evaluated 425 times by 8 testsEvaluated by:- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
- tst_QUrl
- tst_qnetworkreply - unknown status
|
) returnexecuted 3 times by 1 test: return true; true;executed 3 times by 1 test: return true; | 3-425 |
1575 | returnexecuted 425 times by 8 tests: return !d->hasScheme(); Executed by:- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
- tst_QUrl
- tst_qnetworkreply - unknown status
!d->hasScheme();executed 425 times by 8 tests: return !d->hasScheme(); Executed by:- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
- tst_QUrl
- tst_qnetworkreply - unknown status
| 425 |
1576 | } | - |
1577 | QString QUrl::url(FormattingOptions options) const | - |
1578 | { | - |
1579 | returnexecuted 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 |
1580 | } | - |
1581 | QString QUrl::toString(FormattingOptions options) const | - |
1582 | { | - |
1583 | if (!isValid()TRUE | evaluated 149 times by 5 testsEvaluated by:- tst_QFileDialog2
- tst_QTextBrowser
- tst_QUrl
- tst_QVariant
- tst_languageChange
| FALSE | evaluated 9059 times by 30 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
|
) { | 149-9059 |
1584 | | - |
1585 | returnexecuted 149 times by 5 tests: return QString(); Executed by:- tst_QFileDialog2
- tst_QTextBrowser
- tst_QUrl
- tst_QVariant
- tst_languageChange
QString();executed 149 times by 5 tests: return QString(); Executed by:- tst_QFileDialog2
- tst_QTextBrowser
- tst_QUrl
- tst_QVariant
- tst_languageChange
| 149 |
1586 | } | - |
1587 | if (options == QUrl::FullyDecodedTRUE | never evaluated | FALSE | evaluated 9059 times by 30 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
|
) { | 0-9059 |
1588 | QMessageLogger(__FILE__, 3276, __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)TRUE | evaluated 7 times by 1 test | FALSE | evaluated 9052 times by 30 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
|
&& !options.testFlag(QUrl::RemovePath)TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
| 0-9052 |
1599 | && (!d->hasQuery()TRUE | evaluated 7 times by 1 test | FALSE | never evaluated |
|| options.testFlag(QUrl::RemoveQuery)TRUE | never evaluated | FALSE | never evaluated |
) | 0-7 |
1600 | && (!d->hasFragment()TRUE | evaluated 6 times by 1 test | FALSE | evaluated 1 time by 1 test |
|| options.testFlag(QUrl::RemoveFragment)TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
) | 0-6 |
1601 | && isLocalFile()TRUE | evaluated 4 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 2-4 |
1602 | returnexecuted 4 times by 1 test: return d->toLocalFile(options); d->toLocalFile(options);executed 4 times by 1 test: return d->toLocalFile(options); | 4 |
1603 | } | - |
1604 | | - |
1605 | QString url; | - |
1606 | | - |
1607 | | - |
1608 | if (options & DecodeReservedTRUE | evaluated 35 times by 1 test | FALSE | evaluated 9020 times by 30 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
|
) | 35-9020 |
1609 | options &= ~EncodeReserved;executed 35 times by 1 test: options &= ~EncodeReserved; | 35 |
1610 | else | - |
1611 | options |= EncodeReserved;executed 9020 times by 30 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
| 9020 |
1612 | | - |
1613 | if (!(options & QUrl::RemoveScheme)TRUE | evaluated 7062 times by 28 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_languageChange
- ...
| FALSE | evaluated 1993 times by 11 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
&& d->hasScheme()TRUE | evaluated 6806 times by 25 testsEvaluated 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
| FALSE | evaluated 256 times by 7 testsEvaluated by:- tst_NetworkSelfTest
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
|
) | 256-7062 |
1614 | url += d->scheme + QLatin1Char(':');executed 6806 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
| 6806 |
1615 | | - |
1616 | bool pathIsAbsolute = d->path.startsWith(QLatin1Char('/')); | - |
1617 | if (!((options & QUrl::RemoveAuthority) == QUrl::RemoveAuthority)TRUE | evaluated 7091 times by 29 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
| FALSE | evaluated 1964 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
&& d->hasAuthority()TRUE | evaluated 5488 times by 21 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
| FALSE | evaluated 1603 times by 14 testsEvaluated 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
|
) { | 1603-7091 |
1618 | url += QLatin1String("//"); | - |
1619 | d->appendAuthority(url, options, QUrlPrivate::FullUrl); | - |
1620 | }executed 5488 times by 21 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qdesktopservices
- tst_qfileopenevent
- tst_selftests - unknown status
else if (isLocalFile()TRUE | evaluated 1317 times by 9 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QUrl
- tst_languageChange
| FALSE | evaluated 2250 times by 16 testsEvaluated 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
- tst_qnetworkreply - unknown status
|
&& pathIsAbsoluteTRUE | evaluated 1033 times by 9 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QUrl
- tst_languageChange
| FALSE | evaluated 284 times by 6 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QTextBrowser
- tst_QUrl
- tst_languageChange
|
) { | 284-5488 |
1621 | | - |
1622 | url += QLatin1String("//"); | - |
1623 | }executed 1033 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
| 1033 |
1624 | | - |
1625 | if (!(options & QUrl::RemovePath)TRUE | evaluated 7149 times by 30 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
| FALSE | evaluated 1906 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
|
) | 1906-7149 |
1626 | d->appendPath(url, options, QUrlPrivate::FullUrl);executed 7149 times by 30 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
| 7149 |
1627 | | - |
1628 | if (!(options & QUrl::RemoveQuery)TRUE | evaluated 7141 times by 30 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
| FALSE | evaluated 1914 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
|
&& d->hasQuery()TRUE | evaluated 533 times by 4 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 6608 times by 30 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
|
) { | 533-7141 |
1629 | url += QLatin1Char('?'); | - |
1630 | d->appendQuery(url, options, QUrlPrivate::FullUrl); | - |
1631 | }executed 533 times by 4 tests: end of block Executed by:- tst_QAbstractNetworkCache
- tst_QNetworkReply
- tst_QUrl
- tst_Spdy
| 533 |
1632 | if (!(options & QUrl::RemoveFragment)TRUE | evaluated 6050 times by 26 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_languageChange
- tst_qdesktopservices
- tst_qfileopenevent
- ...
| FALSE | evaluated 3005 times by 10 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QHttpNetworkConnection
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QUrl
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
|
&& d->hasFragment()TRUE | evaluated 792 times by 4 testsEvaluated by:- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
| FALSE | evaluated 5258 times by 26 testsEvaluated 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_QUrlInternal
- tst_QVariant
- tst_Spdy
- tst_languageChange
- tst_qdesktopservices
- tst_qfileopenevent
- ...
|
) { | 792-6050 |
1633 | url += QLatin1Char('#'); | - |
1634 | d->appendFragment(url, options, QUrlPrivate::FullUrl); | - |
1635 | }executed 792 times by 4 tests: end of block Executed by:- tst_QNetworkReply
- tst_QTextBrowser
- tst_QUrl
- tst_Spdy
| 792 |
1636 | | - |
1637 | returnexecuted 9055 times by 30 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
url;executed 9055 times by 30 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- ...
| 9055 |
1638 | } | - |
1639 | QString QUrl::toDisplayString(FormattingOptions options) const | - |
1640 | { | - |
1641 | returnexecuted 258 times by 5 tests: return toString(options | RemovePassword); Executed by:- tst_QMimeData
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
toString(options | RemovePassword);executed 258 times by 5 tests: return toString(options | RemovePassword); Executed by:- tst_QMimeData
- tst_QNetworkReply
- tst_QUrl
- tst_QUrlInternal
- tst_QVariant
| 258 |
1642 | } | - |
1643 | QUrl QUrl::adjusted(QUrl::FormattingOptions options) const | - |
1644 | { | - |
1645 | if (!isValid()TRUE | never evaluated | FALSE | evaluated 66 times by 1 test |
) { | 0-66 |
1646 | | - |
1647 | return never executed: return QUrl(); QUrl();never executed: return QUrl(); | 0 |
1648 | } | - |
1649 | QUrl that = *this; | - |
1650 | if (options & RemoveSchemeTRUE | evaluated 8 times by 1 test | FALSE | evaluated 58 times by 1 test |
) | 8-58 |
1651 | that.setScheme(QString());executed 8 times by 1 test: that.setScheme(QString()); | 8 |
1652 | if ((TRUE | evaluated 8 times by 1 test | FALSE | evaluated 58 times by 1 test |
options & RemoveAuthority) == RemoveAuthorityTRUE | evaluated 8 times by 1 test | FALSE | evaluated 58 times by 1 test |
) { | 8-58 |
1653 | that.setAuthority(QString()); | - |
1654 | }executed 8 times by 1 test: end of block else { | 8 |
1655 | if ((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 55 times by 1 test |
options & RemoveUserInfo) == RemoveUserInfoTRUE | evaluated 3 times by 1 test | FALSE | evaluated 55 times by 1 test |
) | 3-55 |
1656 | that.setUserInfo(QString());executed 3 times by 1 test: that.setUserInfo(QString()); | 3 |
1657 | else if (options & RemovePasswordTRUE | evaluated 5 times by 1 test | FALSE | evaluated 50 times by 1 test |
) | 5-50 |
1658 | that.setPassword(QString());executed 5 times by 1 test: that.setPassword(QString()); | 5 |
1659 | if (options & RemovePortTRUE | evaluated 4 times by 1 test | FALSE | evaluated 54 times by 1 test |
) | 4-54 |
1660 | that.setPort(-1);executed 4 times by 1 test: that.setPort(-1); | 4 |
1661 | }executed 58 times by 1 test: end of block | 58 |
1662 | if (options & RemoveQueryTRUE | evaluated 4 times by 1 test | FALSE | evaluated 62 times by 1 test |
) | 4-62 |
1663 | that.setQuery(QString());executed 4 times by 1 test: that.setQuery(QString()); | 4 |
1664 | if (options & RemoveFragmentTRUE | evaluated 4 times by 1 test | FALSE | evaluated 62 times by 1 test |
) | 4-62 |
1665 | that.setFragment(QString());executed 4 times by 1 test: that.setFragment(QString()); | 4 |
1666 | if (options & RemovePathTRUE | evaluated 4 times by 1 test | FALSE | evaluated 62 times by 1 test |
) { | 4-62 |
1667 | that.setPath(QString()); | - |
1668 | }executed 4 times by 1 test: end of block else if (options & (StripTrailingSlash | RemoveFilename | NormalizePathSegments)TRUE | evaluated 40 times by 1 test | FALSE | evaluated 22 times by 1 test |
) { | 4-40 |
1669 | that.detach(); | - |
1670 | QString path; | - |
1671 | d->appendPath(path, options | FullyEncoded, QUrlPrivate::Path); | - |
1672 | that.d->setPath(path, 0, path.length()); | - |
1673 | }executed 40 times by 1 test: end of block | 40 |
1674 | returnexecuted 66 times by 1 test: return that; that;executed 66 times by 1 test: return that; | 66 |
1675 | } | - |
1676 | QByteArray QUrl::toEncoded(FormattingOptions options) const | - |
1677 | { | - |
1678 | options &= ~(FullyDecoded | FullyEncoded); | - |
1679 | QString stringForm = toString(options | FullyEncoded); | - |
1680 | returnexecuted 5096 times by 23 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
- tst_selftests - unknown status
stringForm.toLatin1();executed 5096 times by 23 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_QUrlInternal
- tst_QVariant
- tst_QXmlInputSource
- tst_Spdy
- tst_qnetworkreply - unknown status
- tst_selftests - unknown status
| 5096 |
1681 | } | - |
1682 | QUrl QUrl::fromEncoded(const QByteArray &input, ParsingMode mode) | - |
1683 | { | - |
1684 | returnexecuted 302 times by 7 tests: return QUrl(QString::fromUtf8(input.constData(), input.size()), mode); Executed by:- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
- tst_qnetworkreply - unknown status
QUrl(QString::fromUtf8(input.constData(), input.size()), mode);executed 302 times by 7 tests: return QUrl(QString::fromUtf8(input.constData(), input.size()), mode); Executed by:- tst_QMimeData
- tst_QMimeDatabase
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QUrl
- tst_qnetworkreply - unknown status
| 302 |
1685 | } | - |
1686 | | - |
1687 | | - |
1688 | | - |
1689 | | - |
1690 | | - |
1691 | QString QUrl::fromPercentEncoding(const QByteArray &input) | - |
1692 | { | - |
1693 | QByteArray ba = QByteArray::fromPercentEncoding(input); | - |
1694 | returnexecuted 39 times by 2 tests: return QString::fromUtf8(ba, ba.size()); QString::fromUtf8(ba, ba.size());executed 39 times by 2 tests: return QString::fromUtf8(ba, ba.size()); | 39 |
1695 | } | - |
1696 | QByteArray QUrl::toPercentEncoding(const QString &input, const QByteArray &exclude, const QByteArray &include) | - |
1697 | { | - |
1698 | returnexecuted 13 times by 1 test: return input.toUtf8().toPercentEncoding(exclude, include); input.toUtf8().toPercentEncoding(exclude, include);executed 13 times by 1 test: return input.toUtf8().toPercentEncoding(exclude, include); | 13 |
1699 | } | - |
1700 | QString QUrl::fromEncodedComponent_helper(const QByteArray &ba) | - |
1701 | { | - |
1702 | returnexecuted 34 times by 1 test: return qt_urlRecodeByteArray(ba); qt_urlRecodeByteArray(ba);executed 34 times by 1 test: return qt_urlRecodeByteArray(ba); | 34 |
1703 | } | - |
1704 | QString QUrl::fromAce(const QByteArray &domain) | - |
1705 | { | - |
1706 | returnexecuted 431 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 431 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
| 431 |
1707 | } | - |
1708 | QByteArray QUrl::toAce(const QString &domain) | - |
1709 | { | - |
1710 | QString result = qt_ACE_do(domain, ToAceOnly, ForbidLeadingDot ); | - |
1711 | returnexecuted 5885 times by 31 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 5885 times by 31 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
- ...
| 5885 |
1712 | } | - |
1713 | | - |
1714 | | - |
1715 | | - |
1716 | | - |
1717 | | - |
1718 | | - |
1719 | | - |
1720 | bool QUrl::operator <(const QUrl &url) const | - |
1721 | { | - |
1722 | if (!dTRUE | evaluated 18 times by 1 test | FALSE | evaluated 155 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
|| !url.dTRUE | evaluated 8 times by 1 test | FALSE | evaluated 147 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) { | 8-155 |
1723 | bool thisIsEmpty = !dTRUE | evaluated 18 times by 1 test | FALSE | evaluated 8 times by 1 test |
|| d->isEmpty()TRUE | evaluated 3 times by 1 test | FALSE | evaluated 5 times by 1 test |
; | 3-18 |
1724 | bool thatIsEmpty = !url.dTRUE | evaluated 17 times by 1 test | FALSE | evaluated 9 times by 1 test |
|| url.d->isEmpty()TRUE | evaluated 5 times by 1 test | FALSE | evaluated 4 times by 1 test |
; | 4-17 |
1725 | | - |
1726 | | - |
1727 | returnexecuted 26 times by 1 test: return thisIsEmpty && !thatIsEmpty; thisIsEmptyTRUE | evaluated 21 times by 1 test | FALSE | evaluated 5 times by 1 test |
&& !thatIsEmptyTRUE | evaluated 4 times by 1 test | FALSE | evaluated 17 times by 1 test |
;executed 26 times by 1 test: return thisIsEmpty && !thatIsEmpty; | 4-26 |
1728 | } | - |
1729 | | - |
1730 | int cmp; | - |
1731 | cmp = d->scheme.compare(url.d->scheme); | - |
1732 | if (cmp != 0TRUE | evaluated 17 times by 1 test | FALSE | evaluated 130 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 17-130 |
1733 | returnexecuted 17 times by 1 test: return cmp < 0; cmp < 0;executed 17 times by 1 test: return cmp < 0; | 17 |
1734 | | - |
1735 | cmp = d->userName.compare(url.d->userName); | - |
1736 | if (cmp != 0TRUE | never evaluated | FALSE | evaluated 130 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 0-130 |
1737 | return never executed: return cmp < 0; cmp < 0;never executed: return cmp < 0; | 0 |
1738 | | - |
1739 | cmp = d->password.compare(url.d->password); | - |
1740 | if (cmp != 0TRUE | never evaluated | FALSE | evaluated 130 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 0-130 |
1741 | return never executed: return cmp < 0; cmp < 0;never executed: return cmp < 0; | 0 |
1742 | | - |
1743 | cmp = d->host.compare(url.d->host); | - |
1744 | if (cmp != 0TRUE | never evaluated | FALSE | evaluated 130 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 0-130 |
1745 | return never executed: return cmp < 0; cmp < 0;never executed: return cmp < 0; | 0 |
1746 | | - |
1747 | if (d->port != url.d->portTRUE | evaluated 8 times by 1 test | FALSE | evaluated 122 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 8-122 |
1748 | returnexecuted 8 times by 1 test: return d->port < url.d->port; d->port < url.d->port;executed 8 times by 1 test: return d->port < url.d->port; | 8 |
1749 | | - |
1750 | cmp = d->path.compare(url.d->path); | - |
1751 | if (cmp != 0TRUE | evaluated 21 times by 3 testsEvaluated by:- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QUrl
| FALSE | evaluated 101 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 21-101 |
1752 | returnexecuted 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 |
1753 | | - |
1754 | if (d->hasQuery() != url.d->hasQuery()TRUE | evaluated 8 times by 1 test | FALSE | evaluated 93 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 8-93 |
1755 | returnexecuted 8 times by 1 test: return url.d->hasQuery(); url.d->hasQuery();executed 8 times by 1 test: return url.d->hasQuery(); | 8 |
1756 | | - |
1757 | cmp = d->query.compare(url.d->query); | - |
1758 | if (cmp != 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 92 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 1-92 |
1759 | returnexecuted 1 time by 1 test: return cmp < 0; cmp < 0;executed 1 time by 1 test: return cmp < 0; | 1 |
1760 | | - |
1761 | if (d->hasFragment() != url.d->hasFragment()TRUE | evaluated 8 times by 1 test | FALSE | evaluated 84 times by 6 testsEvaluated by:- tst_QPlainTextEdit
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextDocumentLayout
- tst_QTextEdit
- tst_QUrl
|
) | 8-84 |
1762 | returnexecuted 8 times by 1 test: return url.d->hasFragment(); url.d->hasFragment();executed 8 times by 1 test: return url.d->hasFragment(); | 8 |
1763 | | - |
1764 | cmp = d->fragment.compare(url.d->fragment); | - |
1765 | returnexecuted 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 |
1766 | } | - |
1767 | | - |
1768 | | - |
1769 | | - |
1770 | | - |
1771 | | - |
1772 | bool QUrl::operator ==(const QUrl &url) const | - |
1773 | { | - |
1774 | if (!dTRUE | evaluated 269 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QTextDocument
- tst_QUrl
- tst_selftests - unknown status
| FALSE | evaluated 3005 times by 20 testsEvaluated 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.dTRUE | evaluated 129 times by 9 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QNetworkRequest
- tst_QTextDocument
- tst_QUrl
- tst_selftests - unknown status
| FALSE | evaluated 140 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QTextDocument
- tst_QUrl
- tst_selftests - unknown status
|
) | 129-3005 |
1775 | returnexecuted 129 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 129 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
| 129 |
1776 | if (!dTRUE | evaluated 140 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QTextDocument
- tst_QUrl
- tst_selftests - unknown status
| FALSE | evaluated 3005 times by 20 testsEvaluated 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
|
) | 140-3005 |
1777 | returnexecuted 140 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 140 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
| 140 |
1778 | if (!url.dTRUE | evaluated 371 times by 7 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QFileDialog2
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
- tst_selftests - unknown status
| FALSE | evaluated 2634 times by 20 testsEvaluated 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
|
) | 371-2634 |
1779 | returnexecuted 371 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 371 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
| 371 |
1780 | | - |
1781 | | - |
1782 | | - |
1783 | | - |
1784 | | - |
1785 | int mask = QUrlPrivate::FullUrl; | - |
1786 | if (isLocalFile()TRUE | evaluated 1962 times by 10 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_languageChange
| FALSE | evaluated 672 times by 15 testsEvaluated 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
|
) | 672-1962 |
1787 | mask &= ~QUrlPrivate::Host;executed 1962 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
| 1962 |
1788 | returnexecuted 2634 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
(TRUE | evaluated 2588 times by 20 testsEvaluated 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
| FALSE | evaluated 46 times by 3 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QTextBrowser
- tst_QUrl
|
d->sectionIsPresent & mask) == (url.d->sectionIsPresent & mask)TRUE | evaluated 2588 times by 20 testsEvaluated 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
| FALSE | evaluated 46 times by 3 testsEvaluated by:- tst_QNetworkDiskCache
- tst_QTextBrowser
- tst_QUrl
|
&&executed 2634 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
| 46-2634 |
1789 | d->scheme == url.d->schemeTRUE | evaluated 2588 times by 20 testsEvaluated 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
| FALSE | never evaluated |
&&executed 2634 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
| 0-2634 |
1790 | d->userName == url.d->userNameTRUE | evaluated 2588 times by 20 testsEvaluated 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
| FALSE | never evaluated |
&&executed 2634 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
| 0-2634 |
1791 | d->password == url.d->passwordTRUE | evaluated 2586 times by 20 testsEvaluated 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
| FALSE | evaluated 2 times by 1 test |
&&executed 2634 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
| 2-2634 |
1792 | d->host == url.d->hostTRUE | evaluated 2586 times by 20 testsEvaluated 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
| FALSE | never evaluated |
&&executed 2634 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
| 0-2634 |
1793 | d->port == url.d->portTRUE | evaluated 2584 times by 20 testsEvaluated 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
| FALSE | evaluated 2 times by 1 test |
&&executed 2634 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
| 2-2634 |
1794 | d->path == url.d->pathTRUE | evaluated 1930 times by 20 testsEvaluated 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
| FALSE | evaluated 654 times by 7 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QTextBrowser
- tst_QTextDocument
- tst_QUrl
- tst_languageChange
|
&&executed 2634 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
| 654-2634 |
1795 | d->query == url.d->queryTRUE | evaluated 1927 times by 20 testsEvaluated 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
| FALSE | evaluated 3 times by 1 test |
&&executed 2634 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
| 3-2634 |
1796 | d->fragment == url.d->fragmentTRUE | evaluated 1927 times by 20 testsEvaluated 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
| FALSE | never evaluated |
;executed 2634 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
| 0-2634 |
1797 | } | - |
1798 | bool QUrl::matches(const QUrl &url, FormattingOptions options) const | - |
1799 | { | - |
1800 | if (!dTRUE | never evaluated | FALSE | evaluated 34 times by 1 test |
&& !url.dTRUE | never evaluated | FALSE | never evaluated |
) | 0-34 |
1801 | return never executed: return true; true;never executed: return true; | 0 |
1802 | if (!dTRUE | never evaluated | FALSE | evaluated 34 times by 1 test |
) | 0-34 |
1803 | return never executed: return url.d->isEmpty(); url.d->isEmpty();never executed: return url.d->isEmpty(); | 0 |
1804 | if (!url.dTRUE | never evaluated | FALSE | evaluated 34 times by 1 test |
) | 0-34 |
1805 | return never executed: return d->isEmpty(); d->isEmpty();never executed: return d->isEmpty(); | 0 |
1806 | | - |
1807 | | - |
1808 | | - |
1809 | | - |
1810 | | - |
1811 | int mask = QUrlPrivate::FullUrl; | - |
1812 | if (isLocalFile()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 32 times by 1 test |
) | 2-32 |
1813 | mask &= ~QUrlPrivate::Host;executed 2 times by 1 test: mask &= ~QUrlPrivate::Host; | 2 |
1814 | | - |
1815 | if (options & QUrl::RemoveSchemeTRUE | never evaluated | FALSE | evaluated 34 times by 1 test |
) | 0-34 |
1816 | mask &= ~QUrlPrivate::Scheme; never executed: mask &= ~QUrlPrivate::Scheme; | 0 |
1817 | else if (d->scheme != url.d->schemeTRUE | never evaluated | FALSE | evaluated 34 times by 1 test |
) | 0-34 |
1818 | return never executed: return false; false;never executed: return false; | 0 |
1819 | | - |
1820 | if (options & QUrl::RemovePasswordTRUE | evaluated 10 times by 1 test | FALSE | evaluated 24 times by 1 test |
) | 10-24 |
1821 | mask &= ~QUrlPrivate::Password;executed 10 times by 1 test: mask &= ~QUrlPrivate::Password; | 10 |
1822 | else if (d->password != url.d->passwordTRUE | evaluated 1 time by 1 test | FALSE | evaluated 23 times by 1 test |
) | 1-23 |
1823 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
1824 | | - |
1825 | if (options & QUrl::RemoveUserInfoTRUE | evaluated 10 times by 1 test | FALSE | evaluated 23 times by 1 test |
) | 10-23 |
1826 | mask &= ~QUrlPrivate::UserName;executed 10 times by 1 test: mask &= ~QUrlPrivate::UserName; | 10 |
1827 | else if (d->userName != url.d->userNameTRUE | never evaluated | FALSE | evaluated 23 times by 1 test |
) | 0-23 |
1828 | return never executed: return false; false;never executed: return false; | 0 |
1829 | | - |
1830 | if (options & QUrl::RemovePortTRUE | evaluated 8 times by 1 test | FALSE | evaluated 25 times by 1 test |
) | 8-25 |
1831 | mask &= ~QUrlPrivate::Port;executed 8 times by 1 test: mask &= ~QUrlPrivate::Port; | 8 |
1832 | else if (d->port != url.d->portTRUE | never evaluated | FALSE | evaluated 25 times by 1 test |
) | 0-25 |
1833 | return never executed: return false; false;never executed: return false; | 0 |
1834 | | - |
1835 | if (options & QUrl::RemoveAuthorityTRUE | evaluated 10 times by 1 test | FALSE | evaluated 23 times by 1 test |
) | 10-23 |
1836 | mask &= ~QUrlPrivate::Host;executed 10 times by 1 test: mask &= ~QUrlPrivate::Host; | 10 |
1837 | else if (d->host != url.d->hostTRUE | evaluated 2 times by 1 test | FALSE | evaluated 21 times by 1 test |
) | 2-21 |
1838 | returnexecuted 2 times by 1 test: return false; false;executed 2 times by 1 test: return false; | 2 |
1839 | | - |
1840 | if (options & QUrl::RemoveQueryTRUE | evaluated 4 times by 1 test | FALSE | evaluated 27 times by 1 test |
) | 4-27 |
1841 | mask &= ~QUrlPrivate::Query;executed 4 times by 1 test: mask &= ~QUrlPrivate::Query; | 4 |
1842 | else if (d->query != url.d->queryTRUE | evaluated 2 times by 1 test | FALSE | evaluated 25 times by 1 test |
) | 2-25 |
1843 | returnexecuted 2 times by 1 test: return false; false;executed 2 times by 1 test: return false; | 2 |
1844 | | - |
1845 | if (options & QUrl::RemoveFragmentTRUE | evaluated 3 times by 1 test | FALSE | evaluated 26 times by 1 test |
) | 3-26 |
1846 | mask &= ~QUrlPrivate::Fragment;executed 3 times by 1 test: mask &= ~QUrlPrivate::Fragment; | 3 |
1847 | else if (d->fragment != url.d->fragmentTRUE | evaluated 1 time by 1 test | FALSE | evaluated 25 times by 1 test |
) | 1-25 |
1848 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
1849 | | - |
1850 | if ((TRUE | evaluated 1 time by 1 test | FALSE | evaluated 27 times by 1 test |
d->sectionIsPresent & mask) != (url.d->sectionIsPresent & mask)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 27 times by 1 test |
) | 1-27 |
1851 | returnexecuted 1 time by 1 test: return false; false;executed 1 time by 1 test: return false; | 1 |
1852 | | - |
1853 | if (options & QUrl::RemovePathTRUE | evaluated 5 times by 1 test | FALSE | evaluated 22 times by 1 test |
) | 5-22 |
1854 | returnexecuted 5 times by 1 test: return true; true;executed 5 times by 1 test: return true; | 5 |
1855 | | - |
1856 | | - |
1857 | QString path1; | - |
1858 | d->appendPath(path1, options, QUrlPrivate::Path); | - |
1859 | QString path2; | - |
1860 | url.d->appendPath(path2, options, QUrlPrivate::Path); | - |
1861 | returnexecuted 22 times by 1 test: return path1 == path2; path1 == path2;executed 22 times by 1 test: return path1 == path2; | 22 |
1862 | } | - |
1863 | | - |
1864 | | - |
1865 | | - |
1866 | | - |
1867 | | - |
1868 | bool QUrl::operator !=(const QUrl &url) const | - |
1869 | { | - |
1870 | returnexecuted 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 |
1871 | } | - |
1872 | | - |
1873 | | - |
1874 | | - |
1875 | | - |
1876 | QUrl &QUrl::operator =(const QUrl &url) | - |
1877 | { | - |
1878 | if (!dTRUE | evaluated 9279 times by 22 testsEvaluated 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
- tst_qnetworkreply - unknown status
| FALSE | evaluated 2604 times by 7 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QTextBrowser
- tst_QXmlStream
- tst_languageChange
|
) { | 2604-9279 |
1879 | if (url.dTRUE | evaluated 7068 times by 21 testsEvaluated 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
- tst_qnetworkreply - unknown status
| FALSE | evaluated 2211 times by 14 testsEvaluated 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 |
1880 | url.d->ref.ref(); | - |
1881 | d = url.d; | - |
1882 | }executed 7068 times by 21 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
- tst_qnetworkreply - unknown status
| 7068 |
1883 | }executed 9279 times by 22 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
- tst_qnetworkreply - unknown status
else { | 9279 |
1884 | if (url.dTRUE | evaluated 2497 times by 7 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QTextBrowser
- tst_QXmlStream
- tst_languageChange
| FALSE | evaluated 107 times by 2 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
|
) | 107-2497 |
1885 | qAtomicAssign(d, url.d);executed 2497 times by 7 tests: qAtomicAssign(d, url.d); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QTextBrowser
- tst_QXmlStream
- tst_languageChange
| 2497 |
1886 | else | - |
1887 | clear();executed 107 times by 2 tests: clear(); Executed by:- tst_QFileDialog2
- tst_QFiledialog
| 107 |
1888 | } | - |
1889 | returnexecuted 11883 times by 22 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
- tst_qnetworkreply - unknown status
*this;executed 11883 times by 22 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
- tst_qnetworkreply - unknown status
| 11883 |
1890 | } | - |
1891 | | - |
1892 | | - |
1893 | | - |
1894 | | - |
1895 | QUrl &QUrl::operator =(const QString &url) | - |
1896 | { | - |
1897 | if (url.isEmpty()TRUE | never evaluated | FALSE | evaluated 10 times by 1 test |
) { | 0-10 |
1898 | clear(); | - |
1899 | } never executed: end of block else { | 0 |
1900 | detach(); | - |
1901 | d->parse(url, TolerantMode); | - |
1902 | }executed 10 times by 1 test: end of block | 10 |
1903 | returnexecuted 10 times by 1 test: return *this; *this;executed 10 times by 1 test: return *this; | 10 |
1904 | } | - |
1905 | void QUrl::detach() | - |
1906 | { | - |
1907 | if (!dTRUE | evaluated 20700 times by 56 testsEvaluated 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
- ...
| FALSE | evaluated 27883 times by 47 testsEvaluated 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
- ...
|
) | 20700-27883 |
1908 | d = new QUrlPrivate;executed 20700 times by 56 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
- ...
| 20700 |
1909 | else | - |
1910 | qAtomicDetach(d);executed 27883 times by 47 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
- ...
| 27883 |
1911 | } | - |
1912 | | - |
1913 | | - |
1914 | | - |
1915 | | - |
1916 | bool QUrl::isDetached() const | - |
1917 | { | - |
1918 | return never executed: return !d || d->ref.load() == 1; !dTRUE | never evaluated | FALSE | never evaluated |
|| d->ref.load() == 1TRUE | never evaluated | FALSE | never evaluated |
;never executed: return !d || d->ref.load() == 1; | 0 |
1919 | } | - |
1920 | QUrl QUrl::fromLocalFile(const QString &localFile) | - |
1921 | { | - |
1922 | QUrl url; | - |
1923 | if (localFile.isEmpty()TRUE | evaluated 208 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QUrl
- tst_languageChange
| FALSE | evaluated 5142 times by 11 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QUrl
- tst_QXmlStream
- tst_languageChange
- tst_qfileopenevent
|
) | 208-5142 |
1924 | returnexecuted 208 times by 4 tests: return url; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QUrl
- tst_languageChange
url;executed 208 times by 4 tests: return url; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QUrl
- tst_languageChange
| 208 |
1925 | QString scheme = fileScheme(); | - |
1926 | QString deslashified = QDir::fromNativeSeparators(localFile); | - |
1927 | | - |
1928 | | - |
1929 | if (deslashified.length() > 1TRUE | evaluated 5077 times by 11 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QUrl
- tst_QXmlStream
- tst_languageChange
- tst_qfileopenevent
| FALSE | evaluated 65 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QSidebar
- tst_QUrl
|
&& deslashified.at(1) == QLatin1Char(':')TRUE | evaluated 1 time by 1 test | FALSE | evaluated 5076 times by 11 testsEvaluated 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('/')TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
) { | 0-5077 |
1930 | deslashified.prepend(QLatin1Char('/')); | - |
1931 | }executed 1 time by 1 test: end of block else if (deslashified.startsWith(QLatin1String("//"))TRUE | evaluated 4 times by 1 test | FALSE | evaluated 5137 times by 11 testsEvaluated by:- tst_QFileDialog2
- tst_QFileSelector
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QNetworkReply
- tst_QSidebar
- tst_QTextBrowser
- tst_QUrl
- tst_QXmlStream
- tst_languageChange
- tst_qfileopenevent
|
) { | 1-5137 |
1932 | | - |
1933 | int indexOfPath = deslashified.indexOf(QLatin1Char('/'), 2); | - |
1934 | QString hostSpec = deslashified.mid(2, indexOfPath - 2); | - |
1935 | | - |
1936 | if (hostSpec.endsWith(webDavSslTag(), Qt::CaseInsensitive)TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3 times by 1 test |
) { | 1-3 |
1937 | hostSpec.chop(4); | - |
1938 | scheme = webDavScheme(); | - |
1939 | }executed 1 time by 1 test: end of block | 1 |
1940 | url.setHost(hostSpec); | - |
1941 | | - |
1942 | if (indexOfPath > 2TRUE | evaluated 3 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-3 |
1943 | deslashified = deslashified.right(deslashified.length() - indexOfPath);executed 3 times by 1 test: deslashified = deslashified.right(deslashified.length() - indexOfPath); | 3 |
1944 | else | - |
1945 | deslashified.clear();executed 1 time by 1 test: deslashified.clear(); | 1 |
1946 | } | - |
1947 | | - |
1948 | url.setScheme(scheme); | - |
1949 | url.setPath(deslashified, DecodedMode); | - |
1950 | returnexecuted 5142 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 5142 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
| 5142 |
1951 | } | - |
1952 | QString QUrl::toLocalFile() const | - |
1953 | { | - |
1954 | | - |
1955 | if (!isLocalFile()TRUE | evaluated 1120 times by 8 testsEvaluated by:- tst_QFiledialog
- tst_QNetworkReply
- tst_QPlainTextEdit
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
- tst_QUrl
| FALSE | evaluated 10434 times by 15 testsEvaluated 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-10434 |
1956 | returnexecuted 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 |
1957 | | - |
1958 | returnexecuted 10434 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 10434 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
| 10434 |
1959 | } | - |
1960 | bool QUrl::isLocalFile() const | - |
1961 | { | - |
1962 | returnexecuted 21200 times by 36 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
- ...
dTRUE | evaluated 21087 times by 35 testsEvaluated 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
- ...
| FALSE | evaluated 113 times by 4 testsEvaluated by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QNetworkAccessManager
- tst_QTextBrowser
|
&& d->isLocalFile()TRUE | evaluated 14931 times by 15 testsEvaluated 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
| FALSE | evaluated 6156 times by 29 testsEvaluated by:- tst_NetworkSelfTest
- tst_QAbstractNetworkCache
- tst_QDataUrl
- tst_QFileSelector
- 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_QTcpServer
- tst_QTcpSocket
- tst_QTextBrowser
- tst_QTextDocument
- tst_QTextDocumentFragment
- tst_QTextEdit
- tst_QUrl
- tst_QVariant
- ...
|
;executed 21200 times by 36 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
- ...
| 113-21200 |
1963 | } | - |
1964 | | - |
1965 | | - |
1966 | | - |
1967 | | - |
1968 | | - |
1969 | | - |
1970 | bool QUrl::isParentOf(const QUrl &childUrl) const | - |
1971 | { | - |
1972 | QString childPath = childUrl.path(); | - |
1973 | | - |
1974 | if (!dTRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
) | 0-5 |
1975 | return never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/')); ((TRUE | never evaluated | FALSE | never evaluated |
childUrl.scheme().isEmpty())TRUE | never evaluated | FALSE | never evaluated |
never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/')); | 0 |
1976 | && (TRUE | never evaluated | FALSE | never evaluated |
childUrl.authority().isEmpty())TRUE | never evaluated | FALSE | never evaluated |
never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/')); | 0 |
1977 | && childPath.length() > 0TRUE | never evaluated | FALSE | never evaluated |
&& childPath.at(0) == QLatin1Char('/')TRUE | never evaluated | FALSE | never evaluated |
);never executed: return ((childUrl.scheme().isEmpty()) && (childUrl.authority().isEmpty()) && childPath.length() > 0 && childPath.at(0) == QLatin1Char('/')); | 0 |
1978 | | - |
1979 | QString ourPath = path(); | - |
1980 | | - |
1981 | returnexecuted 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('/')))); ((childUrl.scheme().isEmpty()TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
|| d->scheme == childUrl.scheme()TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
)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('/')))); | 0-5 |
1982 | && (childUrl.authority().isEmpty()TRUE | never evaluated | FALSE | evaluated 5 times by 1 test |
|| authority() == childUrl.authority()TRUE | evaluated 5 times by 1 test | FALSE | never evaluated |
)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('/')))); | 0-5 |
1983 | && childPath.startsWith(ourPath)TRUE | evaluated 4 times by 1 test | FALSE | evaluated 1 time by 1 test |
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('/')))); | 1-5 |
1984 | && ((ourPath.endsWith(QLatin1Char('/'))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 3 times by 1 test |
&& childPath.length() > ourPath.length()TRUE | evaluated 1 time by 1 test | FALSE | never evaluated |
)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('/')))); | 0-5 |
1985 | || (!ourPath.endsWith(QLatin1Char('/'))TRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
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('/')))); | 0-5 |
1986 | && childPath.length() > ourPath.length()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
&& childPath.at(ourPath.length()) == QLatin1Char('/')TRUE | evaluated 1 time by 1 test | FALSE | evaluated 1 time by 1 test |
)));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('/')))); | 1-5 |
1987 | } | - |
1988 | QDataStream &operator<<(QDataStream &out, const QUrl &url) | - |
1989 | { | - |
1990 | QByteArray u; | - |
1991 | if (url.isValid()TRUE | evaluated 102 times by 6 testsEvaluated by:- tst_QAbstractNetworkCache
- tst_QFileDialog2
- tst_QNetworkCacheMetaData
- tst_QNetworkDiskCache
- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 5 times by 3 testsEvaluated by:- tst_QMetaType
- tst_QUrl
- tst_QVariant
|
) | 5-102 |
1992 | 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 |
1993 | out << u; | - |
1994 | returnexecuted 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 |
1995 | } | - |
1996 | QDataStream &operator>>(QDataStream &in, QUrl &url) | - |
1997 | { | - |
1998 | QByteArray u; | - |
1999 | in >> u; | - |
2000 | url.setUrl(QString::fromLatin1(u)); | - |
2001 | returnexecuted 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 |
2002 | } | - |
2003 | | - |
2004 | | - |
2005 | | - |
2006 | QDebug operator<<(QDebug d, const QUrl &url) | - |
2007 | { | - |
2008 | QDebugStateSaver saver(d); | - |
2009 | d.nospace() << "QUrl(" << url.toDisplayString() << ')'; | - |
2010 | returnexecuted 219 times by 2 tests: return d; Executed by:- tst_QNetworkReply
- tst_QVariant
d;executed 219 times by 2 tests: return d; Executed by:- tst_QNetworkReply
- tst_QVariant
| 219 |
2011 | } | - |
2012 | | - |
2013 | | - |
2014 | static QString errorMessage(QUrlPrivate::ErrorCode errorCode, const QString &errorSource, int errorPosition) | - |
2015 | { | - |
2016 | QChar c = uint(errorPosition) < uint(errorSource.length())TRUE | evaluated 108 times by 1 test | FALSE | evaluated 94 times by 1 test |
? | 94-108 |
2017 | errorSource.at(errorPosition) : QChar(QChar::Null); | - |
2018 | | - |
2019 | switch (errorCode) { | - |
2020 | case never executed: case QUrlPrivate::NoError: QUrlPrivate::NoError:never executed: case QUrlPrivate::NoError: | 0 |
2021 | ((!(false)) ? qt_assert_x("QUrl::errorString", "Impossible: QUrl::errorString should have treated this condition", | - |
2022 | __FILE__ | - |
2023 | , | - |
2024 | 3950 | - |
2025 | ) : qt_noop()) | - |
2026 | ; | - |
2027 | do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,3951) : qt_noop()); __builtin_unreachable(); } while (0); | - |
2028 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
2029 | | - |
2030 | case never executed: case QUrlPrivate::InvalidSchemeError: QUrlPrivate::InvalidSchemeError:never executed: case QUrlPrivate::InvalidSchemeError: { | 0 |
2031 | 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 |
2032 | return never executed: return msg.arg(c); msg.arg(c);never executed: return msg.arg(c); | 0 |
2033 | } | - |
2034 | | - |
2035 | caseexecuted 10 times by 1 test: case QUrlPrivate::InvalidUserNameError: QUrlPrivate::InvalidUserNameError:executed 10 times by 1 test: case QUrlPrivate::InvalidUserNameError: | 10 |
2036 | returnexecuted 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); 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); returnexecuted 10 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 10 times by 1 test: return qstring_literal_temp; }()))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); | 10 |
2037 | .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); | 10 |
2038 | | - |
2039 | caseexecuted 5 times by 1 test: case QUrlPrivate::InvalidPasswordError: QUrlPrivate::InvalidPasswordError:executed 5 times by 1 test: case QUrlPrivate::InvalidPasswordError: | 5 |
2040 | returnexecuted 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); 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); returnexecuted 5 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 5 times by 1 test: return qstring_literal_temp; }()))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); | 5 |
2041 | .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); | 5 |
2042 | | - |
2043 | caseexecuted 89 times by 1 test: case QUrlPrivate::InvalidRegNameError: QUrlPrivate::InvalidRegNameError:executed 89 times by 1 test: case QUrlPrivate::InvalidRegNameError: | 89 |
2044 | if (errorPosition != -1TRUE | never evaluated | FALSE | evaluated 89 times by 1 test |
) | 0-89 |
2045 | 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); returnnever 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 |
2046 | .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 |
2047 | else | - |
2048 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 89 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 89 times by 1 test: return qstring_literal_temp; }());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; }()); | 89 |
2049 | case never executed: case QUrlPrivate::InvalidIPv4AddressError: QUrlPrivate::InvalidIPv4AddressError:never executed: case QUrlPrivate::InvalidIPv4AddressError: | 0 |
2050 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
2051 | caseexecuted 5 times by 1 test: case QUrlPrivate::InvalidIPv6AddressError: QUrlPrivate::InvalidIPv6AddressError:executed 5 times by 1 test: case QUrlPrivate::InvalidIPv6AddressError: | 5 |
2052 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 5 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 5 times by 1 test: return qstring_literal_temp; }());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; }()); | 5 |
2053 | caseexecuted 15 times by 1 test: case QUrlPrivate::InvalidCharacterInIPv6Error: QUrlPrivate::InvalidCharacterInIPv6Error:executed 15 times by 1 test: case QUrlPrivate::InvalidCharacterInIPv6Error: | 15 |
2054 | returnexecuted 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); ([]() -> 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); returnexecuted 15 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 15 times by 1 test: return qstring_literal_temp; }()).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); | 15 |
2055 | caseexecuted 25 times by 1 test: case QUrlPrivate::InvalidIPvFutureError: QUrlPrivate::InvalidIPvFutureError:executed 25 times by 1 test: case QUrlPrivate::InvalidIPvFutureError: | 25 |
2056 | returnexecuted 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); ([]() -> 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); returnexecuted 25 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 25 times by 1 test: return qstring_literal_temp; }()).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); | 25 |
2057 | caseexecuted 5 times by 1 test: case QUrlPrivate::HostMissingEndBracket: QUrlPrivate::HostMissingEndBracket:executed 5 times by 1 test: case QUrlPrivate::HostMissingEndBracket: | 5 |
2058 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 5 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 5 times by 1 test: return qstring_literal_temp; }());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; }()); | 5 |
2059 | | - |
2060 | caseexecuted 21 times by 1 test: case QUrlPrivate::InvalidPortError: QUrlPrivate::InvalidPortError:executed 21 times by 1 test: case QUrlPrivate::InvalidPortError: | 21 |
2061 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 21 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 21 times by 1 test: return qstring_literal_temp; }());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; }()); | 21 |
2062 | case never executed: case QUrlPrivate::PortEmptyError: QUrlPrivate::PortEmptyError:never executed: case QUrlPrivate::PortEmptyError: | 0 |
2063 | 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); returnnever 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 |
2064 | | - |
2065 | caseexecuted 10 times by 1 test: case QUrlPrivate::InvalidPathError: QUrlPrivate::InvalidPathError:executed 10 times by 1 test: case QUrlPrivate::InvalidPathError: | 10 |
2066 | returnexecuted 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); 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); returnexecuted 10 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 10 times by 1 test: return qstring_literal_temp; }()))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); | 10 |
2067 | .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); | 10 |
2068 | | - |
2069 | caseexecuted 5 times by 1 test: case QUrlPrivate::InvalidQueryError: QUrlPrivate::InvalidQueryError:executed 5 times by 1 test: case QUrlPrivate::InvalidQueryError: | 5 |
2070 | returnexecuted 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); 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); returnexecuted 5 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 5 times by 1 test: return qstring_literal_temp; }()))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); | 5 |
2071 | .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); | 5 |
2072 | | - |
2073 | caseexecuted 5 times by 1 test: case QUrlPrivate::InvalidFragmentError: QUrlPrivate::InvalidFragmentError:executed 5 times by 1 test: case QUrlPrivate::InvalidFragmentError: | 5 |
2074 | returnexecuted 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); 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); returnexecuted 5 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 5 times by 1 test: return qstring_literal_temp; }()))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); | 5 |
2075 | .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); | 5 |
2076 | | - |
2077 | caseexecuted 1 time by 1 test: case QUrlPrivate::AuthorityPresentAndPathIsRelative: QUrlPrivate::AuthorityPresentAndPathIsRelative:executed 1 time by 1 test: case QUrlPrivate::AuthorityPresentAndPathIsRelative: | 1 |
2078 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 1 time by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 1 time by 1 test: return qstring_literal_temp; }());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; }()); | 1 |
2079 | caseexecuted 6 times by 1 test: case QUrlPrivate::RelativeUrlPathContainsColonBeforeSlash: QUrlPrivate::RelativeUrlPathContainsColonBeforeSlash:executed 6 times by 1 test: case QUrlPrivate::RelativeUrlPathContainsColonBeforeSlash: | 6 |
2080 | returnexecuted 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; }()); ([]() -> 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); returnexecuted 6 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 6 times by 1 test: return qstring_literal_temp; }());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; }()); | 6 |
2081 | } | - |
2082 | | - |
2083 | ((!(false)) ? qt_assert_x("QUrl::errorString", "Cannot happen, unknown error",__FILE__,4007) : qt_noop()); | - |
2084 | do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,4008) : qt_noop()); __builtin_unreachable(); } while (0); | - |
2085 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
2086 | } | - |
2087 | | - |
2088 | static inline void appendComponentIfPresent(QString &msg, bool present, const char *componentName, | - |
2089 | const QString &component) | - |
2090 | { | - |
2091 | if (presentTRUE | evaluated 371 times by 1 test | FALSE | evaluated 1043 times by 1 test |
) { | 371-1043 |
2092 | msg += QLatin1String(componentName); | - |
2093 | msg += QLatin1Char('"'); | - |
2094 | msg += component; | - |
2095 | msg += QLatin1String("\","); | - |
2096 | }executed 371 times by 1 test: end of block | 371 |
2097 | }executed 1414 times by 1 test: end of block | 1414 |
2098 | QString QUrl::errorString() const | - |
2099 | { | - |
2100 | if (!dTRUE | evaluated 112 times by 6 testsEvaluated by:- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkRequest
- tst_QTextDocument
- tst_QUrl
- tst_selftests - unknown status
| FALSE | evaluated 213 times by 2 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QUrl
|
) | 112-213 |
2101 | returnexecuted 112 times by 6 tests: return QString(); Executed by:- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkRequest
- tst_QTextDocument
- tst_QUrl
- tst_selftests - unknown status
QString();executed 112 times by 6 tests: return QString(); Executed by:- tst_QMetaType
- tst_QNetworkCacheMetaData
- tst_QNetworkRequest
- tst_QTextDocument
- tst_QUrl
- tst_selftests - unknown status
| 112 |
2102 | | - |
2103 | QString errorSource; | - |
2104 | int errorPosition = 0; | - |
2105 | QUrlPrivate::ErrorCode errorCode = d->validityError(&errorSource, &errorPosition); | - |
2106 | if (errorCode == QUrlPrivate::NoErrorTRUE | evaluated 11 times by 2 testsEvaluated by:- tst_QNetworkCacheMetaData
- tst_QUrl
| FALSE | evaluated 202 times by 1 test |
) | 11-202 |
2107 | returnexecuted 11 times by 2 tests: return QString(); Executed by:- tst_QNetworkCacheMetaData
- tst_QUrl
QString();executed 11 times by 2 tests: return QString(); Executed by:- tst_QNetworkCacheMetaData
- tst_QUrl
| 11 |
2108 | | - |
2109 | QString 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(','))TRUE | evaluated 201 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-201 |
2128 | msg.chop(1);executed 201 times by 1 test: msg.chop(1); | 201 |
2129 | returnexecuted 202 times by 1 test: return msg; msg;executed 202 times by 1 test: return msg; | 202 |
2130 | } | - |
2131 | | - |
2132 | | - |
2133 | | - |
2134 | | - |
2135 | | - |
2136 | | - |
2137 | QStringList QUrl::toStringList(const QList<QUrl> &urls, FormattingOptions options) | - |
2138 | { | - |
2139 | QStringList lst; | - |
2140 | lst.reserve(urls.size()); | - |
2141 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(urls)>::type> _container_((urls)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QUrl &url = *_container_.i; _container_.control; _container_.control = 0) | - |
2142 | lst.append(url.toString(options));executed 463 times by 5 tests: lst.append(url.toString(options)); Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QUrl
- tst_languageChange
| 463 |
2143 | returnexecuted 234 times by 5 tests: return lst; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QUrl
- tst_languageChange
lst;executed 234 times by 5 tests: return lst; Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QUrl
- tst_languageChange
| 234 |
2144 | | - |
2145 | } | - |
2146 | | - |
2147 | | - |
2148 | | - |
2149 | | - |
2150 | | - |
2151 | | - |
2152 | | - |
2153 | QList<QUrl> QUrl::fromStringList(const QStringList &urls, ParsingMode mode) | - |
2154 | { | - |
2155 | QList<QUrl> lst; | - |
2156 | lst.reserve(urls.size()); | - |
2157 | for (QForeachContainer<typename QtPrivate::remove_reference<decltype(urls)>::type> _container_((urls)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QString &str = *_container_.i; _container_.control; _container_.control = 0) { | - |
2158 | lst.append(QUrl(str, mode)); | - |
2159 | }executed 507 times by 5 tests: end of block Executed by:- tst_QFileDialog2
- tst_QFiledialog
- tst_QGraphicsProxyWidget
- tst_QUrl
- tst_languageChange
| 507 |
2160 | returnexecuted 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 |
2161 | } | - |
2162 | uint qHash(const QUrl &url, uint seed) noexcept | - |
2163 | { | - |
2164 | if (!url.dTRUE | evaluated 3 times by 1 test | FALSE | evaluated 7 times by 1 test |
) | 3-7 |
2165 | returnexecuted 3 times by 1 test: return qHash(-1, seed); qHash(-1, seed);executed 3 times by 1 test: return qHash(-1, seed); | 3 |
2166 | | - |
2167 | returnexecuted 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); 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); | 7 |
2168 | 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); | 7 |
2169 | 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); | 7 |
2170 | 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); | 7 |
2171 | 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); | 7 |
2172 | 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); | 7 |
2173 | 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); | 7 |
2174 | 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); | 7 |
2175 | } | - |
2176 | | - |
2177 | static QUrl adjustFtpPath(QUrl url) | - |
2178 | { | - |
2179 | if (url.scheme() == ftpScheme()TRUE | evaluated 3 times by 1 test | FALSE | evaluated 31 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
) { | 3-31 |
2180 | QString path = url.path(QUrl::PrettyDecoded); | - |
2181 | if (path.startsWith(QLatin1String("//"))TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1 time by 1 test |
) | 1-2 |
2182 | url.setPath(QLatin1String("/%2F") + path.midRef(2), QUrl::TolerantMode);executed 2 times by 1 test: url.setPath(QLatin1String("/%2F") + path.midRef(2), QUrl::TolerantMode); | 2 |
2183 | }executed 3 times by 1 test: end of block | 3 |
2184 | returnexecuted 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 |
2185 | } | - |
2186 | | - |
2187 | static bool isIp6(const QString &text) | - |
2188 | { | - |
2189 | QIPAddressUtils::IPv6Address address; | - |
2190 | returnexecuted 104 times by 2 tests: return !text.isEmpty() && QIPAddressUtils::parseIp6(address, text.begin(), text.end()) == 0; Executed by:- tst_QNetworkReply
- tst_QUrl
!text.isEmpty()TRUE | evaluated 103 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 1 time by 1 test |
&& QIPAddressUtils::parseIp6(address, text.begin(), text.end()) == 0TRUE | evaluated 18 times by 1 test | FALSE | evaluated 85 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
;executed 104 times by 2 tests: return !text.isEmpty() && QIPAddressUtils::parseIp6(address, text.begin(), text.end()) == 0; Executed by:- tst_QNetworkReply
- tst_QUrl
| 1-104 |
2191 | } | - |
2192 | QUrl QUrl::fromUserInput(const QString &userInput, const QString &workingDirectory, | - |
2193 | UserInputResolutionOptions options) | - |
2194 | { | - |
2195 | QString trimmedString = userInput.trimmed(); | - |
2196 | | - |
2197 | if (trimmedString.isEmpty()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 44 times by 1 test |
) | 2-44 |
2198 | returnexecuted 2 times by 1 test: return QUrl(); QUrl();executed 2 times by 1 test: return QUrl(); | 2 |
2199 | | - |
2200 | | - |
2201 | | - |
2202 | | - |
2203 | if (isIp6(trimmedString)TRUE | evaluated 12 times by 1 test | FALSE | evaluated 32 times by 1 test |
) { | 12-32 |
2204 | QUrl url; | - |
2205 | url.setHost(trimmedString); | - |
2206 | 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); returnexecuted 12 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 12 times by 1 test: return qstring_literal_temp; }())); | 12 |
2207 | returnexecuted 12 times by 1 test: return url; url;executed 12 times by 1 test: return url; | 12 |
2208 | } | - |
2209 | | - |
2210 | QUrl url = QUrl(trimmedString, QUrl::TolerantMode); | - |
2211 | | - |
2212 | if (url.isRelative()TRUE | evaluated 30 times by 1 test | FALSE | evaluated 2 times by 1 test |
&& !QDir::isAbsolutePath(trimmedString)TRUE | evaluated 28 times by 1 test | FALSE | evaluated 2 times by 1 test |
) { | 2-30 |
2213 | QFileInfo fileInfo(QDir(workingDirectory), trimmedString); | - |
2214 | if ((options & AssumeLocalFile) || fileInfo.exists()TRUE | evaluated 11 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 3-11 |
2215 | returnexecuted 25 times by 1 test: return QUrl::fromLocalFile(fileInfo.absoluteFilePath()); QUrl::fromLocalFile(fileInfo.absoluteFilePath());executed 25 times by 1 test: return QUrl::fromLocalFile(fileInfo.absoluteFilePath()); | 25 |
2216 | }executed 3 times by 1 test: end of block | 3 |
2217 | | - |
2218 | returnexecuted 7 times by 1 test: return fromUserInput(trimmedString); fromUserInput(trimmedString);executed 7 times by 1 test: return fromUserInput(trimmedString); | 7 |
2219 | } | - |
2220 | QUrl QUrl::fromUserInput(const QString &userInput) | - |
2221 | { | - |
2222 | QString trimmedString = userInput.trimmed(); | - |
2223 | | - |
2224 | | - |
2225 | | - |
2226 | if (isIp6(trimmedString)TRUE | evaluated 6 times by 1 test | FALSE | evaluated 54 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
) { | 6-54 |
2227 | QUrl url; | - |
2228 | url.setHost(trimmedString); | - |
2229 | 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); returnexecuted 6 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 6 times by 1 test: return qstring_literal_temp; }())); | 6 |
2230 | returnexecuted 6 times by 1 test: return url; url;executed 6 times by 1 test: return url; | 6 |
2231 | } | - |
2232 | | - |
2233 | | - |
2234 | if (QDir::isAbsolutePath(trimmedString)TRUE | evaluated 19 times by 1 test | FALSE | evaluated 35 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
|
) | 19-35 |
2235 | returnexecuted 19 times by 1 test: return QUrl::fromLocalFile(trimmedString); QUrl::fromLocalFile(trimmedString);executed 19 times by 1 test: return QUrl::fromLocalFile(trimmedString); | 19 |
2236 | | - |
2237 | QUrl url = QUrl(trimmedString, QUrl::TolerantMode); | - |
2238 | QUrl urlPrepended = QUrl(([]() -> 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); returnexecuted 35 times by 2 tests: return qstring_literal_temp; Executed by:- tst_QNetworkReply
- tst_QUrl
qstring_literal_temp;executed 35 times by 2 tests: return qstring_literal_temp; Executed by:- tst_QNetworkReply
- tst_QUrl
}()) + trimmedString, QUrl::TolerantMode); | 35 |
2239 | | - |
2240 | | - |
2241 | | - |
2242 | | - |
2243 | if (url.isValid()TRUE | evaluated 34 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 1 time by 1 test |
| 1-34 |
2244 | && !url.scheme().isEmpty()TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 16 times by 1 test |
| 16-18 |
2245 | && urlPrepended.port() == -1TRUE | evaluated 15 times by 2 testsEvaluated by:- tst_QNetworkReply
- tst_QUrl
| FALSE | evaluated 3 times by 1 test |
) | 3-15 |
2246 | returnexecuted 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 |
2247 | | - |
2248 | | - |
2249 | if (urlPrepended.isValid()TRUE | evaluated 20 times by 1 test | FALSE | never evaluated |
&& (!urlPrepended.host().isEmpty()TRUE | evaluated 19 times by 1 test | FALSE | evaluated 1 time by 1 test |
|| !urlPrepended.path().isEmpty()TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
)) | 0-20 |
2250 | { | - |
2251 | int dotIndex = trimmedString.indexOf(QLatin1Char('.')); | - |
2252 | const QString hostscheme = trimmedString.left(dotIndex).toLower(); | - |
2253 | if (hostscheme == ftpScheme()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 17 times by 1 test |
) | 2-17 |
2254 | urlPrepended.setScheme(ftpScheme());executed 2 times by 1 test: urlPrepended.setScheme(ftpScheme()); | 2 |
2255 | returnexecuted 19 times by 1 test: return adjustFtpPath(urlPrepended); adjustFtpPath(urlPrepended);executed 19 times by 1 test: return adjustFtpPath(urlPrepended); | 19 |
2256 | } | - |
2257 | | - |
2258 | returnexecuted 1 time by 1 test: return QUrl(); QUrl();executed 1 time by 1 test: return QUrl(); | 1 |
2259 | } | - |
2260 | | - |
2261 | | - |
2262 | | - |
| | |