OpenCoverage

qbytearraymatcher.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qbytearraymatcher.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5static inline void bm_init_skiptable(const uchar *cc, int len, uchar *skiptable)-
6{-
7 int l = qMin(len, 255);-
8 memset(skiptable, l, 256*sizeof(uchar));-
9 cc += len - l;-
10 while (l--
l--Description
TRUEevaluated 1028873 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 42590 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
42590-1028873
11 skiptable[*cc++] = l;
executed 1028873 times by 18 tests: skiptable[*cc++] = l;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
1028873
12}
executed 42590 times by 18 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
42590
13-
14static inline int bm_find(const uchar *cc, int l, int index, const uchar *puc, uint pl,-
15 const uchar *skiptable)-
16{-
17 if (pl == 0
pl == 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 42641 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
8-42641
18 return
executed 8 times by 1 test: return index > l ? -1 : index;
Executed by:
  • tst_QString
index > l ? -1 : index;
executed 8 times by 1 test: return index > l ? -1 : index;
Executed by:
  • tst_QString
8
19 const uint pl_minus_one = pl - 1;-
20-
21 const uchar *current = cc + index + pl_minus_one;-
22 const uchar *end = cc + l;-
23 while (current < end
current < endDescription
TRUEevaluated 14180096 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 2700 times by 10 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
2700-14180096
24 uint skip = skiptable[*current];-
25 if (!skip
!skipDescription
TRUEevaluated 50904 times by 16 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 14129192 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
) {
50904-14129192
26-
27 while (skip < pl
skip < plDescription
TRUEevaluated 1074300 times by 16 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 38959 times by 14 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_qmessagehandler
) {
38959-1074300
28 if (*(
*(current - sk...us_one - skip]Description
TRUEevaluated 11945 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 1062355 times by 16 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
current - skip) != puc[pl_minus_one - skip]
*(current - sk...us_one - skip]Description
TRUEevaluated 11945 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 1062355 times by 16 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
11945-1062355
29 break;
executed 11945 times by 13 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
11945
30 skip++;-
31 }
executed 1062355 times by 16 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
1062355
32 if (skip > pl_minus_one
skip > pl_minus_oneDescription
TRUEevaluated 38959 times by 14 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_qmessagehandler
FALSEevaluated 11945 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
11945-38959
33 return
executed 38959 times by 14 tests: return (current - cc) - skip + 1;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_qmessagehandler
(current - cc) - skip + 1;
executed 38959 times by 14 tests: return (current - cc) - skip + 1;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_qmessagehandler
38959
34-
35-
36-
37 if (skiptable[*(current - skip)] == pl
skiptable[*(cu...- skip)] == plDescription
TRUEevaluated 4271 times by 11 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 7674 times by 9 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_qmessagehandler
)
4271-7674
38 skip = pl - skip;
executed 4271 times by 11 tests: skip = pl - skip;
Executed by:
  • tst_NetworkSelfTest
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
4271
39 else-
40 skip = 1;
executed 7674 times by 9 tests: skip = 1;
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_qmessagehandler
7674
41 }-
42 if (current > end - skip
current > end - skipDescription
TRUEevaluated 982 times by 8 tests
Evaluated by:
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEevaluated 14140155 times by 18 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
982-14140155
43 break;
executed 982 times by 8 tests: break;
Executed by:
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_qlogging - unknown status
  • tst_qmessagehandler
982
44 current += skip;-
45 }
executed 14140155 times by 18 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
14140155
46 return
executed 3682 times by 11 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
-1;
executed 3682 times by 11 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
3682
47}-
48QByteArrayMatcher::QByteArrayMatcher()-
49 : d(0)-
50{-
51 p.p = 0;-
52 p.l = 0;-
53 memset(p.q_skiptable, 0, sizeof(p.q_skiptable));-
54}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QByteArrayMatcher
2
55-
56-
57-
58-
59-
60-
61QByteArrayMatcher::QByteArrayMatcher(const char *pattern, int length)-
62 : d(0)-
63{-
64 p.p = reinterpret_cast<const uchar *>(pattern);-
65 p.l = length;-
66 bm_init_skiptable(p.p, p.l, p.q_skiptable);-
67}
executed 2754 times by 10 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2754
68-
69-
70-
71-
72-
73QByteArrayMatcher::QByteArrayMatcher(const QByteArray &pattern)-
74 : d(0), q_pattern(pattern)-
75{-
76 p.p = reinterpret_cast<const uchar *>(pattern.constData());-
77 p.l = pattern.size();-
78 bm_init_skiptable(p.p, p.l, p.q_skiptable);-
79}
executed 42 times by 2 tests: end of block
Executed by:
  • tst_QByteArrayMatcher
  • tst_QString
42
80-
81-
82-
83-
84QByteArrayMatcher::QByteArrayMatcher(const QByteArrayMatcher &other)-
85 : d(0)-
86{-
87 operator=(other);-
88}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QByteArrayMatcher
1
89-
90-
91-
92-
93QByteArrayMatcher::~QByteArrayMatcher()-
94{-
95 (void)d;;-
96}
executed 2801 times by 12 tests: end of block
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qbytearraymatcher - unknown status
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2801
97-
98-
99-
100-
101QByteArrayMatcher &QByteArrayMatcher::operator=(const QByteArrayMatcher &other)-
102{-
103 q_pattern = other.q_pattern;-
104 memcpy(&p, &other.p, sizeof(p));-
105 return
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QByteArrayMatcher
*this;
executed 5 times by 1 test: return *this;
Executed by:
  • tst_QByteArrayMatcher
5
106}-
107-
108-
109-
110-
111-
112-
113-
114void QByteArrayMatcher::setPattern(const QByteArray &pattern)-
115{-
116 q_pattern = pattern;-
117 p.p = reinterpret_cast<const uchar *>(pattern.constData());-
118 p.l = pattern.size();-
119 bm_init_skiptable(p.p, p.l, p.q_skiptable);-
120}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QByteArrayMatcher
3
121int QByteArrayMatcher::indexIn(const QByteArray &ba, int from) const-
122{-
123 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 2855 times by 11 tests
Evaluated by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
0-2855
124 from = 0;
never executed: from = 0;
0
125 return
executed 2855 times by 11 tests: return bm_find(reinterpret_cast<const uchar *>(ba.constData()), ba.size(), from, p.p, p.l, p.q_skiptable);
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
bm_find(reinterpret_cast<const uchar *>(ba.constData()), ba.size(), from,
executed 2855 times by 11 tests: return bm_find(reinterpret_cast<const uchar *>(ba.constData()), ba.size(), from, p.p, p.l, p.q_skiptable);
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2855
126 p.p, p.l, p.q_skiptable);
executed 2855 times by 11 tests: return bm_find(reinterpret_cast<const uchar *>(ba.constData()), ba.size(), from, p.p, p.l, p.q_skiptable);
Executed by:
  • tst_Collections
  • tst_QByteArray
  • tst_QByteArrayMatcher
  • tst_QResourceEngine
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_Selftests
  • tst_Spdy
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2855
127}-
128int QByteArrayMatcher::indexIn(const char *str, int len, int from) const-
129{-
130 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QByteArrayMatcher
)
0-3
131 from = 0;
never executed: from = 0;
0
132 return
executed 3 times by 1 test: return bm_find(reinterpret_cast<const uchar *>(str), len, from, p.p, p.l, p.q_skiptable);
Executed by:
  • tst_QByteArrayMatcher
bm_find(reinterpret_cast<const uchar *>(str), len, from,
executed 3 times by 1 test: return bm_find(reinterpret_cast<const uchar *>(str), len, from, p.p, p.l, p.q_skiptable);
Executed by:
  • tst_QByteArrayMatcher
3
133 p.p, p.l, p.q_skiptable);
executed 3 times by 1 test: return bm_find(reinterpret_cast<const uchar *>(str), len, from, p.p, p.l, p.q_skiptable);
Executed by:
  • tst_QByteArrayMatcher
3
134}-
135static int findChar(const char *str, int len, char ch, int from)-
136{-
137 const uchar *s = (const uchar *)str;-
138 uchar c = (uchar)ch;-
139 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
140 from = qMax(from + len, 0);
never executed: from = qMax(from + len, 0);
0
141 if (from < len
from < lenDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
142 const uchar *n = s + from - 1;-
143 const uchar *e = s + len;-
144 while (++
++n != eDescription
TRUEnever evaluated
FALSEnever evaluated
n != e
++n != eDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
145 if (*
*n == cDescription
TRUEnever evaluated
FALSEnever evaluated
n == c
*n == cDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
146 return
never executed: return n - s;
n - s;
never executed: return n - s;
0
147 }
never executed: end of block
0
148 return
never executed: return -1;
-1;
never executed: return -1;
0
149}-
150-
151-
152-
153-
154static int qFindByteArrayBoyerMoore(-
155 const char *haystack, int haystackLen, int haystackOffset,-
156 const char *needle, int needleLen)-
157{-
158 uchar skiptable[256];-
159 bm_init_skiptable((const uchar *)needle, needleLen, skiptable);-
160 if (haystackOffset < 0
haystackOffset < 0Description
TRUEnever evaluated
FALSEevaluated 39791 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
)
0-39791
161 haystackOffset = 0;
never executed: haystackOffset = 0;
0
162 return
executed 39791 times by 12 tests: return bm_find((const uchar *)haystack, haystackLen, haystackOffset, (const uchar *)needle, needleLen, skiptable);
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
bm_find((const uchar *)haystack, haystackLen, haystackOffset,
executed 39791 times by 12 tests: return bm_find((const uchar *)haystack, haystackLen, haystackOffset, (const uchar *)needle, needleLen, skiptable);
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
39791
163 (const uchar *)needle, needleLen, skiptable);
executed 39791 times by 12 tests: return bm_find((const uchar *)haystack, haystackLen, haystackOffset, (const uchar *)needle, needleLen, skiptable);
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
39791
164}-
165int qFindByteArray(-
166 const char *haystack0, int haystackLen, int from,-
167 const char *needle, int needleLen)-
168{-
169 const int l = haystackLen;-
170 const int sl = needleLen;-
171 if (from < 0
from < 0Description
TRUEnever evaluated
FALSEevaluated 730530 times by 34 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • ...
)
0-730530
172 from += l;
never executed: from += l;
0
173 if (uint(sl + from) > (uint)l
uint(sl + from) > (uint)lDescription
TRUEnever evaluated
FALSEevaluated 730530 times by 34 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • ...
)
0-730530
174 return
never executed: return -1;
-1;
never executed: return -1;
0
175 if (!sl
!slDescription
TRUEnever evaluated
FALSEevaluated 730530 times by 34 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • ...
)
0-730530
176 return
never executed: return from;
from;
never executed: return from;
0
177 if (!l
!lDescription
TRUEnever evaluated
FALSEevaluated 730530 times by 34 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • ...
)
0-730530
178 return
never executed: return -1;
-1;
never executed: return -1;
0
179-
180 if (sl == 1
sl == 1Description
TRUEnever evaluated
FALSEevaluated 730530 times by 34 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • ...
)
0-730530
181 return
never executed: return findChar(haystack0, haystackLen, needle[0], from);
findChar(haystack0, haystackLen, needle[0], from);
never executed: return findChar(haystack0, haystackLen, needle[0], from);
0
182-
183-
184-
185-
186-
187-
188 if (l > 500
l > 500Description
TRUEevaluated 39823 times by 13 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
FALSEevaluated 690707 times by 33 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • ...
&& sl > 5
sl > 5Description
TRUEevaluated 39791 times by 12 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
FALSEevaluated 32 times by 4 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextEdit
)
32-690707
189 return
executed 39791 times by 12 tests: return qFindByteArrayBoyerMoore(haystack0, haystackLen, from, needle, needleLen);
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
qFindByteArrayBoyerMoore(haystack0, haystackLen, from,
executed 39791 times by 12 tests: return qFindByteArrayBoyerMoore(haystack0, haystackLen, from, needle, needleLen);
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
39791
190 needle, needleLen);
executed 39791 times by 12 tests: return qFindByteArrayBoyerMoore(haystack0, haystackLen, from, needle, needleLen);
Executed by:
  • tst_NetworkSelfTest
  • tst_QByteArray
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTextCodec
  • tst_QTextEdit
  • tst_Selftests
  • tst_qmessagehandler
39791
191-
192-
193-
194-
195-
196-
197 const char *haystack = haystack0 + from;-
198 const char *end = haystack0 + (l - sl);-
199 const uint sl_minus_1 = sl - 1;-
200 uint hashNeedle = 0, hashHaystack = 0;-
201 int idx;-
202 for (idx = 0; idx < sl
idx < slDescription
TRUEevaluated 4905989 times by 33 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • ...
FALSEevaluated 690739 times by 33 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • ...
; ++idx) {
690739-4905989
203 hashNeedle = ((hashNeedle<<1) + needle[idx]);-
204 hashHaystack = ((hashHaystack<<1) + haystack[idx]);-
205 }
executed 4905989 times by 33 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • ...
4905989
206 hashHaystack -= *(haystack + sl_minus_1);-
207-
208 while (haystack <= end
haystack <= endDescription
TRUEevaluated 19519443 times by 33 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • ...
FALSEevaluated 569544 times by 22 tests
Evaluated by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_Selftests
  • tst_Spdy
  • tst_qapplication - unknown status
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
569544-19519443
209 hashHaystack += *(haystack + sl_minus_1);-
210 if (hashHaystack == hashNeedle
hashHaystack == hashNeedleDescription
TRUEevaluated 121219 times by 25 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qmake
  • tst_qmessagehandler
FALSEevaluated 19398224 times by 29 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qapplication - unknown status
  • ...
&& *
*needle == *haystackDescription
TRUEevaluated 121197 times by 24 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qmake
  • tst_qmessagehandler
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QTextBrowser
needle == *haystack
*needle == *haystackDescription
TRUEevaluated 121197 times by 24 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qmake
  • tst_qmessagehandler
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QTextBrowser
22-19398224
211 && memcmp(needle, haystack, sl) == 0
memcmp(needle,...tack, sl) == 0Description
TRUEevaluated 121195 times by 24 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qmake
  • tst_qmessagehandler
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QByteArray
)
2-121195
212 return
executed 121195 times by 24 tests: return haystack - haystack0;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qmake
  • tst_qmessagehandler
haystack - haystack0;
executed 121195 times by 24 tests: return haystack - haystack0;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qmake
  • tst_qmessagehandler
121195
213-
214 if (sl_minus_1 < sizeof(uint) * 8
sl_minus_1 < sizeof(uint) * 8Description
TRUEevaluated 19396717 times by 28 tests
Evaluated by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qapplication - unknown status
  • tst_qmake
  • ...
FALSEevaluated 1531 times by 3 tests
Evaluated by:
  • tst_QOpenGlConfig
  • tst_QString
  • tst_qmessagehandler
) hashHaystack -= uint(*haystack) << sl_minus_1;
executed 19396717 times by 28 tests: hashHaystack -= uint(*haystack) << sl_minus_1;
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qapplication - unknown status
  • tst_qmake
  • ...
hashHaystack <<= 1;
1531-19396717
215 ++haystack;-
216 }
executed 19398248 times by 29 tests: end of block
Executed by:
  • tst_Collections
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_QXmlStream
  • tst_Selftests
  • tst_Spdy
  • tst_qapplication - unknown status
  • ...
19398248
217 return
executed 569544 times by 22 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_Selftests
  • tst_Spdy
  • tst_qapplication - unknown status
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
-1;
executed 569544 times by 22 tests: return -1;
Executed by:
  • tst_Collections
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QByteArray
  • tst_QGuiApplication
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeData
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSslCertificate
  • tst_QSslKey
  • tst_QString
  • tst_QTextBrowser
  • tst_QTextCodec
  • tst_Selftests
  • tst_Spdy
  • tst_qapplication - unknown status
  • tst_qmessagehandler
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
569544
218}-
219-
220-
Switch to Source codePreprocessed file

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