qglobal.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/global/qglobal.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17-
18__attribute__((visibility("default"))) void *qMemCopy(void *dest, const void *src, size_t n);-
19__attribute__((visibility("default"))) void *qMemSet(void *dest, int c, size_t n);-
20-
21-
22-
23-
24-
25-
26static_assert(bool(sizeof(int) == 4), "Qt assumes that int is 32 bits");-
27static_assert(bool((127 * 2 + 1) == 255), "Qt assumes that char is 8 bits");-
28static_assert(bool(8 == sizeof(void *)), "QT_POINTER_SIZE defined incorrectly");-
29const char *qVersion() noexcept-
30{-
31 return
executed 585 times by 2 tests: return "5.7.1";
Executed by:
  • tst_Lancelot
  • tst_selftests - unknown status
"5.7.1";
executed 585 times by 2 tests: return "5.7.1";
Executed by:
  • tst_Lancelot
  • tst_selftests - unknown status
585
32}-
33-
34bool qSharedBuild() noexcept-
35{-
36-
37 return
never executed: return true;
true;
never executed: return true;
0
38-
39-
40-
41}-
42struct QUnixOSVersion-
43{-
44-
45 QString productType;-
46 QString productVersion;-
47 QString prettyName;-
48};-
49-
50static QString unquote(const char *begin, const char *end)-
51{-
52 if (*
*begin == '"'Description
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
begin == '"'
*begin == '"'Description
TRUEevaluated 18 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
) {
9-18
53 ((!(end[-1] == '"')) ? qt_assert("end[-1] == '\"'",__FILE__,2217) : qt_noop());-
54 return
executed 18 times by 3 tests: return QString::fromLatin1(begin + 1, end - begin - 2);
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
QString::fromLatin1(begin + 1, end - begin - 2);
executed 18 times by 3 tests: return QString::fromLatin1(begin + 1, end - begin - 2);
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
18
55 }-
56 return
executed 9 times by 3 tests: return QString::fromLatin1(begin, end - begin);
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
QString::fromLatin1(begin, end - begin);
executed 9 times by 3 tests: return QString::fromLatin1(begin, end - begin);
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
57}-
58static QByteArray getEtcFileContent(const char *filename)-
59{-
60-
61 int fd = qt_safe_open(filename, 00);-
62 if (fd == -1
fd == -1Description
TRUEnever evaluated
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
)
0-9
63 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
64-
65 struct stat64 sbuf;-
66 if (::
::fstat64(fd, &sbuf) == -1Description
TRUEnever evaluated
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
fstat64(fd, &sbuf) == -1
::fstat64(fd, &sbuf) == -1Description
TRUEnever evaluated
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
) {
0-9
67 qt_safe_close(fd);-
68 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
69 }-
70-
71 QByteArray buffer(sbuf.st_size, Qt::Uninitialized);-
72 buffer.resize(qt_safe_read(fd, buffer.data(), sbuf.st_size));-
73 qt_safe_close(fd);-
74 return
executed 9 times by 3 tests: return buffer;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
buffer;
executed 9 times by 3 tests: return buffer;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
75}-
76-
77static bool readEtcFile(QUnixOSVersion &v, const char *filename,-
78 const QByteArray &idKey, const QByteArray &versionKey, const QByteArray &prettyNameKey)-
79{-
80-
81 QByteArray buffer = getEtcFileContent(filename);-
82 if (buffer.isEmpty()
buffer.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
)
0-9
83 return
never executed: return false;
false;
never executed: return false;
0
84-
85 const char *ptr = buffer.constData();-
86 const char *end = buffer.constEnd();-
87 const char *eol;-
88 QByteArray line;-
89 for ( ; ptr != end
ptr != endDescription
TRUEevaluated 72 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
; ptr = eol + 1) {
9-72
90-
91 eol = static_cast<const char *>(memchr(ptr, '\n', end - ptr));-
92 if (!eol
!eolDescription
TRUEnever evaluated
FALSEevaluated 72 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
)
0-72
93 eol = end - 1;
never executed: eol = end - 1;
0
94 line.setRawData(ptr, eol - ptr);-
95-
96 if (line.startsWith(idKey)
line.startsWith(idKey)Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 63 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
) {
9-63
97 ptr += idKey.length();-
98 v.productType = unquote(ptr, eol);-
99 continue;
executed 9 times by 3 tests: continue;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
100 }-
101-
102 if (line.startsWith(prettyNameKey)
line.startsWith(prettyNameKey)Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 54 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
) {
9-54
103 ptr += prettyNameKey.length();-
104 v.prettyName = unquote(ptr, eol);-
105 continue;
executed 9 times by 3 tests: continue;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
106 }-
107-
108 if (line.startsWith(versionKey)
line.startsWith(versionKey)Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEevaluated 45 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
) {
9-45
109 ptr += versionKey.length();-
110 v.productVersion = unquote(ptr, eol);-
111 continue;
executed 9 times by 3 tests: continue;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
112 }-
113 }
executed 45 times by 3 tests: end of block
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
45
114-
115 return
executed 9 times by 3 tests: return true;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
true;
executed 9 times by 3 tests: return true;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
116}-
117-
118static bool readEtcOsRelease(QUnixOSVersion &v)-
119{-
120 return
executed 9 times by 3 tests: return readEtcFile(v, "/etc/os-release", ([]() -> QByteArray { enum { Size = sizeof("ID=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "ID=" }; QByteArrayDataPtr holder = { qbyt...AME=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "PRETTY_NAME=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }()));
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
readEtcFile(v, "/etc/os-release", ([]() -> QByteArray { enum { Size = sizeof("ID=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "ID=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 9 times by 3 tests: return ba;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
ba;
executed 9 times by 3 tests: return ba;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
}()),
executed 9 times by 3 tests: return readEtcFile(v, "/etc/os-release", ([]() -> QByteArray { enum { Size = sizeof("ID=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "ID=" }; QByteArrayDataPtr holder = { qbyt...AME=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "PRETTY_NAME=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }()));
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
121 ([]() -> QByteArray { enum { Size = sizeof("VERSION_ID=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "VERSION_ID=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 9 times by 3 tests: return ba;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
ba;
executed 9 times by 3 tests: return ba;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
}()), ([]() -> QByteArray { enum { Size = sizeof("PRETTY_NAME=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "PRETTY_NAME=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 9 times by 3 tests: return ba;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
ba;
executed 9 times by 3 tests: return ba;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
}()));
executed 9 times by 3 tests: return readEtcFile(v, "/etc/os-release", ([]() -> QByteArray { enum { Size = sizeof("ID=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "ID=" }; QByteArrayDataPtr holder = { qbyt...AME=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "PRETTY_NAME=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }()));
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
122}-
123-
124static bool readEtcLsbRelease(QUnixOSVersion &v)-
125{-
126 bool ok = readEtcFile(v, "/etc/lsb-release", ([]() -> QByteArray { enum { Size = sizeof("DISTRIB_ID=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DISTRIB_ID=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
never executed: return ba;
ba;
never executed: return ba;
}()),
0
127 ([]() -> QByteArray { enum { Size = sizeof("DISTRIB_RELEASE=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DISTRIB_RELEASE=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
never executed: return ba;
ba;
never executed: return ba;
}()), ([]() -> QByteArray { enum { Size = sizeof("DISTRIB_DESCRIPTION=") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "DISTRIB_DESCRIPTION=" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
never executed: return ba;
ba;
never executed: return ba;
}()));
0
128 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
&& (v.prettyName.isEmpty()
v.prettyName.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
|| v.prettyName == v.productType
v.prettyName == v.productTypeDescription
TRUEnever evaluated
FALSEnever evaluated
)) {
0
129-
130-
131-
132-
133 QByteArray distrorelease = "/etc/" + v.productType.toLatin1().toLower() + "-release";-
134 int fd = qt_safe_open(distrorelease, 00);-
135 if (fd != -1
fd != -1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
136 struct stat64 sbuf;-
137 if (::
::fstat64(fd, &sbuf) != -1Description
TRUEnever evaluated
FALSEnever evaluated
fstat64(fd, &sbuf) != -1
::fstat64(fd, &sbuf) != -1Description
TRUEnever evaluated
FALSEnever evaluated
&& sbuf.st_size > v.prettyName.length()
sbuf.st_size >...yName.length()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
138-
139 QByteArray buffer(sbuf.st_size, Qt::Uninitialized);-
140 buffer.resize(qt_safe_read(fd, buffer.data(), sbuf.st_size));-
141 v.prettyName = QString::fromLatin1(buffer.trimmed());-
142 }
never executed: end of block
0
143 qt_safe_close(fd);-
144 }
never executed: end of block
0
145 }
never executed: end of block
0
146-
147-
148-
149-
150-
151 return
never executed: return ok && !(v.productType.isEmpty() && v.productVersion.isEmpty());
ok && !(v.productType.isEmpty() && v.productVersion.isEmpty());
never executed: return ok && !(v.productType.isEmpty() && v.productVersion.isEmpty());
0
152}-
153-
154-
155static QByteArray getEtcFileFirstLine(const char *fileName)-
156{-
157 QByteArray buffer = getEtcFileContent(fileName);-
158 if (buffer.isEmpty()
buffer.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
159 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
160-
161 const char *ptr = buffer.constData();-
162 int eol = buffer.indexOf("\n");-
163 return
never executed: return QByteArray(ptr, eol).trimmed();
QByteArray(ptr, eol).trimmed();
never executed: return QByteArray(ptr, eol).trimmed();
0
164}-
165-
166static bool readEtcRedHatRelease(QUnixOSVersion &v)-
167{-
168-
169-
170-
171 QByteArray line = getEtcFileFirstLine("/etc/redhat-release");-
172 if (line.isEmpty()
line.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
173 return
never executed: return false;
false;
never executed: return false;
0
174-
175 v.prettyName = QString::fromLatin1(line);-
176-
177 const char keyword[] = "release ";-
178 int releaseIndex = line.indexOf(keyword);-
179 v.productType = QString::fromLatin1(line.mid(0, releaseIndex)).remove(QLatin1Char(' '));-
180 int spaceIndex = line.indexOf(' ', releaseIndex + strlen(keyword));-
181 v.productVersion = QString::fromLatin1(line.mid(releaseIndex + strlen(keyword),-
182 spaceIndex > -1 ? spaceIndex - releaseIndex - int(strlen(keyword)) : -1));-
183 return
never executed: return true;
true;
never executed: return true;
0
184}-
185-
186static bool readEtcDebianVersion(QUnixOSVersion &v)-
187{-
188-
189-
190-
191 QByteArray line = getEtcFileFirstLine("/etc/debian_version");-
192 if (line.isEmpty()
line.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
193 return
never executed: return false;
false;
never executed: return false;
0
194-
195 v.productType = ([]() -> QString { enum { Size = sizeof(u"" "Debian")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Debian" }; 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
196 v.productVersion = QString::fromLatin1(line);-
197 return
never executed: return true;
true;
never executed: return true;
0
198}-
199-
200-
201static bool findUnixOsVersion(QUnixOSVersion &v)-
202{-
203 if (readEtcOsRelease(v)
readEtcOsRelease(v)Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-9
204 return
executed 9 times by 3 tests: return true;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
true;
executed 9 times by 3 tests: return true;
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
  • tst_selftests - unknown status
9
205 if (readEtcLsbRelease(v)
readEtcLsbRelease(v)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
206 return
never executed: return true;
true;
never executed: return true;
0
207-
208 if (readEtcRedHatRelease(v)
readEtcRedHatRelease(v)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
209 return
never executed: return true;
true;
never executed: return true;
0
210 if (readEtcDebianVersion(v)
readEtcDebianVersion(v)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
211 return
never executed: return true;
true;
never executed: return true;
0
212-
213 return
never executed: return false;
false;
never executed: return false;
0
214}-
215QString QSysInfo::buildCpuArchitecture()-
216{-
217 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "x86_64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "x86_64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "x86_64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
218}-
219QString QSysInfo::currentCpuArchitecture()-
220{-
221 long ret = -1;-
222 struct utsname u;-
223 if (ret == -1
ret == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
FALSEnever evaluated
)
0-1
224 ret = uname(&u);
executed 1 time by 1 test: ret = uname(&u);
Executed by:
  • tst_QOpenGlConfig
1
225-
226-
227 if (ret != -1
ret != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
FALSEnever evaluated
) {
0-1
228-
229-
230-
231 if (strcmp(u.machine, "aarch64") == 0
strcmp(u.machi...aarch64") == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
232 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "arm64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "arm64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "arm64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "arm64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "arm64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "arm64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
233 if (strncmp(u.machine, "armv", 4) == 0
strncmp(u.mach...armv", 4) == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
234 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "arm")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "arm" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "arm")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "arm" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "arm")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "arm" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
235-
236-
237-
238 if (strncmp(u.machine, "ppc", 3) == 0
strncmp(u.mach..."ppc", 3) == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
239 return
never executed: return QLatin1String("power") + QLatin1String(u.machine + 3);
QLatin1String("power") + QLatin1String(u.machine + 3);
never executed: return QLatin1String("power") + QLatin1String(u.machine + 3);
0
240 if (strncmp(u.machine, "powerpc", 7) == 0
strncmp(u.mach...erpc", 7) == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
241 return
never executed: return QLatin1String("power") + QLatin1String(u.machine + 7);
QLatin1String("power") + QLatin1String(u.machine + 7);
never executed: return QLatin1String("power") + QLatin1String(u.machine + 7);
0
242 if (strcmp(u.machine, "Power Macintosh") == 0
strcmp(u.machi...cintosh") == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
243 return
never executed: return QLatin1String("power");
QLatin1String("power");
never executed: return QLatin1String("power");
0
244-
245-
246-
247-
248 if (strcmp(u.machine, "sun4u") == 0
strcmp(u.machi... "sun4u") == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
|| strcmp(u.machine, "sparc64") == 0
strcmp(u.machi...sparc64") == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
249 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "sparcv9")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "sparcv9" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "sparcv9")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "sparcv9" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "sparcv9")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "sparcv9" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
250 if (strcmp(u.machine, "sparc32") == 0
strcmp(u.machi...sparc32") == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
251 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "sparc")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "sparc" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "sparc")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "sparc" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "sparc")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "sparc" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
252-
253-
254-
255 if (strlen(u.machine) == 4
strlen(u.machine) == 4Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
&& u.machine[0] == 'i'
u.machine[0] == 'i'Description
TRUEnever evaluated
FALSEnever evaluated
0-1
256 && u.machine[2] == '8'
u.machine[2] == '8'Description
TRUEnever evaluated
FALSEnever evaluated
&& u.machine[3] == '6'
u.machine[3] == '6'Description
TRUEnever evaluated
FALSEnever evaluated
)
0
257 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "i386")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "i386" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "i386")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "i386" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "i386")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "i386" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
258 if (strcmp(u.machine, "amd64") == 0
strcmp(u.machi... "amd64") == 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
)
0-1
259 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "x86_64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "x86_64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "x86_64")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
260-
261 return
executed 1 time by 1 test: return QString::fromLatin1(u.machine);
Executed by:
  • tst_QOpenGlConfig
QString::fromLatin1(u.machine);
executed 1 time by 1 test: return QString::fromLatin1(u.machine);
Executed by:
  • tst_QOpenGlConfig
1
262 }-
263-
264 return
never executed: return buildCpuArchitecture();
buildCpuArchitecture();
never executed: return buildCpuArchitecture();
0
265}-
266QString QSysInfo::buildAbi()-
267{-
268-
269-
270-
271-
272-
273 return
executed 1 time by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "x86_64" "-" "little_endian" "-" "lp64" "" "" "")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" "-" "little_endian" "-" "lp64" "" "" "" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QGlobal
([]() -> QString { enum { Size = sizeof(u"" "x86_64" "-" "little_endian" "-" "lp64" "" "" "")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" "-" "little_endian" "-" "lp64" "" "" "" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QGlobal
qstring_literal_temp;
executed 1 time by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QGlobal
}());
executed 1 time by 1 test: return ([]() -> QString { enum { Size = sizeof(u"" "x86_64" "-" "little_endian" "-" "lp64" "" "" "")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "x86_64" "-" "little_endian" "-" "lp64" "" "" "" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
Executed by:
  • tst_QGlobal
1
274-
275-
276-
277}-
278-
279static QString unknownText()-
280{-
281 return
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "unknown")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "unknown" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
([]() -> QString { enum { Size = sizeof(u"" "unknown")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "unknown" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
never executed: return ([]() -> QString { enum { Size = sizeof(u"" "unknown")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "unknown" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return qstring_literal_temp; }());
0
282}-
283QString QSysInfo::kernelType()-
284{-
285-
286-
287-
288-
289-
290 struct utsname u;-
291 if (uname(&u) == 0
uname(&u) == 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
FALSEnever evaluated
)
0-4
292 return
executed 4 times by 2 tests: return QString::fromLatin1(u.sysname).toLower();
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
QString::fromLatin1(u.sysname).toLower();
executed 4 times by 2 tests: return QString::fromLatin1(u.sysname).toLower();
Executed by:
  • tst_QFileSelector
  • tst_QOpenGlConfig
4
293-
294 return
never executed: return unknownText();
unknownText();
never executed: return unknownText();
0
295}-
296QString QSysInfo::kernelVersion()-
297{-
298-
299-
300-
301-
302-
303 struct utsname u;-
304 if (uname(&u) == 0
uname(&u) == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
FALSEnever evaluated
)
0-1
305 return
executed 1 time by 1 test: return QString::fromLatin1(u.release);
Executed by:
  • tst_QOpenGlConfig
QString::fromLatin1(u.release);
executed 1 time by 1 test: return QString::fromLatin1(u.release);
Executed by:
  • tst_QOpenGlConfig
1
306 return
never executed: return QString();
QString();
never executed: return QString();
0
307-
308}-
309QString QSysInfo::productType()-
310{-
311 QUnixOSVersion unixOsVersion;-
312 findUnixOsVersion(unixOsVersion);-
313 if (!unixOsVersion.productType.isEmpty()
!unixOsVersion...Type.isEmpty()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QFileSelector
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-6
314 return
executed 6 times by 2 tests: return unixOsVersion.productType;
Executed by:
  • tst_QFileSelector
  • tst_selftests - unknown status
unixOsVersion.productType;
executed 6 times by 2 tests: return unixOsVersion.productType;
Executed by:
  • tst_QFileSelector
  • tst_selftests - unknown status
6
315-
316 return
never executed: return unknownText();
unknownText();
never executed: return unknownText();
0
317}-
318QString QSysInfo::productVersion()-
319{-
320 QUnixOSVersion unixOsVersion;-
321 findUnixOsVersion(unixOsVersion);-
322 if (!unixOsVersion.productVersion.isEmpty()
!unixOsVersion...sion.isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-2
323 return
executed 2 times by 1 test: return unixOsVersion.productVersion;
Executed by:
  • tst_selftests - unknown status
unixOsVersion.productVersion;
executed 2 times by 1 test: return unixOsVersion.productVersion;
Executed by:
  • tst_selftests - unknown status
2
324-
325-
326-
327 return
never executed: return unknownText();
unknownText();
never executed: return unknownText();
0
328}-
329QString QSysInfo::prettyProductName()-
330{-
331 QUnixOSVersion unixOsVersion;-
332 findUnixOsVersion(unixOsVersion);-
333 if (!unixOsVersion.prettyName.isEmpty()
!unixOsVersion...Name.isEmpty()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QOpenGlConfig
FALSEnever evaluated
)
0-1
334 return
executed 1 time by 1 test: return unixOsVersion.prettyName;
Executed by:
  • tst_QOpenGlConfig
unixOsVersion.prettyName;
executed 1 time by 1 test: return unixOsVersion.prettyName;
Executed by:
  • tst_QOpenGlConfig
1
335-
336 struct utsname u;-
337 if (uname(&u) == 0
uname(&u) == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
338 return
never executed: return QString::fromLatin1(u.sysname) + QLatin1Char(' ') + QString::fromLatin1(u.release);
QString::fromLatin1(u.sysname) + QLatin1Char(' ') + QString::fromLatin1(u.release);
never executed: return QString::fromLatin1(u.sysname) + QLatin1Char(' ') + QString::fromLatin1(u.release);
0
339-
340 return
never executed: return unknownText();
unknownText();
never executed: return unknownText();
0
341}-
342QString QSysInfo::machineHostName()-
343{-
344-
345-
346-
347 struct utsname u;-
348 if (uname(&u) == 0
uname(&u) == 0Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_Lancelot
  • tst_QHostInfo
FALSEnever evaluated
)
0-3
349 return
executed 3 times by 2 tests: return QString::fromLocal8Bit(u.nodename);
Executed by:
  • tst_Lancelot
  • tst_QHostInfo
QString::fromLocal8Bit(u.nodename);
executed 3 times by 2 tests: return QString::fromLocal8Bit(u.nodename);
Executed by:
  • tst_Lancelot
  • tst_QHostInfo
3
350 return
never executed: return QString();
QString();
never executed: return QString();
0
351}-
352void qt_check_pointer(const char *n, int l)-
353{-
354 QMessageLogger(__FILE__, 3051, __PRETTY_FUNCTION__).fatal("In file %s, line %d: Out of memory", n, l);-
355}
never executed: end of block
0
356-
357-
358-
359-
360-
361-
362void qBadAlloc()-
363{-
364 throw
never executed: throw std::bad_alloc();
std::bad_alloc();
never executed: throw std::bad_alloc();
0
365}-
366-
367-
368-
369-
370-
371-
372-
373__attribute__((__noreturn__)) void qTerminate() noexcept-
374{-
375 std::terminate();-
376}
never executed: end of block
0
377-
378-
379-
380-
381-
382void qt_assert(const char *assertion, const char *file, int line) noexcept-
383{-
384 QMessageLogger(__FILE__, 3081, __PRETTY_FUNCTION__).fatal("ASSERT: \"%s\" in file %s, line %d", assertion, file, line);-
385}
never executed: end of block
0
386-
387-
388-
389-
390void qt_assert_x(const char *where, const char *what, const char *file, int line) noexcept-
391{-
392 QMessageLogger(__FILE__, 3089, __PRETTY_FUNCTION__).fatal("ASSERT failure in %s: \"%s\", file %s, line %d", where, what, file, line);-
393}
never executed: end of block
0
394-
395-
396-
397-
398-
399-
400-
401__attribute__((visibility("default"))) unsigned int qt_int_sqrt(unsigned int n)-
402{-
403-
404 if (n >= ((2147483647 * 2U + 1U)>>2)
n >= ((2147483...* 2U + 1U)>>2)Description
TRUEnever evaluated
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
) {
0-23
405 unsigned int r = 2 * qt_int_sqrt(n / 4);-
406 unsigned int r2 = r + 1;-
407 return
never executed: return (n >= r2 * r2) ? r2 : r;
(n >= r2 * r2) ? r2 : r;
never executed: return (n >= r2 * r2) ? r2 : r;
0
408 }-
409 uint h, p= 0, q= 1, r= n;-
410 while (q <= n
q <= nDescription
TRUEevaluated 190 times by 4 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
)
23-190
411 q <<= 2;
executed 190 times by 4 tests: q <<= 2;
Executed by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
190
412 while (q != 1
q != 1Description
TRUEevaluated 190 times by 4 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
FALSEevaluated 23 times by 4 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
) {
23-190
413 q >>= 2;-
414 h= p + q;-
415 p >>= 1;-
416 if (r >= h
r >= hDescription
TRUEevaluated 96 times by 4 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
FALSEevaluated 94 times by 4 tests
Evaluated by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
) {
94-96
417 p += q;-
418 r -= h;-
419 }
executed 96 times by 4 tests: end of block
Executed by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
96
420 }
executed 190 times by 4 tests: end of block
Executed by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
190
421 return
executed 23 times by 4 tests: return p;
Executed by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
p;
executed 23 times by 4 tests: return p;
Executed by:
  • tst_QMessageBox
  • tst_QStaticText
  • tst_QTextDocument
  • tst_QWizard
23
422}-
423-
424void *qMemCopy(void *dest, const void *src, size_t n) { return
never executed: return memcpy(dest, src, n);
memcpy(dest, src, n);
never executed: return memcpy(dest, src, n);
}
0
425void *qMemSet(void *dest, int c, size_t n) { return
never executed: return memset(dest, c, n);
memset(dest, c, n);
never executed: return memset(dest, c, n);
}
0
426-
427-
428-
429namespace {-
430 static inline __attribute__((__unused__)) QString fromstrerror_helper(int, const QByteArray &buf)-
431 {-
432 return
never executed: return QString::fromLocal8Bit(buf.constData());
QString::fromLocal8Bit(buf.constData());
never executed: return QString::fromLocal8Bit(buf.constData());
0
433 }-
434 static inline __attribute__((__unused__)) QString fromstrerror_helper(const char *str, const QByteArray &)-
435 {-
436 return
executed 17 times by 5 tests: return QString::fromLocal8Bit(str);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_qmakelib
QString::fromLocal8Bit(str);
executed 17 times by 5 tests: return QString::fromLocal8Bit(str);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_qmakelib
17
437 }-
438}-
439-
440-
441QString qt_error_string(int errorCode)-
442{-
443 const char *s = 0;-
444 QString ret;-
445 if (errorCode == -1
errorCode == -1Description
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QTemporaryDir
FALSEevaluated 3716 times by 52 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
) {
9-3716
446-
447-
448-
449 errorCode = (*__errno_location ());-
450-
451 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QTemporaryDir
9
452 switch (errorCode) {-
453 case
never executed: case 0:
0:
never executed: case 0:
0
454 break;
never executed: break;
0
455 case
executed 47 times by 7 tests: case 13:
Executed by:
  • tst_QDir
  • tst_QFile
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QTemporaryDir
  • tst_QTemporaryFile
13:
executed 47 times by 7 tests: case 13:
Executed by:
  • tst_QDir
  • tst_QFile
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QTemporaryDir
  • tst_QTemporaryFile
47
456 s = "Permission denied";-
457 break;
executed 47 times by 7 tests: break;
Executed by:
  • tst_QDir
  • tst_QFile
  • tst_QImageWriter
  • tst_QNetworkReply
  • tst_QSaveFile
  • tst_QTemporaryDir
  • tst_QTemporaryFile
47
458 case
never executed: case 24:
24:
never executed: case 24:
0
459 s = "Too many open files";-
460 break;
never executed: break;
0
461 case
executed 3655 times by 50 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPlainTextEdit
  • ...
2:
executed 3655 times by 50 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPlainTextEdit
  • ...
3655
462 s = "No such file or directory";-
463 break;
executed 3655 times by 50 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPlainTextEdit
  • ...
3655
464 case
executed 6 times by 1 test: case 28:
Executed by:
  • tst_QFile
28:
executed 6 times by 1 test: case 28:
Executed by:
  • tst_QFile
6
465 s = "No space left on device";-
466 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_QFile
6
467 default
executed 17 times by 5 tests: default:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_qmakelib
:
executed 17 times by 5 tests: default:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_qmakelib
{
17
468 QByteArray buf(1024, '\0');-
469 ret = fromstrerror_helper(strerror_r(errorCode, buf.data(), buf.size()), buf);-
470-
471-
472-
473 break;
executed 17 times by 5 tests: break;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_qmakelib
}
17
474 }-
475 if (s
sDescription
TRUEevaluated 3708 times by 52 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
FALSEevaluated 17 times by 5 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QDir
  • tst_QFile
  • tst_QSaveFile
  • tst_qmakelib
)
17-3708
476-
477-
478 ret = QString::fromLatin1(s);
executed 3708 times by 52 tests: ret = QString::fromLatin1(s);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPixmap
  • ...
3708
479 return
executed 3725 times by 53 tests: return ret.trimmed();
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • ...
ret.trimmed();
executed 3725 times by 53 tests: return ret.trimmed();
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTime
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QGlobal
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLabel
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • ...
3725
480}-
481-
482-
483-
484static QBasicMutex environmentMutex;-
485QByteArray qgetenv(const char *varName)-
486{-
487 QMutexLocker locker(&environmentMutex);-
488 return
executed 48198 times by 361 tests: return QByteArray(::getenv(varName));
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
QByteArray(::getenv(varName));
executed 48198 times by 361 tests: return QByteArray(::getenv(varName));
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • ...
48198
489-
490}-
491bool qEnvironmentVariableIsEmpty(const char *varName) noexcept-
492{-
493 QMutexLocker locker(&environmentMutex);-
494 const char * const value = ::getenv(varName);-
495 return
executed 1243771 times by 517 tests: return !value || !*value;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
!value || !*value;
executed 1243771 times by 517 tests: return !value || !*value;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1243771
496-
497}-
498int qEnvironmentVariableIntValue(const char *varName, bool *ok) noexcept-
499{-
500 QMutexLocker locker(&environmentMutex);-
501 const char * const buffer = ::getenv(varName);-
502 if (!buffer
!bufferDescription
TRUEevaluated 2761 times by 507 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 45 times by 2 tests
Evaluated by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
|| !*buffer
!*bufferDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QGetPutEnv
FALSEevaluated 43 times by 2 tests
Evaluated by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
) {
2-2761
503 if (ok
okDescription
TRUEevaluated 1503 times by 503 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
FALSEevaluated 1260 times by 196 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
)
1260-1503
504 *
executed 1503 times by 503 tests: *ok = false;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
ok = false;
executed 1503 times by 503 tests: *ok = false;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
1503
505 return
executed 2763 times by 507 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
0;
executed 2763 times by 507 tests: return 0;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QAnimationGroup
  • ...
2763
506 }-
507-
508 bool ok_ = true;-
509 const qlonglong value = qstrtoll(buffer, nullptr, 0, &ok_);-
510 if (int(value) != value
int(value) != valueDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QGetPutEnv
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
) {
14-29
511 if (ok
okDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QGetPutEnv
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QGetPutEnv
)
7
512 *
executed 7 times by 1 test: *ok = false;
Executed by:
  • tst_QGetPutEnv
ok = false;
executed 7 times by 1 test: *ok = false;
Executed by:
  • tst_QGetPutEnv
7
513 return
executed 14 times by 1 test: return 0;
Executed by:
  • tst_QGetPutEnv
0;
executed 14 times by 1 test: return 0;
Executed by:
  • tst_QGetPutEnv
14
514 } else if (ok
okDescription
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QGetPutEnv
) {
14-15
515 *ok = ok_;-
516 }
executed 15 times by 2 tests: end of block
Executed by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
15
517 return
executed 29 times by 2 tests: return int(value);
Executed by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
int(value);
executed 29 times by 2 tests: return int(value);
Executed by:
  • tst_QGestureRecognizer
  • tst_QGetPutEnv
29
518}-
519bool qEnvironmentVariableIsSet(const char *varName) noexcept-
520{-
521 QMutexLocker locker(&environmentMutex);-
522-
523-
524-
525-
526-
527 return
executed 1985 times by 178 tests: return ::getenv(varName) != 0;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
::getenv(varName) != 0;
executed 1985 times by 178 tests: return ::getenv(varName) != 0;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusXmlParser
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
1985
528-
529}-
530bool qputenv(const char *varName, const QByteArray& value)-
531{-
532 QMutexLocker locker(&environmentMutex);-
533-
534-
535-
536-
537 return
executed 1846 times by 13 tests: return setenv(varName, value.constData(), true) == 0;
Executed by:
  • tst_QApplication
  • tst_QDateTime
  • tst_QDir
  • tst_QGetPutEnv
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QProcessEnvironment
  • tst_qmimetype
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
setenv(varName, value.constData(), true) == 0;
executed 1846 times by 13 tests: return setenv(varName, value.constData(), true) == 0;
Executed by:
  • tst_QApplication
  • tst_QDateTime
  • tst_QDir
  • tst_QGetPutEnv
  • tst_QLogging
  • tst_QLoggingRegistry
  • tst_QMimeDatabase
  • tst_QNetworkProxyFactory
  • tst_QProcessEnvironment
  • tst_qmimetype
  • tst_qstandardpaths
  • tst_rcc
  • tst_selftests - unknown status
1846
538}-
539bool qunsetenv(const char *varName)-
540{-
541 QMutexLocker locker(&environmentMutex);-
542-
543-
544-
545-
546 return
executed 74 times by 4 tests: return unsetenv(varName) == 0;
Executed by:
  • tst_QDateTime
  • tst_QGetPutEnv
  • tst_QLoggingRegistry
  • tst_QNetworkProxyFactory
unsetenv(varName) == 0;
executed 74 times by 4 tests: return unsetenv(varName) == 0;
Executed by:
  • tst_QDateTime
  • tst_QGetPutEnv
  • tst_QLoggingRegistry
  • tst_QNetworkProxyFactory
74
547}-
548-
549-
550-
551-
552-
553-
554-
555typedef uint SeedStorageType;-
556-
557-
558typedef QThreadStorage<SeedStorageType *> SeedStorage;-
559namespace { namespace Q_QGS_randTLS { typedef SeedStorage Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 52 times by 51 tests
Evaluated by:
  • tst_compiler - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qalgorithms - unknown status
  • tst_qauthenticator - unknown status
  • tst_qcolordialog - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdir - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qfile - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileinfo - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qfilesystemwatcher - unknown status
  • tst_qfuture - unknown status
  • tst_qgraphicsitem - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qgraphicsscene - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qicon - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 52 times by 51 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_compiler - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qalgorithms - unknown status
  • tst_qauthenticator - unknown status
  • tst_qcolordialog - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdir - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qfile - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileinfo - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qfilesystemwatcher - unknown status
  • tst_qfuture - unknown status
  • tst_qgraphicsitem - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qgraphicsscene - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qicon - unknown status
  • ...
}
executed 52 times by 51 tests: end of block
Executed by:
  • tst_compiler - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qalgorithms - unknown status
  • tst_qauthenticator - unknown status
  • tst_qcolordialog - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdir - unknown status
  • tst_qdnslookup - unknown status
  • tst_qdnslookup_appless - unknown status
  • tst_qfile - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileinfo - unknown status
  • tst_qfilesystemmodel - unknown status
  • tst_qfilesystemwatcher - unknown status
  • tst_qfuture - unknown status
  • tst_qgraphicsitem - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qgraphicsscene - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qhttpsocketengine - unknown status
  • tst_qicon - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 20183061 times by 51 tests: return &holder.value;
Executed by:
  • tst_Compiler
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFuture
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • ...
&holder.value;
executed 20183061 times by 51 tests: return &holder.value;
Executed by:
  • tst_Compiler
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFuture
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • ...
} } } static QGlobalStatic<SeedStorage, Q_QGS_randTLS::innerFunction, Q_QGS_randTLS::guard> randTLS;
0-20183061
560void qsrand(uint seed)-
561{-
562-
563 SeedStorage *seedStorage = randTLS();-
564 if (seedStorage
seedStorageDescription
TRUEevaluated 30 times by 6 tests
Evaluated by:
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QNetworkReply
  • tst_QRand
  • tst_QTemporaryFile
  • tst_Spdy
FALSEnever evaluated
) {
0-30
565 SeedStorageType *pseed = seedStorage->localData();-
566 if (!pseed
!pseedDescription
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
FALSEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QRand
  • tst_QTemporaryFile
  • tst_Spdy
)
7-23
567 seedStorage->setLocalData(pseed = new SeedStorageType);
executed 23 times by 2 tests: seedStorage->setLocalData(pseed = new SeedStorageType);
Executed by:
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
23
568 *pseed = seed;-
569 }
executed 30 times by 6 tests: end of block
Executed by:
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QNetworkReply
  • tst_QRand
  • tst_QTemporaryFile
  • tst_Spdy
else {
30
570-
571-
572-
573-
574 srand(seed);-
575 }
never executed: end of block
0
576}-
577int qrand()-
578{-
579-
580 SeedStorage *seedStorage = randTLS();-
581 if (seedStorage
seedStorageDescription
TRUEevaluated 20183031 times by 50 tests
Evaluated by:
  • tst_Compiler
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFuture
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qlockfile - unknown status
) {
1-20183031
582 SeedStorageType *pseed = seedStorage->localData();-
583 if (!pseed
!pseedDescription
TRUEevaluated 649 times by 48 tests
Evaluated by:
  • tst_Compiler
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFuture
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
FALSEevaluated 20182382 times by 44 tests
Evaluated by:
  • tst_Compiler
  • tst_LargeFile
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
) {
649-20182382
584 seedStorage->setLocalData(pseed = new SeedStorageType);-
585 *pseed = 1;-
586 }
executed 649 times by 48 tests: end of block
Executed by:
  • tst_Compiler
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFuture
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QLockFile
  • ...
649
587 return
executed 20183031 times by 50 tests: return rand_r(pseed);
Executed by:
  • tst_Compiler
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFuture
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
rand_r(pseed);
executed 20183031 times by 50 tests: return rand_r(pseed);
Executed by:
  • tst_Compiler
  • tst_LargeFile
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QAuthenticator
  • tst_QColorDialog
  • tst_QDBusMarshall
  • tst_QDir
  • tst_QDnsLookup
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFuture
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • ...
20183031
588 } else {-
589-
590-
591-
592-
593 return
executed 1 time by 1 test: return rand();
Executed by:
  • tst_qlockfile - unknown status
rand();
executed 1 time by 1 test: return rand();
Executed by:
  • tst_qlockfile - unknown status
1
594 }-
595}-
596struct QInternal_CallBackTable {-
597 QVector<QList<qInternalCallback> > callbacks;-
598};-
599-
600namespace { namespace Q_QGS_global_callback_table { typedef QInternal_CallBackTable Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 1172 times by 420 tests
Evaluated by:
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 1172 times by 420 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • ...
}
executed 1172 times by 420 tests: end of block
Executed by:
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractsocket - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 1768577 times by 526 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
&holder.value;
executed 1768577 times by 526 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
} } } static QGlobalStatic<QInternal_CallBackTable, Q_QGS_global_callback_table::innerFunction, Q_QGS_global_callback_table::guard> global_callback_table;
0-1768577
601-
602bool QInternal::registerCallback(Callback cb, qInternalCallback callback)-
603{-
604 if (cb >= 0
cb >= 0Description
TRUEnever evaluated
FALSEnever evaluated
&& cb < QInternal::LastCallback
cb < QInternal::LastCallbackDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
605 QInternal_CallBackTable *cbt = global_callback_table();-
606 cbt->callbacks.resize(cb + 1);-
607 cbt->callbacks[cb].append(callback);-
608 return
never executed: return true;
true;
never executed: return true;
0
609 }-
610 return
never executed: return false;
false;
never executed: return false;
0
611}-
612-
613bool QInternal::unregisterCallback(Callback cb, qInternalCallback callback)-
614{-
615 if (cb >= 0
cb >= 0Description
TRUEnever evaluated
FALSEnever evaluated
&& cb < QInternal::LastCallback
cb < QInternal::LastCallbackDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
616 QInternal_CallBackTable *cbt = global_callback_table();-
617 return
never executed: return (bool) cbt->callbacks[cb].removeAll(callback);
(bool) cbt->callbacks[cb].removeAll(callback);
never executed: return (bool) cbt->callbacks[cb].removeAll(callback);
0
618 }-
619 return
never executed: return false;
false;
never executed: return false;
0
620}-
621-
622bool QInternal::activateCallbacks(Callback cb, void **parameters)-
623{-
624 ((!(cb >= 0)) ? qt_assert_x("QInternal::activateCallback()", "Callback id must be a valid id",__FILE__,4032) : qt_noop());-
625-
626 QInternal_CallBackTable *cbt = global_callback_table();-
627 if (cbt
cbtDescription
TRUEevaluated 1768591 times by 526 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_qdbusconnection_no_app - unknown status
&& cb < cbt->callbacks.size()
cb < cbt->callbacks.size()Description
TRUEnever evaluated
FALSEevaluated 1768591 times by 526 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
) {
0-1768591
628 QList<qInternalCallback> callbacks = cbt->callbacks[cb];-
629 bool ret = false;-
630 for (int i=0; i<callbacks.size()
i<callbacks.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
631 ret |= (callbacks.at(i))(parameters);
never executed: ret |= (callbacks.at(i))(parameters);
0
632 return
never executed: return ret;
ret;
never executed: return ret;
0
633 }-
634 return
executed 1768594 times by 527 tests: return false;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
false;
executed 1768594 times by 527 tests: return false;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
1768594
635}-
636-
Switch to Source codePreprocessed file

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