qlocale.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qlocale.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11static QSystemLocale *_systemLocale = 0;-
12class QSystemLocaleSingleton: public QSystemLocale-
13{-
14public:-
15 QSystemLocaleSingleton() : QSystemLocale(true) {}
executed 779 times by 11 tests: end of block
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
16};-
17-
18namespace { namespace Q_QGS_QSystemLocale_globalSystemLocale { typedef QSystemLocaleSingleton 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 1244 times by 541 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 1244 times by 541 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
}
executed 1244 times by 541 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 19015 times by 29 tests: return &holder.value;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_qobject - unknown status
  • ...
&holder.value;
executed 19015 times by 29 tests: return &holder.value;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_qobject - unknown status
  • ...
} } } static QGlobalStatic<QSystemLocaleSingleton, Q_QGS_QSystemLocale_globalSystemLocale::innerFunction, Q_QGS_QSystemLocale_globalSystemLocale::guard> QSystemLocale_globalSystemLocale;
0-19015
19static QLocaleData *system_data = 0;-
20namespace { namespace Q_QGS_globalLocaleData { typedef QLocaleData 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 1244 times by 541 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 1244 times by 541 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
}
executed 1244 times by 541 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 779 times by 11 tests: return &holder.value;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
&holder.value;
executed 779 times by 11 tests: return &holder.value;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
} } } static QGlobalStatic<QLocaleData, Q_QGS_globalLocaleData::innerFunction, Q_QGS_globalLocaleData::guard> globalLocaleData;
0-1244
21-
22-
23-
24-
25-
26-
27-
28-
29-
30QLocale::Language QLocalePrivate::codeToLanguage(const QString &code)-
31{-
32 int len = code.length();-
33 if (len != 2
len != 2Description
TRUEnever evaluated
FALSEevaluated 1291 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& len != 3
len != 3Description
TRUEnever evaluated
FALSEnever evaluated
)
0-1291
34 return
never executed: return QLocale::C;
QLocale::C;
never executed: return QLocale::C;
0
35 ushort uc1 = code[0].toLower().unicode();-
36 ushort uc2 = code[1].toLower().unicode();-
37 ushort uc3 = len > 2
len > 2Description
TRUEnever evaluated
FALSEevaluated 1291 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
? code[2].toLower().unicode() : 0;
0-1291
38-
39 const unsigned char *c = language_code_list;-
40 for (; *
*c != 0Description
TRUEevaluated 46203 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
c != 0
*c != 0Description
TRUEevaluated 46203 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
; c += 3) {
7-46203
41 if (uc1 == c[0]
uc1 == c[0]Description
TRUEevaluated 3033 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 43170 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& uc2 == c[1]
uc2 == c[1]Description
TRUEevaluated 1298 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 1735 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& uc3 == c[2]
uc3 == c[2]Description
TRUEevaluated 1284 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 14 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
)
14-43170
42 return
executed 1284 times by 24 tests: return QLocale::Language((c - language_code_list)/3);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
QLocale::Language((c - language_code_list)/3);
executed 1284 times by 24 tests: return QLocale::Language((c - language_code_list)/3);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1284
43 }
executed 44919 times by 24 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
44919
44-
45-
46 if (uc1 == 'n'
uc1 == 'n'Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
FALSEnever evaluated
&& uc2 == 'o'
uc2 == 'o'Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
FALSEnever evaluated
&& uc3 == 0
uc3 == 0Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
FALSEnever evaluated
) {
0-7
47 static_assert(bool(QLocale::Norwegian == QLocale::NorwegianBokmal), "QLocale::Norwegian == QLocale::NorwegianBokmal");-
48 return
executed 7 times by 2 tests: return QLocale::Norwegian;
Executed by:
  • tst_QCollator
  • tst_QDateTimeEdit
QLocale::Norwegian;
executed 7 times by 2 tests: return QLocale::Norwegian;
Executed by:
  • tst_QCollator
  • tst_QDateTimeEdit
7
49 }-
50 if (uc1 == 't'
uc1 == 't'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc2 == 'l'
uc2 == 'l'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc3 == 0
uc3 == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
51 static_assert(bool(QLocale::Tagalog == QLocale::Filipino), "QLocale::Tagalog == QLocale::Filipino");-
52 return
never executed: return QLocale::Tagalog;
QLocale::Tagalog;
never executed: return QLocale::Tagalog;
0
53 }-
54 if (uc1 == 's'
uc1 == 's'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc2 == 'h'
uc2 == 'h'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc3 == 0
uc3 == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
55 static_assert(bool(QLocale::SerboCroatian == QLocale::Serbian), "QLocale::SerboCroatian == QLocale::Serbian");-
56 return
never executed: return QLocale::SerboCroatian;
QLocale::SerboCroatian;
never executed: return QLocale::SerboCroatian;
0
57 }-
58 if (uc1 == 'm'
uc1 == 'm'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc2 == 'o'
uc2 == 'o'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc3 == 0
uc3 == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
59 static_assert(bool(QLocale::Moldavian == QLocale::Romanian), "QLocale::Moldavian == QLocale::Romanian");-
60 return
never executed: return QLocale::Moldavian;
QLocale::Moldavian;
never executed: return QLocale::Moldavian;
0
61 }-
62-
63 if (uc1 == 'i'
uc1 == 'i'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc2 == 'w'
uc2 == 'w'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc3 == 0
uc3 == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
64 return
never executed: return QLocale::Hebrew;
QLocale::Hebrew;
never executed: return QLocale::Hebrew;
0
65 if (uc1 == 'i'
uc1 == 'i'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc2 == 'n'
uc2 == 'n'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc3 == 0
uc3 == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
66 return
never executed: return QLocale::Indonesian;
QLocale::Indonesian;
never executed: return QLocale::Indonesian;
0
67 if (uc1 == 'j'
uc1 == 'j'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc2 == 'i'
uc2 == 'i'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc3 == 0
uc3 == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
68 return
never executed: return QLocale::Yiddish;
QLocale::Yiddish;
never executed: return QLocale::Yiddish;
0
69-
70 return
never executed: return QLocale::C;
QLocale::C;
never executed: return QLocale::C;
0
71}-
72-
73QLocale::Script QLocalePrivate::codeToScript(const QString &code)-
74{-
75 int len = code.length();-
76 if (len != 4
len != 4Description
TRUEevaluated 1291 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
)
0-1291
77 return
executed 1291 times by 24 tests: return QLocale::AnyScript;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
QLocale::AnyScript;
executed 1291 times by 24 tests: return QLocale::AnyScript;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1291
78-
79-
80 unsigned char c0 = code.at(0).toUpper().toLatin1();-
81 unsigned char c1 = code.at(1).toLower().toLatin1();-
82 unsigned char c2 = code.at(2).toLower().toLatin1();-
83 unsigned char c3 = code.at(3).toLower().toLatin1();-
84-
85 const unsigned char *c = script_code_list;-
86 for (int i = 0; i < QLocale::LastScript
i < QLocale::LastScriptDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i, c += 4) {
0
87 if (c0 == c[0]
c0 == c[0]Description
TRUEnever evaluated
FALSEnever evaluated
&& c1 == c[1]
c1 == c[1]Description
TRUEnever evaluated
FALSEnever evaluated
&& c2 == c[2]
c2 == c[2]Description
TRUEnever evaluated
FALSEnever evaluated
&& c3 == c[3]
c3 == c[3]Description
TRUEnever evaluated
FALSEnever evaluated
)
0
88 return
never executed: return QLocale::Script(i);
QLocale::Script(i);
never executed: return QLocale::Script(i);
0
89 }
never executed: end of block
0
90 return
never executed: return QLocale::AnyScript;
QLocale::AnyScript;
never executed: return QLocale::AnyScript;
0
91}-
92-
93QLocale::Country QLocalePrivate::codeToCountry(const QString &code)-
94{-
95 int len = code.length();-
96 if (len != 2
len != 2Description
TRUEevaluated 76 times by 6 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
FALSEevaluated 1636 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& len != 3
len != 3Description
TRUEevaluated 76 times by 6 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
FALSEnever evaluated
)
0-1636
97 return
executed 76 times by 6 tests: return QLocale::AnyCountry;
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
QLocale::AnyCountry;
executed 76 times by 6 tests: return QLocale::AnyCountry;
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
76
98 ushort uc1 = code[0].toUpper().unicode();-
99 ushort uc2 = code[1].toUpper().unicode();-
100 ushort uc3 = len > 2
len > 2Description
TRUEnever evaluated
FALSEevaluated 1636 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
? code[2].toUpper().unicode() : 0;
0-1636
101-
102 const unsigned char *c = country_code_list;-
103 for (; *
*c != 0Description
TRUEevaluated 306631 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
c != 0
*c != 0Description
TRUEevaluated 306631 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
; c += 3) {
0-306631
104 if (uc1 == c[0]
uc1 == c[0]Description
TRUEevaluated 7293 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 299338 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& uc2 == c[1]
uc2 == c[1]Description
TRUEevaluated 1636 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 5657 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& uc3 == c[2]
uc3 == c[2]Description
TRUEevaluated 1636 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
)
0-299338
105 return
executed 1636 times by 21 tests: return QLocale::Country((c - country_code_list)/3);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
QLocale::Country((c - country_code_list)/3);
executed 1636 times by 21 tests: return QLocale::Country((c - country_code_list)/3);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1636
106 }
executed 304995 times by 21 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
304995
107-
108 return
never executed: return QLocale::AnyCountry;
QLocale::AnyCountry;
never executed: return QLocale::AnyCountry;
0
109}-
110-
111QString QLocalePrivate::languageToCode(QLocale::Language language)-
112{-
113 if (language == QLocale::AnyLanguage
language == QL...e::AnyLanguageDescription
TRUEnever evaluated
FALSEevaluated 3328 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
)
0-3328
114 return
never executed: return QString();
QString();
never executed: return QString();
0
115 if (language == QLocale::C
language == QLocale::CDescription
TRUEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QTimeZone
FALSEevaluated 3293 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
)
35-3293
116 return
executed 35 times by 2 tests: return QLatin1String("C");
Executed by:
  • tst_QMimeDatabase
  • tst_QTimeZone
QLatin1String("C");
executed 35 times by 2 tests: return QLatin1String("C");
Executed by:
  • tst_QMimeDatabase
  • tst_QTimeZone
35
117-
118 const unsigned char *c = language_code_list + 3*(uint(language));-
119-
120 QString code(c[2] == 0 ? 2 : 3, Qt::Uninitialized);-
121-
122 code[0] = ushort(c[0]);-
123 code[1] = ushort(c[1]);-
124 if (c[2] != 0
c[2] != 0Description
TRUEnever evaluated
FALSEevaluated 3293 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
)
0-3293
125 code[2] = ushort(c[2]);
never executed: code[2] = ushort(c[2]);
0
126-
127 return
executed 3293 times by 14 tests: return code;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
code;
executed 3293 times by 14 tests: return code;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
3293
128}-
129-
130QString QLocalePrivate::scriptToCode(QLocale::Script script)-
131{-
132 if (script == QLocale::AnyScript
script == QLocale::AnyScriptDescription
TRUEnever evaluated
FALSEnever evaluated
|| script > QLocale::LastScript
script > QLocale::LastScriptDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
133 return
never executed: return QString();
QString();
never executed: return QString();
0
134 const unsigned char *c = script_code_list + 4*(uint(script));-
135 return
never executed: return QString::fromLatin1((const char *)c, 4);
QString::fromLatin1((const char *)c, 4);
never executed: return QString::fromLatin1((const char *)c, 4);
0
136}-
137-
138QString QLocalePrivate::countryToCode(QLocale::Country country)-
139{-
140 if (country == QLocale::AnyCountry
country == QLocale::AnyCountryDescription
TRUEnever evaluated
FALSEevaluated 3293 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
)
0-3293
141 return
never executed: return QString();
QString();
never executed: return QString();
0
142-
143 const unsigned char *c = country_code_list + 3*(uint(country));-
144-
145 QString code(c[2] == 0 ? 2 : 3, Qt::Uninitialized);-
146-
147 code[0] = ushort(c[0]);-
148 code[1] = ushort(c[1]);-
149 if (c[2] != 0
c[2] != 0Description
TRUEnever evaluated
FALSEevaluated 3293 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
)
0-3293
150 code[2] = ushort(c[2]);
never executed: code[2] = ushort(c[2]);
0
151-
152 return
executed 3293 times by 14 tests: return code;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
code;
executed 3293 times by 14 tests: return code;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
3293
153}-
154-
155-
156static bool addLikelySubtags(QLocaleId &localeId)-
157{-
158-
159 const int likely_subtags_count = sizeof(likely_subtags) / sizeof(likely_subtags[0]);-
160 const QLocaleId *p = likely_subtags;-
161 const QLocaleId *const e = p + likely_subtags_count;-
162 for ( ; p < e
p < eDescription
TRUEevaluated 2430029 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTime
  • ...
FALSEevaluated 3009 times by 38 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • ...
; p += 2) {
3009-2430029
163 if (localeId == p[0]
localeId == p[0]Description
TRUEevaluated 2054 times by 42 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTime
  • ...
FALSEevaluated 2427975 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTime
  • ...
) {
2054-2427975
164 localeId = p[1];-
165 return
executed 2054 times by 42 tests: return true;
Executed by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTime
  • ...
true;
executed 2054 times by 42 tests: return true;
Executed by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTime
  • ...
2054
166 }-
167 }
executed 2427975 times by 43 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTime
  • ...
2427975
168 return
executed 3009 times by 38 tests: return false;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • ...
false;
executed 3009 times by 38 tests: return false;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • ...
3009
169}-
170-
171QLocaleId QLocaleId::withLikelySubtagsAdded() const-
172{-
173-
174 if (language_id
language_idDescription
TRUEevaluated 2779 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTime
  • ...
FALSEnever evaluated
|| script_id
script_idDescription
TRUEnever evaluated
FALSEnever evaluated
|| country_id
country_idDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-2779
175 QLocaleId id = QLocaleId::fromIds(language_id, script_id, country_id);-
176 if (addLikelySubtags(id)
addLikelySubtags(id)Description
TRUEevaluated 466 times by 26 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTime
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QWidget
  • tst_languageChange
  • ...
FALSEevaluated 2313 times by 38 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • ...
)
466-2313
177 return
executed 466 times by 26 tests: return id;
Executed by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTime
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QWidget
  • tst_languageChange
  • ...
id;
executed 466 times by 26 tests: return id;
Executed by:
  • tst_ModelTest
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTime
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QWidget
  • tst_languageChange
  • ...
466
178 }
executed 2313 times by 38 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • ...
2313
179-
180 if (country_id
country_idDescription
TRUEevaluated 1588 times by 37 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTableWidget
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QVariant
  • ...
FALSEevaluated 725 times by 4 tests
Evaluated by:
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QTimeZone
  • tst_selftests - unknown status
) {
725-1588
181 QLocaleId id = QLocaleId::fromIds(language_id, script_id, 0);-
182 if (addLikelySubtags(id)
addLikelySubtags(id)Description
TRUEevaluated 1240 times by 26 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
FALSEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
) {
348-1240
183 id.country_id = country_id;-
184 return
executed 1240 times by 26 tests: return id;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
id;
executed 1240 times by 26 tests: return id;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • ...
1240
185 }-
186 }
executed 348 times by 15 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
348
187-
188 if (script_id
script_idDescription
TRUEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEevaluated 725 times by 4 tests
Evaluated by:
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QTimeZone
  • tst_selftests - unknown status
) {
348-725
189 QLocaleId id = QLocaleId::fromIds(language_id, 0, country_id);-
190 if (addLikelySubtags(id)
addLikelySubtags(id)Description
TRUEnever evaluated
FALSEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
) {
0-348
191 id.script_id = script_id;-
192 return
never executed: return id;
id;
never executed: return id;
0
193 }-
194 }
executed 348 times by 15 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
348
195-
196 if (script_id
script_idDescription
TRUEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEevaluated 725 times by 4 tests
Evaluated by:
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QTimeZone
  • tst_selftests - unknown status
&& country_id
country_idDescription
TRUEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEnever evaluated
) {
0-725
197 QLocaleId id = QLocaleId::fromIds(language_id, 0, 0);-
198 if (addLikelySubtags(id)
addLikelySubtags(id)Description
TRUEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEnever evaluated
) {
0-348
199 id.script_id = script_id;-
200 id.country_id = country_id;-
201 return
executed 348 times by 15 tests: return id;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
id;
executed 348 times by 15 tests: return id;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
348
202 }-
203 }
never executed: end of block
0
204 return
executed 725 times by 4 tests: return *this;
Executed by:
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QTimeZone
  • tst_selftests - unknown status
*this;
executed 725 times by 4 tests: return *this;
Executed by:
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QTimeZone
  • tst_selftests - unknown status
725
205}-
206-
207QLocaleId QLocaleId::withLikelySubtagsRemoved() const-
208{-
209 QLocaleId max = withLikelySubtagsAdded();-
210-
211 {-
212 QLocaleId id = QLocaleId::fromIds(language_id, 0, 0);-
213 if (id.withLikelySubtagsAdded() == max
id.withLikelyS...Added() == maxDescription
TRUEevaluated 357 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QCollator
)
1-357
214 return
executed 357 times by 15 tests: return id;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
id;
executed 357 times by 15 tests: return id;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
357
215 }-
216-
217 if (country_id
country_idDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QCollator
FALSEnever evaluated
) {
0-1
218 QLocaleId id = QLocaleId::fromIds(language_id, 0, country_id);-
219 if (id.withLikelySubtagsAdded() == max
id.withLikelyS...Added() == maxDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QCollator
FALSEnever evaluated
)
0-1
220 return
executed 1 time by 1 test: return id;
Executed by:
  • tst_QCollator
id;
executed 1 time by 1 test: return id;
Executed by:
  • tst_QCollator
1
221 }
never executed: end of block
0
222-
223 if (script_id
script_idDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
224 QLocaleId id = QLocaleId::fromIds(language_id, script_id, 0);-
225 if (id.withLikelySubtagsAdded() == max
id.withLikelyS...Added() == maxDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
226 return
never executed: return id;
id;
never executed: return id;
0
227 }
never executed: end of block
0
228 return
never executed: return max;
max;
never executed: return max;
0
229}-
230-
231QByteArray QLocaleId::name(char separator) const-
232{-
233 if (language_id == QLocale::AnyLanguage
language_id ==...e::AnyLanguageDescription
TRUEnever evaluated
FALSEevaluated 366 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
)
0-366
234 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
235 if (language_id == QLocale::C
language_id == QLocale::CDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEevaluated 352 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
)
14-352
236 return
executed 14 times by 1 test: return ([]() -> QByteArray { enum { Size = sizeof("C") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "C" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }());
Executed by:
  • tst_QMimeDatabase
([]() -> QByteArray { enum { Size = sizeof("C") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "C" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
executed 14 times by 1 test: return ba;
Executed by:
  • tst_QMimeDatabase
ba;
executed 14 times by 1 test: return ba;
Executed by:
  • tst_QMimeDatabase
}());
executed 14 times by 1 test: return ([]() -> QByteArray { enum { Size = sizeof("C") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "C" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }());
Executed by:
  • tst_QMimeDatabase
14
237-
238 const unsigned char *lang = language_code_list + 3 * language_id;-
239 const unsigned char *script =-
240 (script_id != QLocale::AnyScript
script_id != Q...ale::AnyScriptDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
? script_code_list + 4 * script_id : 0);
4-348
241 const unsigned char *country =-
242 (country_id != QLocale::AnyCountry
country_id != ...le::AnyCountryDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QMimeDatabase
FALSEevaluated 343 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
? country_code_list + 3 * country_id : 0);
9-343
243 char len = (lang[2] != 0
lang[2] != 0Description
TRUEnever evaluated
FALSEevaluated 352 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
? 3 : 2) + (script
scriptDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
? 4+1 : 0) + (country
countryDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QMimeDatabase
FALSEevaluated 343 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
? (country[2] != 0
country[2] != 0Description
TRUEnever evaluated
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QMimeDatabase
? 3 : 2)+1 : 0);
0-352
244 QByteArray name(len, Qt::Uninitialized);-
245 char *uc = name.data();-
246 *uc++ = lang[0];-
247 *uc++ = lang[1];-
248 if (lang[2] != 0
lang[2] != 0Description
TRUEnever evaluated
FALSEevaluated 352 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
)
0-352
249 *
never executed: *uc++ = lang[2];
uc++ = lang[2];
never executed: *uc++ = lang[2];
0
250 if (script
scriptDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEevaluated 348 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
) {
4-348
251 *uc++ = separator;-
252 *uc++ = script[0];-
253 *uc++ = script[1];-
254 *uc++ = script[2];-
255 *uc++ = script[3];-
256 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QMimeDatabase
4
257 if (country
countryDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QMimeDatabase
FALSEevaluated 343 times by 15 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
) {
9-343
258 *uc++ = separator;-
259 *uc++ = country[0];-
260 *uc++ = country[1];-
261 if (country[2] != 0
country[2] != 0Description
TRUEnever evaluated
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QCollator
  • tst_QMimeDatabase
)
0-9
262 *
never executed: *uc++ = country[2];
uc++ = country[2];
never executed: *uc++ = country[2];
0
263 }
executed 9 times by 2 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QMimeDatabase
9
264 return
executed 352 times by 15 tests: return name;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
name;
executed 352 times by 15 tests: return name;
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
352
265}-
266-
267QByteArray QLocalePrivate::bcp47Name(char separator) const-
268{-
269 if (m_data->m_language_id == QLocale::AnyLanguage
m_data->m_lang...e::AnyLanguageDescription
TRUEnever evaluated
FALSEevaluated 340 times by 14 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
)
0-340
270 return
never executed: return QByteArray();
QByteArray();
never executed: return QByteArray();
0
271 if (m_data->m_language_id == QLocale::C
m_data->m_lang... == QLocale::CDescription
TRUEnever evaluated
FALSEevaluated 340 times by 14 tests
Evaluated by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
)
0-340
272 return
never executed: return ([]() -> QByteArray { enum { Size = sizeof("C") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "C" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }());
([]() -> QByteArray { enum { Size = sizeof("C") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "C" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
never executed: return ba;
ba;
never executed: return ba;
}());
never executed: return ([]() -> QByteArray { enum { Size = sizeof("C") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "C" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return ba; }());
0
273-
274 QLocaleId localeId = QLocaleId::fromIds(m_data->m_language_id, m_data->m_script_id, m_data->m_country_id);-
275 return
executed 340 times by 14 tests: return localeId.withLikelySubtagsRemoved().name(separator);
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
localeId.withLikelySubtagsRemoved().name(separator);
executed 340 times by 14 tests: return localeId.withLikelySubtagsRemoved().name(separator);
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QPrinter
  • tst_QString
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
340
276}-
277-
278const QLocaleData *QLocaleData::findLocaleData(QLocale::Language language, QLocale::Script script, QLocale::Country country)-
279{-
280 QLocaleId localeId = QLocaleId::fromIds(language, script, country);-
281 localeId = localeId.withLikelySubtagsAdded();-
282-
283 uint idx = locale_index[localeId.language_id];-
284-
285 const QLocaleData *data = locale_data + idx;-
286-
287 if (idx == 0
idx == 0Description
TRUEevaluated 683 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QTimeZone
  • tst_selftests - unknown status
FALSEevaluated 1357 times by 31 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QTimeZone
  • tst_QVariant
  • tst_QWidget
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
)
683-1357
288 return
executed 683 times by 3 tests: return data;
Executed by:
  • tst_QMetaType
  • tst_QTimeZone
  • tst_selftests - unknown status
data;
executed 683 times by 3 tests: return data;
Executed by:
  • tst_QMetaType
  • tst_QTimeZone
  • tst_selftests - unknown status
683
289-
290 ((!(data->m_language_id == localeId.language_id)) ? qt_assert("data->m_language_id == localeId.language_id",__FILE__,347) : qt_noop());-
291-
292 if (localeId.script_id != QLocale::AnyScript
localeId.scrip...ale::AnyScriptDescription
TRUEevaluated 1357 times by 31 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QTimeZone
  • tst_QVariant
  • tst_QWidget
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
FALSEnever evaluated
&& localeId.country_id != QLocale::AnyCountry
localeId.count...le::AnyCountryDescription
TRUEevaluated 1357 times by 31 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QTimeZone
  • tst_QVariant
  • tst_QWidget
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
FALSEnever evaluated
) {
0-1357
293-
294 do {-
295 if (data->m_script_id == localeId.script_id
data->m_script...leId.script_idDescription
TRUEevaluated 1494 times by 31 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QTimeZone
  • tst_QVariant
  • tst_QWidget
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QString
&& data->m_country_id == localeId.country_id
data->m_countr...eId.country_idDescription
TRUEevaluated 1357 times by 31 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QTimeZone
  • tst_QVariant
  • tst_QWidget
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
FALSEevaluated 137 times by 6 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
  • tst_QIntValidator
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
)
2-1494
296 return
executed 1357 times by 31 tests: return data;
Executed by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QTimeZone
  • tst_QVariant
  • tst_QWidget
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
data;
executed 1357 times by 31 tests: return data;
Executed by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QTextStream
  • tst_QTime
  • tst_QTimeZone
  • tst_QVariant
  • tst_QWidget
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • ...
1357
297 ++data;-
298 }
executed 139 times by 6 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTimeEdit
  • tst_QIntValidator
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
while (data->m_language_id == localeId.language_id
data->m_langua...Id.language_idDescription
TRUEevaluated 139 times by 6 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTimeEdit
  • tst_QIntValidator
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
FALSEnever evaluated
);
0-139
299-
300-
301 localeId.script_id = QLocale::AnyScript;-
302 data = locale_data + idx;-
303 }
never executed: end of block
0
304-
305 if (localeId.script_id == QLocale::AnyScript
localeId.scrip...ale::AnyScriptDescription
TRUEnever evaluated
FALSEnever evaluated
&& localeId.country_id == QLocale::AnyCountry
localeId.count...le::AnyCountryDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
306 return
never executed: return data;
data;
never executed: return data;
0
307-
308 if (localeId.script_id == QLocale::AnyScript
localeId.scrip...ale::AnyScriptDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
309 do {-
310 if (data->m_country_id == localeId.country_id
data->m_countr...eId.country_idDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
311 return
never executed: return data;
data;
never executed: return data;
0
312 ++data;-
313 }
never executed: end of block
while (data->m_language_id == localeId.language_id
data->m_langua...Id.language_idDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
314 }
never executed: end of block
else if (localeId.country_id == QLocale::AnyCountry
localeId.count...le::AnyCountryDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
315 do {-
316 if (data->m_script_id == localeId.script_id
data->m_script...leId.script_idDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
317 return
never executed: return data;
data;
never executed: return data;
0
318 ++data;-
319 }
never executed: end of block
while (data->m_language_id == localeId.language_id
data->m_langua...Id.language_idDescription
TRUEnever evaluated
FALSEnever evaluated
);
0
320 }
never executed: end of block
0
321-
322 return
never executed: return locale_data + idx;
locale_data + idx;
never executed: return locale_data + idx;
0
323}-
324-
325static bool parse_locale_tag(const QString &input, int &i, QString *result, const QString &separators)-
326{-
327 *result = QString(8, Qt::Uninitialized);-
328 QChar *pch = result->data();-
329 const QChar *uc = input.data() + i;-
330 const int l = input.length();-
331 int size = 0;-
332 for (; i < l
i < lDescription
TRUEevaluated 7077 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 441 times by 23 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& size < 8
size < 8Description
TRUEevaluated 7077 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
; ++i, ++size) {
0-7077
333 if (separators.contains(*uc)
separators.contains(*uc)Description
TRUEevaluated 2065 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 5012 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
)
2065-5012
334 break;
executed 2065 times by 21 tests: break;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
2065
335 if (! ((uc->unicode() >= 'a'
uc->unicode() >= 'a'Description
TRUEevaluated 2582 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 2430 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& uc->unicode() <= 'z'
uc->unicode() <= 'z'Description
TRUEevaluated 2582 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
) ||
0-2582
336 (uc->unicode() >= 'A'
uc->unicode() >= 'A'Description
TRUEevaluated 2430 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
&& uc->unicode() <= 'Z'
uc->unicode() <= 'Z'Description
TRUEevaluated 2430 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEnever evaluated
) ||
0-2430
337 (uc->unicode() >= '0'
uc->unicode() >= '0'Description
TRUEnever evaluated
FALSEnever evaluated
&& uc->unicode() <= '9'
uc->unicode() <= '9'Description
TRUEnever evaluated
FALSEnever evaluated
)) )
0
338 return
never executed: return false;
false;
never executed: return false;
0
339 *pch++ = *uc++;-
340 }
executed 5012 times by 24 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
5012
341 result->truncate(size);-
342 return
executed 2506 times by 24 tests: return true;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
true;
executed 2506 times by 24 tests: return true;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
2506
343}-
344-
345bool qt_splitLocaleName(const QString &name, QString &lang, QString &script, QString &cntry)-
346{-
347 const int length = name.length();-
348-
349 lang = script = cntry = QString();-
350-
351 const QString separators = ([]() -> QString { enum { Size = sizeof(u"" "_-.@")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "_-.@" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 1974 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
qstring_literal_temp;
executed 1974 times by 25 tests: return qstring_literal_temp;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
}());
1974
352 enum ParserState { NoState, LangState, ScriptState, CountryState };-
353 ParserState state = LangState;-
354 for (int i = 0; i < length
i < lengthDescription
TRUEevaluated 3356 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 1124 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
&& state != NoState
state != NoStateDescription
TRUEevaluated 2506 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 850 times by 11 tests
Evaluated by:
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
; ) {
850-3356
355 QString value;-
356 if (!parse_locale_tag(name, i, &value, separators)
!parse_locale_...e, separators)Description
TRUEnever evaluated
FALSEevaluated 2506 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
||value.isEmpty()
value.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2506 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
)
0-2506
357 break;
never executed: break;
0
358 QChar sep = i < length
i < lengthDescription
TRUEevaluated 2065 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 441 times by 23 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
? name.at(i) : QChar();
441-2065
359 switch (state) {-
360 case
executed 1291 times by 24 tests: case LangState:
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
LangState:
executed 1291 times by 24 tests: case LangState:
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1291
361 if (!sep.isNull()
!sep.isNull()Description
TRUEevaluated 1215 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 76 times by 6 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
&& !separators.contains(sep)
!separators.contains(sep)Description
TRUEnever evaluated
FALSEevaluated 1215 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
) {
0-1215
362 state = NoState;-
363 break;
never executed: break;
0
364 }-
365 lang = value;-
366 if (i == length
i == lengthDescription
TRUEevaluated 76 times by 6 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
FALSEevaluated 1215 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
) {
76-1215
367-
368 state = NoState;-
369 break;
executed 76 times by 6 tests: break;
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QString
  • tst_rcc
76
370 }-
371 state = ScriptState;-
372 break;
executed 1215 times by 21 tests: break;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1215
373 case
executed 1215 times by 21 tests: case ScriptState:
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
ScriptState:
executed 1215 times by 21 tests: case ScriptState:
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
{
1215
374 QString scripts = QString::fromLatin1((const char *)script_code_list, sizeof(script_code_list) - 1);-
375 if (value.length() == 4
value.length() == 4Description
TRUEnever evaluated
FALSEevaluated 1215 times by 21 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
&& scripts.indexOf(value) % 4 == 0
scripts.indexO...alue) % 4 == 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0-1215
376-
377 script = value;-
378 state = CountryState;-
379 }
never executed: end of block
else {
0
380-
381 cntry = value;-
382 state = NoState;-
383 }
executed 1215 times by 21 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1215
384 break;
executed 1215 times by 21 tests: break;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1215
385 }-
386 case
never executed: case CountryState:
CountryState:
never executed: case CountryState:
0
387 cntry = value;-
388 state = NoState;-
389 break;
never executed: break;
0
390 case
never executed: case NoState:
NoState:
never executed: case NoState:
0
391-
392 QMessageLogger(__FILE__, 449, __PRETTY_FUNCTION__).warning("QLocale: This should never happen");-
393 break;
never executed: break;
0
394 }-
395 ++i;-
396 }
executed 2506 times by 24 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
2506
397 return
executed 1974 times by 25 tests: return lang.length() == 2 || lang.length() == 3;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
lang.length() == 2
lang.length() == 2Description
TRUEevaluated 1291 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
FALSEevaluated 683 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QTimeZone
  • tst_selftests - unknown status
|| lang.length() == 3
lang.length() == 3Description
TRUEnever evaluated
FALSEevaluated 683 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QTimeZone
  • tst_selftests - unknown status
;
executed 1974 times by 25 tests: return lang.length() == 2 || lang.length() == 3;
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
0-1974
398}-
399-
400void QLocalePrivate::getLangAndCountry(const QString &name, QLocale::Language &lang,-
401 QLocale::Script &script, QLocale::Country &cntry)-
402{-
403 lang = QLocale::C;-
404 script = QLocale::AnyScript;-
405 cntry = QLocale::AnyCountry;-
406-
407 QString lang_code;-
408 QString script_code;-
409 QString cntry_code;-
410 if (!qt_splitLocaleName(name, lang_code, script_code, cntry_code)
!qt_splitLocal...e, cntry_code)Description
TRUEevaluated 683 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QTimeZone
  • tst_selftests - unknown status
FALSEevaluated 1291 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
)
683-1291
411 return;
executed 683 times by 3 tests: return;
Executed by:
  • tst_QMetaType
  • tst_QTimeZone
  • tst_selftests - unknown status
683
412-
413 lang = QLocalePrivate::codeToLanguage(lang_code);-
414 if (lang == QLocale::C
lang == QLocale::CDescription
TRUEnever evaluated
FALSEevaluated 1291 times by 24 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
)
0-1291
415 return;
never executed: return;
0
416 script = QLocalePrivate::codeToScript(script_code);-
417 cntry = QLocalePrivate::codeToCountry(cntry_code);-
418}
executed 1291 times by 24 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
1291
419-
420static const QLocaleData *findLocaleData(const QString &name)-
421{-
422 QLocale::Language lang;-
423 QLocale::Script script;-
424 QLocale::Country cntry;-
425 QLocalePrivate::getLangAndCountry(name, lang, script, cntry);-
426-
427 return
executed 1974 times by 25 tests: return QLocaleData::findLocaleData(lang, script, cntry);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
QLocaleData::findLocaleData(lang, script, cntry);
executed 1974 times by 25 tests: return QLocaleData::findLocaleData(lang, script, cntry);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
1974
428}-
429-
430QString qt_readEscapedFormatString(const QString &format, int *idx)-
431{-
432 int &i = *idx;-
433-
434 ((!(format.at(i) == QLatin1Char('\''))) ? qt_assert("format.at(i) == QLatin1Char('\\'')",__FILE__,491) : qt_noop());-
435 ++i;-
436 if (i == format.size()
i == format.size()Description
TRUEnever evaluated
FALSEevaluated 1421 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
)
0-1421
437 return
never executed: return QString();
QString();
never executed: return QString();
0
438 if (format.at(i).unicode() == '\''
format.at(i).unicode() == '\''Description
TRUEnever evaluated
FALSEevaluated 1421 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
) {
0-1421
439 ++i;-
440 return
never executed: return QLatin1String("'");
QLatin1String("'");
never executed: return QLatin1String("'");
0
441 }-
442-
443 QString result;-
444-
445 while (i < format.size()
i < format.size()Description
TRUEevaluated 4537 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
FALSEevaluated 1210 times by 1 test
Evaluated by:
  • tst_QNetworkCookie
) {
1210-4537
446 if (format.at(i).unicode() == '\''
format.at(i).unicode() == '\''Description
TRUEevaluated 211 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
FALSEevaluated 4326 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
) {
211-4326
447 if (i + 1 < format.size()
i + 1 < format.size()Description
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDateTimeEdit
FALSEevaluated 198 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
&& format.at(i + 1).unicode() == '\''
format.at(i + ...code() == '\''Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QDateTimeEdit
) {
0-198
448-
449 result.append(QLatin1Char('\''));-
450 i += 2;-
451 }
never executed: end of block
else {
0
452 break;
executed 211 times by 5 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
211
453 }-
454 } else {-
455 result.append(format.at(i++));-
456 }
executed 4326 times by 6 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
4326
457 }-
458 if (i < format.size()
i < format.size()Description
TRUEevaluated 211 times by 5 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
FALSEevaluated 1210 times by 1 test
Evaluated by:
  • tst_QNetworkCookie
)
211-1210
459 ++
executed 211 times by 5 tests: ++i;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
i;
executed 211 times by 5 tests: ++i;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
211
460-
461 return
executed 1421 times by 6 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
result;
executed 1421 times by 6 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
1421
462}-
463-
464int qt_repeatCount(const QString &s, int i)-
465{-
466 QChar c = s.at(i);-
467 int j = i + 1;-
468 while (j < s.size()
j < s.size()Description
TRUEevaluated 431373 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 33876 times by 21 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
&& s.at(j) == c
s.at(j) == cDescription
TRUEevaluated 194265 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 237108 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
)
33876-431373
469 ++
executed 194265 times by 32 tests: ++j;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
j;
executed 194265 times by 32 tests: ++j;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
194265
470 return
executed 270984 times by 32 tests: return j - i;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
j - i;
executed 270984 times by 32 tests: return j - i;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
270984
471}-
472-
473static const QLocaleData *default_data = 0;-
474static uint default_number_options = 0;-
475-
476static const QLocaleData *const c_data = locale_data;-
477static QLocalePrivate *c_private()-
478{-
479 static QLocalePrivate c_locale = { c_data, { 1 }, QLocale::OmitGroupSeparator };-
480 return
executed 137262 times by 120 tests: return &c_locale;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
&c_locale;
executed 137262 times by 120 tests: return &c_locale;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • ...
137262
481}-
482QSystemLocale::QSystemLocale()-
483{-
484 delete _systemLocale;-
485 _systemLocale = this;-
486-
487 if (system_data
system_dataDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
488 system_data->m_language_id = 0;
never executed: system_data->m_language_id = 0;
0
489}
never executed: end of block
0
490-
491-
492-
493-
494QSystemLocale::QSystemLocale(bool)-
495{ }-
496-
497-
498-
499-
500QSystemLocale::~QSystemLocale()-
501{-
502 if (_systemLocale == this
_systemLocale == thisDescription
TRUEnever evaluated
FALSEevaluated 1244 times by 541 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
) {
0-1244
503 _systemLocale = 0;-
504-
505 if (system_data
system_dataDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
506 system_data->m_language_id = 0;
never executed: system_data->m_language_id = 0;
0
507 }
never executed: end of block
0
508}
executed 1244 times by 541 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
1244
509-
510static const QSystemLocale *systemLocale()-
511{-
512 if (_systemLocale
_systemLocaleDescription
TRUEnever evaluated
FALSEevaluated 19015 times by 29 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_qobject - unknown status
  • ...
)
0-19015
513 return
never executed: return _systemLocale;
_systemLocale;
never executed: return _systemLocale;
0
514 return
executed 19015 times by 29 tests: return QSystemLocale_globalSystemLocale();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_qobject - unknown status
  • ...
QSystemLocale_globalSystemLocale();
executed 19015 times by 29 tests: return QSystemLocale_globalSystemLocale();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookieJar
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • tst_qobject - unknown status
  • ...
19015
515}-
516-
517void QLocalePrivate::updateSystemPrivate()-
518{-
519 const QSystemLocale *sys_locale = systemLocale();-
520 if (!system_data
!system_dataDescription
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-779
521 system_data = globalLocaleData();
executed 779 times by 11 tests: system_data = globalLocaleData();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
522-
523-
524 sys_locale->query(QSystemLocale::LocaleChanged, QVariant());-
525-
526 *system_data = *sys_locale->fallbackUiLocale().d->m_data;-
527-
528 QVariant res = sys_locale->query(QSystemLocale::LanguageId, QVariant());-
529 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
) {
0-779
530 system_data->m_language_id = res.toInt();-
531 system_data->m_script_id = QLocale::AnyScript;-
532 }
never executed: end of block
0
533 res = sys_locale->query(QSystemLocale::CountryId, QVariant());-
534 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
) {
0-779
535 system_data->m_country_id = res.toInt();-
536 system_data->m_script_id = QLocale::AnyScript;-
537 }
never executed: end of block
0
538 res = sys_locale->query(QSystemLocale::ScriptId, QVariant());-
539 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
)
0-779
540 system_data->m_script_id = res.toInt();
never executed: system_data->m_script_id = res.toInt();
0
541-
542 res = sys_locale->query(QSystemLocale::DecimalPoint, QVariant());-
543 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-779
544 system_data->m_decimal = res.toString().at(0).unicode();
executed 779 times by 11 tests: system_data->m_decimal = res.toString().at(0).unicode();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
545-
546 res = sys_locale->query(QSystemLocale::GroupSeparator, QVariant());-
547 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-779
548 system_data->m_group = res.toString().at(0).unicode();
executed 779 times by 11 tests: system_data->m_group = res.toString().at(0).unicode();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
549-
550 res = sys_locale->query(QSystemLocale::ZeroDigit, QVariant());-
551 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-779
552 system_data->m_zero = res.toString().at(0).unicode();
executed 779 times by 11 tests: system_data->m_zero = res.toString().at(0).unicode();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
553-
554 res = sys_locale->query(QSystemLocale::NegativeSign, QVariant());-
555 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-779
556 system_data->m_minus = res.toString().at(0).unicode();
executed 779 times by 11 tests: system_data->m_minus = res.toString().at(0).unicode();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
557-
558 res = sys_locale->query(QSystemLocale::PositiveSign, QVariant());-
559 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-779
560 system_data->m_plus = res.toString().at(0).unicode();
executed 779 times by 11 tests: system_data->m_plus = res.toString().at(0).unicode();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
561}
executed 779 times by 11 tests: end of block
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
562-
563-
564static const QLocaleData *systemData()-
565{-
566-
567-
568 if (!system_data
!system_dataDescription
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEevaluated 109287 times by 71 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
|| system_data->m_language_id == 0
system_data->m...nguage_id == 0Description
TRUEnever evaluated
FALSEevaluated 109287 times by 71 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
)
0-109287
569 QLocalePrivate::updateSystemPrivate();
executed 779 times by 11 tests: QLocalePrivate::updateSystemPrivate();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
570-
571 return
executed 110066 times by 80 tests: return system_data;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
system_data;
executed 110066 times by 80 tests: return system_data;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
110066
572-
573-
574-
575}-
576-
577static const QLocaleData *defaultData()-
578{-
579 if (!default_data
!default_dataDescription
TRUEevaluated 779 times by 11 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-779
580 default_data = systemData();
executed 779 times by 11 tests: default_data = systemData();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
581 return
executed 779 times by 11 tests: return default_data;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
default_data;
executed 779 times by 11 tests: return default_data;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
582}-
583-
584const QLocaleData *QLocaleData::c()-
585{-
586 ((!(locale_index[QLocale::C] == 0)) ? qt_assert("locale_index[QLocale::C] == 0",__FILE__,656) : qt_noop());-
587 return
executed 11892277 times by 462 tests: return c_data;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
c_data;
executed 11892277 times by 462 tests: return c_data;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • ...
11892277
588}-
589-
590static inline QString getLocaleData(const ushort *data, int size)-
591{-
592 return
executed 48495 times by 23 tests: return size > 0 ? QString::fromRawData(reinterpret_cast<const QChar *>(data), size) : QString();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
size > 0
size > 0Description
TRUEevaluated 48495 times by 23 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
FALSEnever evaluated
? QString::fromRawData(reinterpret_cast<const QChar *>(data), size) : QString();
executed 48495 times by 23 tests: return size > 0 ? QString::fromRawData(reinterpret_cast<const QChar *>(data), size) : QString();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QXmlStream
  • tst_languageChange
  • tst_qmakelib
0-48495
593}-
594-
595static QString getLocaleListData(const ushort *data, int size, int index)-
596{-
597 static const ushort separator = ';';-
598 while (index
indexDescription
TRUEevaluated 165304 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 38522 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
&& size > 0
size > 0Description
TRUEevaluated 165304 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
FALSEnever evaluated
) {
0-165304
599 while (*
*data != separatorDescription
TRUEevaluated 650549 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 165304 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
data != separator
*data != separatorDescription
TRUEevaluated 650549 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 165304 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
)
165304-650549
600 ++
executed 650549 times by 14 tests: ++data, --size;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
data, --size;
executed 650549 times by 14 tests: ++data, --size;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
650549
601 --index;-
602 ++data;-
603 --size;-
604 }
executed 165304 times by 14 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
165304
605 const ushort *end = data;-
606 while (size > 0
size > 0Description
TRUEevaluated 202212 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
FALSEnever evaluated
&& *
*end != separatorDescription
TRUEevaluated 163690 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 38522 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
end != separator
*end != separatorDescription
TRUEevaluated 163690 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
FALSEevaluated 38522 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
)
0-202212
607 ++
executed 163690 times by 14 tests: ++end, --size;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
end, --size;
executed 163690 times by 14 tests: ++end, --size;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
163690
608 return
executed 38522 times by 14 tests: return getLocaleData(data, end - data);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
getLocaleData(data, end - data);
executed 38522 times by 14 tests: return getLocaleData(data, end - data);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
38522
609}-
610-
611-
612-
613QDataStream &operator<<(QDataStream &ds, const QLocale &l)-
614{-
615 ds << l.name();-
616 return
executed 3 times by 2 tests: return ds;
Executed by:
  • tst_QMetaType
  • tst_QVariant
ds;
executed 3 times by 2 tests: return ds;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
617}-
618-
619QDataStream &operator>>(QDataStream &ds, QLocale &l)-
620{-
621 QString s;-
622 ds >> s;-
623 l = QLocale(s);-
624 return
executed 7 times by 2 tests: return ds;
Executed by:
  • tst_QMetaType
  • tst_QVariant
ds;
executed 7 times by 2 tests: return ds;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
625}-
626-
627-
628-
629static const int locale_data_size = sizeof(locale_data)/sizeof(QLocaleData) - 1;-
630-
631namespace { namespace Q_QGS_defaultLocalePrivate { typedef QSharedDataPointer<QLocalePrivate> 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 1247 times by 541 tests
Evaluated by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 1247 times by 541 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
}
executed 1247 times by 541 tests: end of block
Executed by:
  • tst_collections - unknown status
  • tst_compiler - unknown status
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - 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_qabstractfileengine - 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
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type (QLocalePrivate::create(defaultData(), default_number_options)))) : value (QLocalePrivate::create(defaultData(), default_number_options)) { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 447077 times by 200 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
&holder.value;
executed 447077 times by 200 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
} } } static QGlobalStatic<QSharedDataPointer<QLocalePrivate>, Q_QGS_defaultLocalePrivate::innerFunction, Q_QGS_defaultLocalePrivate::guard> defaultLocalePrivate;
0-447077
632-
633-
634static QLocalePrivate *localePrivateByName(const QString &name)-
635{-
636 if (name == QLatin1String("C")
name == QLatin1String("C")Description
TRUEevaluated 6951 times by 6 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_selftests - unknown status
FALSEevaluated 1974 times by 25 tests
Evaluated by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
)
1974-6951
637 return
executed 6951 times by 6 tests: return c_private();
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_selftests - unknown status
c_private();
executed 6951 times by 6 tests: return c_private();
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_selftests - unknown status
6951
638 const QLocaleData *data = findLocaleData(name);-
639 return
executed 1974 times by 25 tests: return QLocalePrivate::create(data, data->m_language_id == QLocale::C ? QLocale::OmitGroupSeparator : 0);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
QLocalePrivate::create(data, data->m_language_id == QLocale::C ? QLocale::OmitGroupSeparator : 0);
executed 1974 times by 25 tests: return QLocalePrivate::create(data, data->m_language_id == QLocale::C ? QLocale::OmitGroupSeparator : 0);
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • tst_selftests - unknown status
1974
640}-
641-
642static QLocalePrivate *findLocalePrivate(QLocale::Language language, QLocale::Script script,-
643 QLocale::Country country)-
644{-
645 if (language == QLocale::C
language == QLocale::CDescription
TRUEevaluated 130311 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 66 times by 12 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QTime
  • tst_QWidget
)
66-130311
646 return
executed 130311 times by 118 tests: return c_private();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
c_private();
executed 130311 times by 118 tests: return c_private();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
130311
647-
648 const QLocaleData *data = QLocaleData::findLocaleData(language, script, country);-
649-
650 int numberOptions = 0;-
651-
652-
653 if (data->m_language_id == QLocale::C
data->m_langua... == QLocale::CDescription
TRUEnever evaluated
FALSEevaluated 66 times by 12 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QTime
  • tst_QWidget
&& language != QLocale::C
language != QLocale::CDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-66
654 numberOptions = default_number_options;-
655 data = defaultData();-
656 }
never executed: end of block
0
657 return
executed 66 times by 12 tests: return QLocalePrivate::create(data, numberOptions);
Executed by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QTime
  • tst_QWidget
QLocalePrivate::create(data, numberOptions);
executed 66 times by 12 tests: return QLocalePrivate::create(data, numberOptions);
Executed by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QTime
  • tst_QWidget
66
658}-
659-
660-
661-
662-
663-
664QLocale::QLocale(QLocalePrivate &dd)-
665 : d(&dd)-
666{}
executed 36633 times by 68 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
36633
667QLocale::QLocale(const QString &name)-
668 : d(localePrivateByName(name))-
669{-
670}
executed 8925 times by 26 tests: end of block
Executed by:
  • tst_QCollator
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QTimeZone
  • tst_QVariant
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_rcc
  • ...
8925
671QLocale::QLocale()-
672 : d(*defaultLocalePrivate)-
673{-
674}
executed 444620 times by 199 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
444620
675QLocale::QLocale(Language language, Country country)-
676 : d(findLocalePrivate(language, QLocale::AnyScript, country))-
677{-
678}
executed 130183 times by 122 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBrush
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColumnView
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusXmlParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
130183
679QLocale::QLocale(Language language, Script script, Country country)-
680 : d(findLocalePrivate(language, script, country))-
681{-
682}
never executed: end of block
0
683-
684-
685-
686-
687-
688QLocale::QLocale(const QLocale &other)-
689{-
690 d = other.d;-
691}
executed 118849 times by 138 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDebug
  • tst_QDialog
  • ...
118849
692-
693-
694-
695-
696-
697QLocale::~QLocale()-
698{-
699}-
700-
701-
702-
703-
704-
705-
706QLocale &QLocale::operator=(const QLocale &other)-
707{-
708 d = other.d;-
709 return
executed 324167 times by 136 tests: return *this;
Executed by:
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • ...
*this;
executed 324167 times by 136 tests: return *this;
Executed by:
  • tst_ModelTest
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • ...
324167
710}-
711-
712bool QLocale::operator==(const QLocale &other) const-
713{-
714 return
executed 57535 times by 121 tests: return d->m_data == other.d->m_data && d->m_numberOptions == other.d->m_numberOptions;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
d->m_data == other.d->m_data
d->m_data == other.d->m_dataDescription
TRUEevaluated 57352 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 183 times by 7 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QWidget
&& d->m_numberOptions == other.d->m_numberOptions
d->m_numberOpt..._numberOptionsDescription
TRUEevaluated 57352 times by 120 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEnever evaluated
;
executed 57535 times by 121 tests: return d->m_data == other.d->m_data && d->m_numberOptions == other.d->m_numberOptions;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
0-57535
715}-
716-
717bool QLocale::operator!=(const QLocale &other) const-
718{-
719 return
executed 46411 times by 51 tests: return d->m_data != other.d->m_data || d->m_numberOptions != other.d->m_numberOptions;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleValidator
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QIntValidator
  • ...
d->m_data != other.d->m_data
d->m_data != other.d->m_dataDescription
TRUEevaluated 385 times by 3 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QTextStream
FALSEevaluated 46026 times by 51 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleValidator
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QIntValidator
  • ...
|| d->m_numberOptions != other.d->m_numberOptions
d->m_numberOpt..._numberOptionsDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 46025 times by 51 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleValidator
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QIntValidator
  • ...
;
executed 46411 times by 51 tests: return d->m_data != other.d->m_data || d->m_numberOptions != other.d->m_numberOptions;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColumnView
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QDoubleValidator
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QIntValidator
  • ...
1-46411
720}-
721uint qHash(const QLocale &key, uint seed) noexcept-
722{-
723 QtPrivate::QHashCombine hash;-
724 seed = hash(seed, key.d->m_data);-
725 seed = hash(seed, key.d->m_numberOptions);-
726 return
never executed: return seed;
seed;
never executed: return seed;
0
727}-
728-
729-
730-
731-
732-
733-
734-
735void QLocale::setNumberOptions(NumberOptions options)-
736{-
737 d->m_numberOptions = options;-
738}
executed 47319 times by 36 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSidebar
  • tst_QSortFilterProxyModel
  • tst_QSplitter
  • ...
47319
739QLocale::NumberOptions QLocale::numberOptions() const-
740{-
741 return
executed 3542 times by 23 tests: return static_cast<NumberOption>(d->m_numberOptions);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QTime
  • tst_rcc
static_cast<NumberOption>(d->m_numberOptions);
executed 3542 times by 23 tests: return static_cast<NumberOption>(d->m_numberOptions);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QListView
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
  • tst_QTime
  • tst_rcc
3542
742}-
743-
744-
745-
746-
747-
748-
749-
750QString QLocale::quoteString(const QString &str, QuotationStyle style) const-
751{-
752 return
never executed: return quoteString(&str, style);
quoteString(&str, style);
never executed: return quoteString(&str, style);
0
753}-
754-
755-
756-
757-
758-
759-
760QString QLocale::quoteString(const QStringRef &str, QuotationStyle style) const-
761{-
762-
763 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
764 QVariant res;-
765 if (style == QLocale::AlternateQuotation
style == QLoca...rnateQuotationDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
766 res = systemLocale()->query(QSystemLocale::StringToAlternateQuotation, QVariant::fromValue(str));
never executed: res = systemLocale()->query(QSystemLocale::StringToAlternateQuotation, QVariant::fromValue(str));
0
767 if (res.isNull()
res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
|| style == QLocale::StandardQuotation
style == QLoca...ndardQuotationDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
768 res = systemLocale()->query(QSystemLocale::StringToStandardQuotation, QVariant::fromValue(str));
never executed: res = systemLocale()->query(QSystemLocale::StringToStandardQuotation, QVariant::fromValue(str));
0
769 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
770 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
771 }
never executed: end of block
0
772-
773-
774 if (style == QLocale::StandardQuotation
style == QLoca...ndardQuotationDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
775 return
never executed: return QChar(d->m_data->m_quotation_start) % str % QChar(d->m_data->m_quotation_end);
QChar(d->m_data->m_quotation_start) % str % QChar(d->m_data->m_quotation_end);
never executed: return QChar(d->m_data->m_quotation_start) % str % QChar(d->m_data->m_quotation_end);
0
776 else-
777 return
never executed: return QChar(d->m_data->m_alternate_quotation_start) % str % QChar(d->m_data->m_alternate_quotation_end);
QChar(d->m_data->m_alternate_quotation_start) % str % QChar(d->m_data->m_alternate_quotation_end);
never executed: return QChar(d->m_data->m_alternate_quotation_start) % str % QChar(d->m_data->m_alternate_quotation_end);
0
778}-
779-
780-
781-
782-
783-
784-
785-
786QString QLocale::createSeparatedList(const QStringList &list) const-
787{-
788-
789 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
790 QVariant res;-
791 res = systemLocale()->query(QSystemLocale::ListToSeparatedString, QVariant::fromValue(list));-
792-
793 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
794 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
795 }
never executed: end of block
0
796-
797-
798 const int size = list.size();-
799 if (size == 1
size == 1Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
800 return
never executed: return list.at(0);
list.at(0);
never executed: return list.at(0);
0
801 } else if (size == 2
size == 2Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
802 QString format = getLocaleData(list_pattern_part_data + d->m_data->m_list_pattern_part_two_idx, d->m_data->m_list_pattern_part_two_size);-
803 return
never executed: return format.arg(list.at(0), list.at(1));
format.arg(list.at(0), list.at(1));
never executed: return format.arg(list.at(0), list.at(1));
0
804 } else if (size > 2
size > 2Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
805 QString formatStart = getLocaleData(list_pattern_part_data + d->m_data->m_list_pattern_part_start_idx, d->m_data->m_list_pattern_part_start_size);-
806 QString formatMid = getLocaleData(list_pattern_part_data + d->m_data->m_list_pattern_part_mid_idx, d->m_data->m_list_pattern_part_mid_size);-
807 QString formatEnd = getLocaleData(list_pattern_part_data + d->m_data->m_list_pattern_part_end_idx, d->m_data->m_list_pattern_part_end_size);-
808 QString result = formatStart.arg(list.at(0), list.at(1));-
809 for (int i = 2; i < size - 1
i < size - 1Description
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
810 result = formatMid.arg(result, list.at(i));
never executed: result = formatMid.arg(result, list.at(i));
0
811 result = formatEnd.arg(result, list.at(size - 1));-
812 return
never executed: return result;
result;
never executed: return result;
0
813 }-
814-
815 return
never executed: return QString();
QString();
never executed: return QString();
0
816}-
817void QLocale::setDefault(const QLocale &locale)-
818{-
819 default_data = locale.d->m_data;-
820 default_number_options = locale.numberOptions();-
821-
822 if (defaultLocalePrivate.exists()
defaultLocalePrivate.exists()Description
TRUEevaluated 2457 times by 14 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_rcc
FALSEnever evaluated
) {
0-2457
823-
824 *defaultLocalePrivate = locale.d;-
825 }
executed 2457 times by 14 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_rcc
2457
826}
executed 2457 times by 14 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_rcc
2457
827-
828-
829-
830-
831-
832-
833QLocale::Language QLocale::language() const-
834{-
835 return
executed 39755 times by 95 tests: return Language(d->languageId());
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
Language(d->languageId());
executed 39755 times by 95 tests: return Language(d->languageId());
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
39755
836}-
837QLocale::Script QLocale::script() const-
838{-
839 return
executed 34 times by 34 tests: return Script(d->m_data->m_script_id);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QRadioButton
  • ...
Script(d->m_data->m_script_id);
executed 34 times by 34 tests: return Script(d->m_data->m_script_id);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QRadioButton
  • ...
34
840}-
841-
842-
843-
844-
845-
846-
847QLocale::Country QLocale::country() const-
848{-
849 return
executed 39729 times by 94 tests: return Country(d->countryId());
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
Country(d->countryId());
executed 39729 times by 94 tests: return Country(d->countryId());
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
39729
850}-
851QString QLocale::name() const-
852{-
853 Language l = language();-
854-
855 QString result = d->languageCode();-
856-
857 if (l == C
l == CDescription
TRUEevaluated 35 times by 2 tests
Evaluated by:
  • tst_QMimeDatabase
  • tst_QTimeZone
FALSEevaluated 3293 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
)
35-3293
858 return
executed 35 times by 2 tests: return result;
Executed by:
  • tst_QMimeDatabase
  • tst_QTimeZone
result;
executed 35 times by 2 tests: return result;
Executed by:
  • tst_QMimeDatabase
  • tst_QTimeZone
35
859-
860 Country c = country();-
861 if (c == AnyCountry
c == AnyCountryDescription
TRUEnever evaluated
FALSEevaluated 3293 times by 14 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
)
0-3293
862 return
never executed: return result;
result;
never executed: return result;
0
863-
864 result.append(QLatin1Char('_'));-
865 result.append(d->countryCode());-
866-
867 return
executed 3293 times by 14 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
result;
executed 3293 times by 14 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QFileSelector
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QTimeZone
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_qnetworkreply - unknown status
3293
868}-
869-
870static qlonglong toIntegral_helper(const QLocaleData *d, const QChar *data, int len, bool *ok,-
871 QLocaleData::GroupSeparatorMode mode, qlonglong)-
872{-
873 return
executed 1227 times by 16 tests: return d->stringToLongLong(data, len, 10, ok, mode);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_languageChange
d->stringToLongLong(data, len, 10, ok, mode);
executed 1227 times by 16 tests: return d->stringToLongLong(data, len, 10, ok, mode);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_languageChange
1227
874}-
875-
876static qulonglong toIntegral_helper(const QLocaleData *d, const QChar *data, int len, bool *ok,-
877 QLocaleData::GroupSeparatorMode mode, qulonglong)-
878{-
879 return
executed 15727 times by 11 tests: return d->stringToUnsLongLong(data, len, 10, ok, mode);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
d->stringToUnsLongLong(data, len, 10, ok, mode);
executed 15727 times by 11 tests: return d->stringToUnsLongLong(data, len, 10, ok, mode);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
15727
880}-
881-
882template <typename T> static inline-
883T toIntegral_helper(const QLocalePrivate *d, const QChar *data, int len, bool *ok)-
884{-
885-
886 const bool isUnsigned = T(0) < T(-1);-
887 typedef typename QtPrivate::QConditional<isUnsigned, qulonglong, qlonglong>::Type Int64;-
888-
889 QLocaleData::GroupSeparatorMode mode-
890 = d->m_numberOptions & QLocale::RejectGroupSeparator
d->m_numberOpt...GroupSeparatorDescription
TRUEnever evaluated
FALSEevaluated 16954 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
0-16954
891 ? QLocaleData::FailOnGroupSeparators-
892 : QLocaleData::ParseGroupSeparators;-
893-
894-
895 Int64 val = toIntegral_helper(d->m_data, data, len, ok, mode, Int64());-
896 if (T(val) != val
T(val) != valDescription
TRUEnever evaluated
FALSEevaluated 16954 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
) {
0-16954
897 if (ok
okDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
898 *
never executed: *ok = false;
ok = false;
never executed: *ok = false;
0
899 val = 0;-
900 }
never executed: end of block
0
901 return
executed 16954 times by 23 tests: return T(val);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
T(val);
executed 16954 times by 23 tests: return T(val);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
16954
902}-
903QString QLocale::bcp47Name() const-
904{-
905 return
executed 332 times by 13 tests: return QString::fromLatin1(d->bcp47Name());
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QPrinter
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
QString::fromLatin1(d->bcp47Name());
executed 332 times by 13 tests: return QString::fromLatin1(d->bcp47Name());
Executed by:
  • tst_ModelTest
  • tst_QCollator
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QItemModel
  • tst_QListWidget
  • tst_QPrinter
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_languageChange
332
906}-
907-
908-
909-
910-
911-
912-
913-
914QString QLocale::languageToString(Language language)-
915{-
916 if (uint(language) > uint(QLocale::LastLanguage)
uint(language)...:LastLanguage)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
0-1
917 return
never executed: return QLatin1String("Unknown");
QLatin1String("Unknown");
never executed: return QLatin1String("Unknown");
0
918 return
executed 1 time by 1 test: return QLatin1String(language_name_list + language_name_index[language]);
Executed by:
  • tst_QVariant
QLatin1String(language_name_list + language_name_index[language]);
executed 1 time by 1 test: return QLatin1String(language_name_list + language_name_index[language]);
Executed by:
  • tst_QVariant
1
919}-
920-
921-
922-
923-
924-
925-
926-
927QString QLocale::countryToString(Country country)-
928{-
929 if (uint(country) > uint(QLocale::LastCountry)
uint(country) ...::LastCountry)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
0-1
930 return
never executed: return QLatin1String("Unknown");
QLatin1String("Unknown");
never executed: return QLatin1String("Unknown");
0
931 return
executed 1 time by 1 test: return QLatin1String(country_name_list + country_name_index[country]);
Executed by:
  • tst_QVariant
QLatin1String(country_name_list + country_name_index[country]);
executed 1 time by 1 test: return QLatin1String(country_name_list + country_name_index[country]);
Executed by:
  • tst_QVariant
1
932}-
933QString QLocale::scriptToString(QLocale::Script script)-
934{-
935 if (uint(script) > uint(QLocale::LastScript)
uint(script) >...e::LastScript)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QVariant
)
0-1
936 return
never executed: return QLatin1String("Unknown");
QLatin1String("Unknown");
never executed: return QLatin1String("Unknown");
0
937 return
executed 1 time by 1 test: return QLatin1String(script_name_list + script_name_index[script]);
Executed by:
  • tst_QVariant
QLatin1String(script_name_list + script_name_index[script]);
executed 1 time by 1 test: return QLatin1String(script_name_list + script_name_index[script]);
Executed by:
  • tst_QVariant
1
938}-
939short QLocale::toShort(const QString &s, bool *ok) const-
940{-
941 return
never executed: return toIntegral_helper<short>(d, s.constData(), s.size(), ok);
toIntegral_helper<short>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<short>(d, s.constData(), s.size(), ok);
0
942}-
943ushort QLocale::toUShort(const QString &s, bool *ok) const-
944{-
945 return
never executed: return toIntegral_helper<ushort>(d, s.constData(), s.size(), ok);
toIntegral_helper<ushort>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<ushort>(d, s.constData(), s.size(), ok);
0
946}-
947int QLocale::toInt(const QString &s, bool *ok) const-
948{-
949 return
executed 1227 times by 16 tests: return toIntegral_helper<int>(d, s.constData(), s.size(), ok);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_languageChange
toIntegral_helper<int>(d, s.constData(), s.size(), ok);
executed 1227 times by 16 tests: return toIntegral_helper<int>(d, s.constData(), s.size(), ok);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFontDialog
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_languageChange
1227
950}-
951uint QLocale::toUInt(const QString &s, bool *ok) const-
952{-
953 return
executed 15727 times by 11 tests: return toIntegral_helper<uint>(d, s.constData(), s.size(), ok);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
toIntegral_helper<uint>(d, s.constData(), s.size(), ok);
executed 15727 times by 11 tests: return toIntegral_helper<uint>(d, s.constData(), s.size(), ok);
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QStyleSheetStyle
  • tst_QTime
15727
954}-
955qlonglong QLocale::toLongLong(const QString &s, bool *ok) const-
956{-
957 return
never executed: return toIntegral_helper<qlonglong>(d, s.constData(), s.size(), ok);
toIntegral_helper<qlonglong>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<qlonglong>(d, s.constData(), s.size(), ok);
0
958}-
959qulonglong QLocale::toULongLong(const QString &s, bool *ok) const-
960{-
961 return
never executed: return toIntegral_helper<qulonglong>(d, s.constData(), s.size(), ok);
toIntegral_helper<qulonglong>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<qulonglong>(d, s.constData(), s.size(), ok);
0
962}-
963float QLocale::toFloat(const QString &s, bool *ok) const-
964{-
965 return
never executed: return QLocaleData::convertDoubleToFloat(toDouble(s, ok), ok);
QLocaleData::convertDoubleToFloat(toDouble(s, ok), ok);
never executed: return QLocaleData::convertDoubleToFloat(toDouble(s, ok), ok);
0
966}-
967double QLocale::toDouble(const QString &s, bool *ok) const-
968{-
969 QLocaleData::GroupSeparatorMode mode-
970 = d->m_numberOptions & RejectGroupSeparator
d->m_numberOpt...GroupSeparatorDescription
TRUEnever evaluated
FALSEevaluated 1214 times by 7 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
0-1214
971 ? QLocaleData::FailOnGroupSeparators-
972 : QLocaleData::ParseGroupSeparators;-
973-
974 return
executed 1214 times by 7 tests: return d->m_data->stringToDouble(s.constData(), s.size(), ok, mode);
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
d->m_data->stringToDouble(s.constData(), s.size(), ok, mode);
executed 1214 times by 7 tests: return d->m_data->stringToDouble(s.constData(), s.size(), ok, mode);
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
1214
975}-
976short QLocale::toShort(const QStringRef &s, bool *ok) const-
977{-
978 return
never executed: return toIntegral_helper<short>(d, s.constData(), s.size(), ok);
toIntegral_helper<short>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<short>(d, s.constData(), s.size(), ok);
0
979}-
980ushort QLocale::toUShort(const QStringRef &s, bool *ok) const-
981{-
982 return
never executed: return toIntegral_helper<ushort>(d, s.constData(), s.size(), ok);
toIntegral_helper<ushort>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<ushort>(d, s.constData(), s.size(), ok);
0
983}-
984int QLocale::toInt(const QStringRef &s, bool *ok) const-
985{-
986 return
never executed: return toIntegral_helper<int>(d, s.constData(), s.size(), ok);
toIntegral_helper<int>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<int>(d, s.constData(), s.size(), ok);
0
987}-
988uint QLocale::toUInt(const QStringRef &s, bool *ok) const-
989{-
990 return
never executed: return toIntegral_helper<uint>(d, s.constData(), s.size(), ok);
toIntegral_helper<uint>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<uint>(d, s.constData(), s.size(), ok);
0
991}-
992qlonglong QLocale::toLongLong(const QStringRef &s, bool *ok) const-
993{-
994 return
never executed: return toIntegral_helper<qlonglong>(d, s.constData(), s.size(), ok);
toIntegral_helper<qlonglong>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<qlonglong>(d, s.constData(), s.size(), ok);
0
995}-
996qulonglong QLocale::toULongLong(const QStringRef &s, bool *ok) const-
997{-
998 return
never executed: return toIntegral_helper<qulonglong>(d, s.constData(), s.size(), ok);
toIntegral_helper<qulonglong>(d, s.constData(), s.size(), ok);
never executed: return toIntegral_helper<qulonglong>(d, s.constData(), s.size(), ok);
0
999}-
1000float QLocale::toFloat(const QStringRef &s, bool *ok) const-
1001{-
1002 return
never executed: return QLocaleData::convertDoubleToFloat(toDouble(s, ok), ok);
QLocaleData::convertDoubleToFloat(toDouble(s, ok), ok);
never executed: return QLocaleData::convertDoubleToFloat(toDouble(s, ok), ok);
0
1003}-
1004double QLocale::toDouble(const QStringRef &s, bool *ok) const-
1005{-
1006 QLocaleData::GroupSeparatorMode mode-
1007 = d->m_numberOptions & RejectGroupSeparator
d->m_numberOpt...GroupSeparatorDescription
TRUEnever evaluated
FALSEnever evaluated
0
1008 ? QLocaleData::FailOnGroupSeparators-
1009 : QLocaleData::ParseGroupSeparators;-
1010-
1011 return
never executed: return d->m_data->stringToDouble(s.constData(), s.size(), ok, mode);
d->m_data->stringToDouble(s.constData(), s.size(), ok, mode);
never executed: return d->m_data->stringToDouble(s.constData(), s.size(), ok, mode);
0
1012}-
1013QString QLocale::toString(qlonglong i) const-
1014{-
1015 int flags = d->m_numberOptions & OmitGroupSeparator
d->m_numberOpt...GroupSeparatorDescription
TRUEevaluated 11595 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QHeaderView
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QSpinBox
  • tst_QTableView
  • tst_QTreeView
FALSEevaluated 1659 times by 20 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_languageChange
1659-11595
1016 ? 0-
1017 : QLocaleData::ThousandsGroup;-
1018-
1019 return
executed 13254 times by 26 tests: return d->m_data->longLongToString(i, -1, 10, -1, flags);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • ...
d->m_data->longLongToString(i, -1, 10, -1, flags);
executed 13254 times by 26 tests: return d->m_data->longLongToString(i, -1, 10, -1, flags);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QSortFilterProxyModel
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • ...
13254
1020}-
1021-
1022-
1023-
1024-
1025-
1026-
1027-
1028QString QLocale::toString(qulonglong i) const-
1029{-
1030 int flags = d->m_numberOptions & OmitGroupSeparator
d->m_numberOpt...GroupSeparatorDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QItemDelegate
FALSEevaluated 290 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QItemModel
12-290
1031 ? 0-
1032 : QLocaleData::ThousandsGroup;-
1033-
1034 return
executed 302 times by 2 tests: return d->m_data->unsLongLongToString(i, -1, 10, -1, flags);
Executed by:
  • tst_QItemDelegate
  • tst_QItemModel
d->m_data->unsLongLongToString(i, -1, 10, -1, flags);
executed 302 times by 2 tests: return d->m_data->unsLongLongToString(i, -1, 10, -1, flags);
Executed by:
  • tst_QItemDelegate
  • tst_QItemModel
302
1035}-
1036-
1037-
1038-
1039-
1040-
1041-
1042-
1043QString QLocale::toString(const QDate &date, const QString &format) const-
1044{-
1045 return
executed 13914 times by 7 tests: return d->dateTimeToString(format, QDateTime(), date, QTime(), this);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QVariant
d->dateTimeToString(format, QDateTime(), date, QTime(), this);
executed 13914 times by 7 tests: return d->dateTimeToString(format, QDateTime(), date, QTime(), this);
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QVariant
13914
1046}-
1047-
1048-
1049-
1050-
1051-
1052-
1053QString QLocale::toString(const QDate &date, FormatType format) const-
1054{-
1055 if (!date.isValid()
!date.isValid()Description
TRUEnever evaluated
FALSEevaluated 204 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QItemDelegate
)
0-204
1056 return
never executed: return QString();
QString();
never executed: return QString();
0
1057-
1058-
1059 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 76 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QItemDelegate
FALSEevaluated 128 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QItemDelegate
) {
76-128
1060 QVariant res = systemLocale()->query(format == LongFormat-
1061 ? QSystemLocale::DateToStringLong : QSystemLocale::DateToStringShort,-
1062 date);-
1063 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 76 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QItemDelegate
FALSEnever evaluated
)
0-76
1064 return
executed 76 times by 2 tests: return res.toString();
Executed by:
  • tst_QDate
  • tst_QItemDelegate
res.toString();
executed 76 times by 2 tests: return res.toString();
Executed by:
  • tst_QDate
  • tst_QItemDelegate
76
1065 }
never executed: end of block
0
1066-
1067-
1068 QString format_str = dateFormat(format);-
1069 return
executed 128 times by 2 tests: return toString(date, format_str);
Executed by:
  • tst_QDate
  • tst_QItemDelegate
toString(date, format_str);
executed 128 times by 2 tests: return toString(date, format_str);
Executed by:
  • tst_QDate
  • tst_QItemDelegate
128
1070}-
1071-
1072static bool timeFormatContainsAP(const QString &format)-
1073{-
1074 int i = 0;-
1075 while (i < format.size()
i < format.size()Description
TRUEevaluated 300834 times by 26 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_languageChange
  • ...
FALSEevaluated 17874 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
) {
17874-300834
1076 if (format.at(i).unicode() == '\''
format.at(i).unicode() == '\''Description
TRUEevaluated 694 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
FALSEevaluated 300140 times by 26 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_languageChange
  • ...
) {
694-300140
1077 qt_readEscapedFormatString(format, &i);-
1078 continue;
executed 694 times by 6 tests: continue;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
694
1079 }-
1080-
1081 if (format.at(i).toLower().unicode() == 'a'
format.at(i).t...icode() == 'a'Description
TRUEevaluated 3589 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
FALSEevaluated 296551 times by 26 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_languageChange
  • ...
)
3589-296551
1082 return
executed 3589 times by 12 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
true;
executed 3589 times by 12 tests: return true;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
3589
1083-
1084 ++i;-
1085 }
executed 296551 times by 26 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_languageChange
  • ...
296551
1086 return
executed 17874 times by 18 tests: return false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
false;
executed 17874 times by 18 tests: return false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
17874
1087}-
1088-
1089-
1090-
1091-
1092-
1093-
1094QString QLocale::toString(const QTime &time, const QString &format) const-
1095{-
1096 return
executed 14096 times by 6 tests: return d->dateTimeToString(format, QDateTime(), QDate(), time, this);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
d->dateTimeToString(format, QDateTime(), QDate(), time, this);
executed 14096 times by 6 tests: return d->dateTimeToString(format, QDateTime(), QDate(), time, this);
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
14096
1097}-
1098QString QLocale::toString(const QDateTime &dateTime, const QString &format) const-
1099{-
1100 return
executed 10167 times by 29 tests: return d->dateTimeToString(format, dateTime, QDate(), QTime(), this);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • ...
d->dateTimeToString(format, dateTime, QDate(), QTime(), this);
executed 10167 times by 29 tests: return d->dateTimeToString(format, dateTime, QDate(), QTime(), this);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • ...
10167
1101}-
1102QString QLocale::toString(const QDateTime &dateTime, FormatType format) const-
1103{-
1104 if (!dateTime.isValid()
!dateTime.isValid()Description
TRUEnever evaluated
FALSEevaluated 5579 times by 8 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
)
0-5579
1105 return
never executed: return QString();
QString();
never executed: return QString();
0
1106-
1107-
1108 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 2788 times by 8 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
FALSEevaluated 2791 times by 8 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
) {
2788-2791
1109 QVariant res = systemLocale()->query(format == LongFormat-
1110 ? QSystemLocale::DateTimeToStringLong-
1111 : QSystemLocale::DateTimeToStringShort,-
1112 dateTime);-
1113 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 2788 times by 8 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
FALSEnever evaluated
)
0-2788
1114 return
executed 2788 times by 8 tests: return res.toString();
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
res.toString();
executed 2788 times by 8 tests: return res.toString();
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
2788
1115 }
never executed: end of block
0
1116-
1117-
1118 const QString format_str = dateTimeFormat(format);-
1119 return
executed 2791 times by 8 tests: return toString(dateTime, format_str);
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
toString(dateTime, format_str);
executed 2791 times by 8 tests: return toString(dateTime, format_str);
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
2791
1120}-
1121-
1122-
1123-
1124-
1125-
1126-
1127-
1128QString QLocale::toString(const QTime &time, FormatType format) const-
1129{-
1130 if (!time.isValid()
!time.isValid()Description
TRUEnever evaluated
FALSEevaluated 64 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QTime
)
0-64
1131 return
never executed: return QString();
QString();
never executed: return QString();
0
1132-
1133-
1134 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QTime
FALSEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QTime
) {
30-34
1135 QVariant res = systemLocale()->query(format == LongFormat-
1136 ? QSystemLocale::TimeToStringLong : QSystemLocale::TimeToStringShort,-
1137 time);-
1138 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QTime
FALSEnever evaluated
)
0-30
1139 return
executed 30 times by 2 tests: return res.toString();
Executed by:
  • tst_QItemDelegate
  • tst_QTime
res.toString();
executed 30 times by 2 tests: return res.toString();
Executed by:
  • tst_QItemDelegate
  • tst_QTime
30
1140 }
never executed: end of block
0
1141-
1142-
1143 QString format_str = timeFormat(format);-
1144 return
executed 34 times by 2 tests: return toString(time, format_str);
Executed by:
  • tst_QItemDelegate
  • tst_QTime
toString(time, format_str);
executed 34 times by 2 tests: return toString(time, format_str);
Executed by:
  • tst_QItemDelegate
  • tst_QTime
34
1145}-
1146QString QLocale::dateFormat(FormatType format) const-
1147{-
1148-
1149 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 11 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEevaluated 3157 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
) {
11-3157
1150 QVariant res = systemLocale()->query(format == LongFormat-
1151 ? QSystemLocale::DateFormatLong : QSystemLocale::DateFormatShort,-
1152 QVariant());-
1153 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 11 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEnever evaluated
)
0-11
1154 return
executed 11 times by 4 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
res.toString();
executed 11 times by 4 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
11
1155 }
never executed: end of block
0
1156-
1157-
1158 quint32 idx, size;-
1159 switch (format) {-
1160 case
executed 63 times by 3 tests: case LongFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QItemDelegate
LongFormat:
executed 63 times by 3 tests: case LongFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QItemDelegate
63
1161 idx = d->m_data->m_long_date_format_idx;-
1162 size = d->m_data->m_long_date_format_size;-
1163 break;
executed 63 times by 3 tests: break;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QItemDelegate
63
1164 default
executed 3094 times by 13 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
:
executed 3094 times by 13 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
3094
1165 idx = d->m_data->m_short_date_format_idx;-
1166 size = d->m_data->m_short_date_format_size;-
1167 break;
executed 3094 times by 13 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
3094
1168 }-
1169 return
executed 3157 times by 13 tests: return getLocaleData(date_format_data + idx, size);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
getLocaleData(date_format_data + idx, size);
executed 3157 times by 13 tests: return getLocaleData(date_format_data + idx, size);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
3157
1170}-
1171QString QLocale::timeFormat(FormatType format) const-
1172{-
1173-
1174 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 11 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEevaluated 3063 times by 13 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
) {
11-3063
1175 QVariant res = systemLocale()->query(format == LongFormat-
1176 ? QSystemLocale::TimeFormatLong : QSystemLocale::TimeFormatShort,-
1177 QVariant());-
1178 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 11 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEnever evaluated
)
0-11
1179 return
executed 11 times by 4 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
res.toString();
executed 11 times by 4 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
11
1180 }
never executed: end of block
0
1181-
1182-
1183 quint32 idx, size;-
1184 switch (format) {-
1185 case
executed 15 times by 3 tests: case LongFormat:
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QTime
LongFormat:
executed 15 times by 3 tests: case LongFormat:
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QTime
15
1186 idx = d->m_data->m_long_time_format_idx;-
1187 size = d->m_data->m_long_time_format_size;-
1188 break;
executed 15 times by 3 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QItemDelegate
  • tst_QTime
15
1189 default
executed 3048 times by 13 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
:
executed 3048 times by 13 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
3048
1190 idx = d->m_data->m_short_time_format_idx;-
1191 size = d->m_data->m_short_time_format_size;-
1192 break;
executed 3048 times by 13 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
3048
1193 }-
1194 return
executed 3063 times by 13 tests: return getLocaleData(time_format_data + idx, size);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
getLocaleData(time_format_data + idx, size);
executed 3063 times by 13 tests: return getLocaleData(time_format_data + idx, size);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_languageChange
3063
1195}-
1196QString QLocale::dateTimeFormat(FormatType format) const-
1197{-
1198-
1199 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 14 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEevaluated 2913 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
) {
14-2913
1200 QVariant res = systemLocale()->query(format == LongFormat-
1201 ? QSystemLocale::DateTimeFormatLong-
1202 : QSystemLocale::DateTimeFormatShort,-
1203 QVariant());-
1204 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 14 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
FALSEnever evaluated
) {
0-14
1205 return
executed 14 times by 5 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
res.toString();
executed 14 times by 5 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
14
1206 }-
1207 }
never executed: end of block
0
1208-
1209 return
executed 2913 times by 12 tests: return dateFormat(format) + QLatin1Char(' ') + timeFormat(format);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
dateFormat(format) + QLatin1Char(' ') + timeFormat(format);
executed 2913 times by 12 tests: return dateFormat(format) + QLatin1Char(' ') + timeFormat(format);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
2913
1210}-
1211QTime QLocale::toTime(const QString &string, FormatType format) const-
1212{-
1213 return
never executed: return toTime(string, timeFormat(format));
toTime(string, timeFormat(format));
never executed: return toTime(string, timeFormat(format));
0
1214}-
1215QDate QLocale::toDate(const QString &string, FormatType format) const-
1216{-
1217 return
never executed: return toDate(string, dateFormat(format));
toDate(string, dateFormat(format));
never executed: return toDate(string, dateFormat(format));
0
1218}-
1219QDateTime QLocale::toDateTime(const QString &string, FormatType format) const-
1220{-
1221 return
executed 6 times by 1 test: return toDateTime(string, dateTimeFormat(format));
Executed by:
  • tst_QDateTime
toDateTime(string, dateTimeFormat(format));
executed 6 times by 1 test: return toDateTime(string, dateTimeFormat(format));
Executed by:
  • tst_QDateTime
6
1222}-
1223QTime QLocale::toTime(const QString &string, const QString &format) const-
1224{-
1225 QTime time;-
1226-
1227 QDateTimeParser dt(QVariant::Time, QDateTimeParser::FromString);-
1228 dt.setDefaultLocale(*this);-
1229 if (dt.parseFormat(format)
dt.parseFormat(format)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1230 dt.fromString(string, 0, &time);
never executed: dt.fromString(string, 0, &time);
0
1231-
1232-
1233-
1234-
1235 return
never executed: return time;
time;
never executed: return time;
0
1236}-
1237QDate QLocale::toDate(const QString &string, const QString &format) const-
1238{-
1239 QDate date;-
1240-
1241 QDateTimeParser dt(QVariant::Date, QDateTimeParser::FromString);-
1242 dt.setDefaultLocale(*this);-
1243 if (dt.parseFormat(format)
dt.parseFormat(format)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1244 dt.fromString(string, &date, 0);
never executed: dt.fromString(string, &date, 0);
0
1245-
1246-
1247-
1248-
1249 return
never executed: return date;
date;
never executed: return date;
0
1250}-
1251QDateTime QLocale::toDateTime(const QString &string, const QString &format) const-
1252{-
1253-
1254 QTime time;-
1255 QDate date;-
1256-
1257 QDateTimeParser dt(QVariant::DateTime, QDateTimeParser::FromString);-
1258 dt.setDefaultLocale(*this);-
1259 if (dt.parseFormat(format)
dt.parseFormat(format)Description
TRUEevaluated 533 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkRequest
FALSEnever evaluated
&& dt.fromString(string, &date, &time)
dt.fromString(... &date, &time)Description
TRUEevaluated 407 times by 3 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkRequest
FALSEevaluated 126 times by 2 tests
Evaluated by:
  • tst_QDateTime
  • tst_QFtp
)
0-533
1260 return
executed 407 times by 3 tests: return QDateTime(date, time);
Executed by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkRequest
QDateTime(date, time);
executed 407 times by 3 tests: return QDateTime(date, time);
Executed by:
  • tst_QDateTime
  • tst_QFtp
  • tst_QNetworkRequest
407
1261-
1262-
1263-
1264-
1265 return
executed 126 times by 2 tests: return QDateTime(QDate(), QTime(-1, -1, -1));
Executed by:
  • tst_QDateTime
  • tst_QFtp
QDateTime(QDate(), QTime(-1, -1, -1));
executed 126 times by 2 tests: return QDateTime(QDate(), QTime(-1, -1, -1));
Executed by:
  • tst_QDateTime
  • tst_QFtp
126
1266}-
1267QChar QLocale::decimalPoint() const-
1268{-
1269 return
executed 2865 times by 18 tests: return d->decimal();
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
d->decimal();
executed 2865 times by 18 tests: return d->decimal();
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
2865
1270}-
1271-
1272-
1273-
1274-
1275-
1276-
1277QChar QLocale::groupSeparator() const-
1278{-
1279 return
executed 6804 times by 22 tests: return d->group();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
d->group();
executed 6804 times by 22 tests: return d->group();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
6804
1280}-
1281-
1282-
1283-
1284-
1285-
1286-
1287QChar QLocale::percent() const-
1288{-
1289 return
executed 44 times by 6 tests: return d->percent();
Executed by:
  • tst_QAccessibility
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QStyle
  • tst_QStyleSheetStyle
d->percent();
executed 44 times by 6 tests: return d->percent();
Executed by:
  • tst_QAccessibility
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QProgressBar
  • tst_QProgressDialog
  • tst_QStyle
  • tst_QStyleSheetStyle
44
1290}-
1291-
1292-
1293-
1294-
1295-
1296-
1297QChar QLocale::zeroDigit() const-
1298{-
1299 return
executed 779 times by 11 tests: return d->zero();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
d->zero();
executed 779 times by 11 tests: return d->zero();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
779
1300}-
1301-
1302-
1303-
1304-
1305-
1306-
1307QChar QLocale::negativeSign() const-
1308{-
1309 return
executed 57837 times by 14 tests: return d->minus();
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
d->minus();
executed 57837 times by 14 tests: return d->minus();
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
57837
1310}-
1311-
1312-
1313-
1314-
1315-
1316-
1317QChar QLocale::positiveSign() const-
1318{-
1319 return
executed 36454 times by 14 tests: return d->plus();
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
d->plus();
executed 36454 times by 14 tests: return d->plus();
Executed by:
  • tst_QSplitter
  • tst_QString
  • tst_QTextStream
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
36454
1320}-
1321-
1322-
1323-
1324-
1325-
1326-
1327QChar QLocale::exponential() const-
1328{-
1329 return
executed 81 times by 1 test: return d->exponential();
Executed by:
  • tst_QTextStream
d->exponential();
executed 81 times by 1 test: return d->exponential();
Executed by:
  • tst_QTextStream
81
1330}-
1331-
1332static bool qIsUpper(char c)-
1333{-
1334 return
executed 1282 times by 10 tests: return c >= 'A' && c <= 'Z';
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
c >= 'A'
c >= 'A'Description
TRUEevaluated 1282 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
FALSEnever evaluated
&& c <= 'Z'
c <= 'Z'Description
TRUEnever evaluated
FALSEevaluated 1282 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
;
executed 1282 times by 10 tests: return c >= 'A' && c <= 'Z';
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
0-1282
1335}-
1336-
1337static char qToLower(char c)-
1338{-
1339 if (c >= 'A'
c >= 'A'Description
TRUEevaluated 1282 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
FALSEnever evaluated
&& c <= 'Z'
c <= 'Z'Description
TRUEnever evaluated
FALSEevaluated 1282 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
)
0-1282
1340 return
never executed: return c - 'A' + 'a';
c - 'A' + 'a';
never executed: return c - 'A' + 'a';
0
1341 else-
1342 return
executed 1282 times by 10 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
c;
executed 1282 times by 10 tests: return c;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
1282
1343}-
1344QString QLocale::toString(double i, char f, int prec) const-
1345{-
1346 QLocaleData::DoubleForm form = QLocaleData::DFDecimal;-
1347 uint flags = 0;-
1348-
1349 if (qIsUpper(f)
qIsUpper(f)Description
TRUEnever evaluated
FALSEevaluated 1282 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
)
0-1282
1350 flags = QLocaleData::CapitalEorX;
never executed: flags = QLocaleData::CapitalEorX;
0
1351 f = qToLower(f);-
1352-
1353 switch (f) {-
1354 case
executed 1207 times by 10 tests: case 'f':
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
'f':
executed 1207 times by 10 tests: case 'f':
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
1207
1355 form = QLocaleData::DFDecimal;-
1356 break;
executed 1207 times by 10 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
1207
1357 case
never executed: case 'e':
'e':
never executed: case 'e':
0
1358 form = QLocaleData::DFExponent;-
1359 break;
never executed: break;
0
1360 case
executed 75 times by 3 tests: case 'g':
Executed by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
'g':
executed 75 times by 3 tests: case 'g':
Executed by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
75
1361 form = QLocaleData::DFSignificantDigits;-
1362 break;
executed 75 times by 3 tests: break;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
75
1363 default
never executed: default:
:
never executed: default:
0
1364 break;
never executed: break;
0
1365 }-
1366-
1367 if (!(d->m_numberOptions & OmitGroupSeparator)
!(d->m_numberO...roupSeparator)Description
TRUEevaluated 597 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
FALSEevaluated 685 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QSpinBox
)
597-685
1368 flags |= QLocaleData::ThousandsGroup;
executed 597 times by 9 tests: flags |= QLocaleData::ThousandsGroup;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
597
1369 return
executed 1282 times by 10 tests: return d->m_data->doubleToString(i, prec, form, -1, flags);
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
d->m_data->doubleToString(i, prec, form, -1, flags);
executed 1282 times by 10 tests: return d->m_data->doubleToString(i, prec, form, -1, flags);
Executed by:
  • tst_QAccessibility
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
1282
1370}-
1371QLocale QLocale::system()-
1372{-
1373 return
executed 36633 times by 68 tests: return QLocale(*QLocalePrivate::create(systemData()));
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
QLocale(*QLocalePrivate::create(systemData()));
executed 36633 times by 68 tests: return QLocale(*QLocalePrivate::create(systemData()));
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
36633
1374}-
1375QList<QLocale> QLocale::matchingLocales(QLocale::Language language,-
1376 QLocale::Script script,-
1377 QLocale::Country country)-
1378{-
1379 if (uint(language) > QLocale::LastLanguage
uint(language)...::LastLanguageDescription
TRUEnever evaluated
FALSEnever evaluated
|| uint(script) > QLocale::LastScript
uint(script) >...le::LastScriptDescription
TRUEnever evaluated
FALSEnever evaluated
||
0
1380 uint(country) > QLocale::LastCountry
uint(country) ...e::LastCountryDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1381 return
never executed: return QList<QLocale>();
QList<QLocale>();
never executed: return QList<QLocale>();
0
1382-
1383 if (language == QLocale::C
language == QLocale::CDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1384 return
never executed: return QList<QLocale>() << QLocale(QLocale::C);
QList<QLocale>() << QLocale(QLocale::C);
never executed: return QList<QLocale>() << QLocale(QLocale::C);
0
1385-
1386 QList<QLocale> result;-
1387 if (language == QLocale::AnyLanguage
language == QL...e::AnyLanguageDescription
TRUEnever evaluated
FALSEnever evaluated
&& script == QLocale::AnyScript
script == QLocale::AnyScriptDescription
TRUEnever evaluated
FALSEnever evaluated
&& country == QLocale::AnyCountry
country == QLocale::AnyCountryDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1388 result.reserve(locale_data_size);
never executed: result.reserve(locale_data_size);
0
1389 const QLocaleData *data = locale_data + locale_index[language];-
1390 while ( (
(data != local...ale_data_size)Description
TRUEnever evaluated
FALSEnever evaluated
data != locale_data + locale_data_size)
(data != local...ale_data_size)Description
TRUEnever evaluated
FALSEnever evaluated
0
1391 && (language == QLocale::AnyLanguage
language == QL...e::AnyLanguageDescription
TRUEnever evaluated
FALSEnever evaluated
|| data->m_language_id == uint(language)
data->m_langua...uint(language)Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
1392 if ((script == QLocale::AnyScript
script == QLocale::AnyScriptDescription
TRUEnever evaluated
FALSEnever evaluated
|| data->m_script_id == uint(script)
data->m_script...= uint(script)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1393 && (country == QLocale::AnyCountry
country == QLocale::AnyCountryDescription
TRUEnever evaluated
FALSEnever evaluated
|| data->m_country_id == uint(country)
data->m_countr... uint(country)Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0
1394 QLocale locale(*QLocalePrivate::create(data));-
1395 result.append(locale);-
1396 }
never executed: end of block
0
1397 ++data;-
1398 }
never executed: end of block
0
1399 return
never executed: return result;
result;
never executed: return result;
0
1400}-
1401QList<QLocale::Country> QLocale::countriesForLanguage(Language language)-
1402{-
1403 QList<Country> result;-
1404 if (language == C
language == CDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1405 result << AnyCountry;-
1406 return
never executed: return result;
result;
never executed: return result;
0
1407 }-
1408-
1409 unsigned language_id = language;-
1410 const QLocaleData *data = locale_data + locale_index[language_id];-
1411 while (data->m_language_id == language_id
data->m_langua...== language_idDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1412 const QLocale::Country country = static_cast<Country>(data->m_country_id);-
1413 if (!result.contains(country)
!result.contains(country)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1414 result.append(country);
never executed: result.append(country);
0
1415 ++data;-
1416 }
never executed: end of block
0
1417-
1418 return
never executed: return result;
result;
never executed: return result;
0
1419}-
1420QString QLocale::monthName(int month, FormatType type) const-
1421{-
1422 if (month < 1
month < 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 40352 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
|| month > 12
month > 12Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 40351 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
)
1-40352
1423 return
executed 2 times by 1 test: return QString();
Executed by:
  • tst_QDate
QString();
executed 2 times by 1 test: return QString();
Executed by:
  • tst_QDate
2
1424-
1425-
1426 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 12489 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
FALSEevaluated 27862 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
) {
12489-27862
1427 QVariant res = systemLocale()->query(type == LongFormat-
1428 ? QSystemLocale::MonthNameLong : QSystemLocale::MonthNameShort,-
1429 month);-
1430 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 12489 times by 5 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
FALSEnever evaluated
)
0-12489
1431 return
executed 12489 times by 5 tests: return res.toString();
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
res.toString();
executed 12489 times by 5 tests: return res.toString();
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
12489
1432 }
never executed: end of block
0
1433-
1434-
1435 quint32 idx, size;-
1436 switch (type) {-
1437 case
executed 4473 times by 4 tests: case QLocale::LongFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
QLocale::LongFormat:
executed 4473 times by 4 tests: case QLocale::LongFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
4473
1438 idx = d->m_data->m_long_month_names_idx;-
1439 size = d->m_data->m_long_month_names_size;-
1440 break;
executed 4473 times by 4 tests: break;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
4473
1441 case
executed 23389 times by 11 tests: case QLocale::ShortFormat:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
QLocale::ShortFormat:
executed 23389 times by 11 tests: case QLocale::ShortFormat:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
23389
1442 idx = d->m_data->m_short_month_names_idx;-
1443 size = d->m_data->m_short_month_names_size;-
1444 break;
executed 23389 times by 11 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
23389
1445 case
never executed: case QLocale::NarrowFormat:
QLocale::NarrowFormat:
never executed: case QLocale::NarrowFormat:
0
1446 idx = d->m_data->m_narrow_month_names_idx;-
1447 size = d->m_data->m_narrow_month_names_size;-
1448 break;
never executed: break;
0
1449 default
never executed: default:
:
never executed: default:
0
1450 return
never executed: return QString();
QString();
never executed: return QString();
0
1451 }-
1452 return
executed 27862 times by 12 tests: return getLocaleListData(months_data + idx, size, month - 1);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
getLocaleListData(months_data + idx, size, month - 1);
executed 27862 times by 12 tests: return getLocaleListData(months_data + idx, size, month - 1);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
27862
1453}-
1454QString QLocale::standaloneMonthName(int month, FormatType type) const-
1455{-
1456 if (month < 1
month < 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 1773 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
|| month > 12
month > 12Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDate
FALSEevaluated 1772 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
)
1-1773
1457 return
executed 2 times by 1 test: return QString();
Executed by:
  • tst_QDate
QString();
executed 2 times by 1 test: return QString();
Executed by:
  • tst_QDate
2
1458-
1459-
1460 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 537 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
FALSEevaluated 1235 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
) {
537-1235
1461 QVariant res = systemLocale()->query(type == LongFormat-
1462 ? QSystemLocale::StandaloneMonthNameLong : QSystemLocale::StandaloneMonthNameShort,-
1463 month);-
1464 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 537 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
FALSEnever evaluated
)
0-537
1465 return
executed 537 times by 3 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
res.toString();
executed 537 times by 3 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
537
1466 }
never executed: end of block
0
1467-
1468-
1469 quint32 idx, size;-
1470 switch (type) {-
1471 case
executed 1211 times by 4 tests: case QLocale::LongFormat:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
QLocale::LongFormat:
executed 1211 times by 4 tests: case QLocale::LongFormat:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
1211
1472 idx = d->m_data->m_standalone_long_month_names_idx;-
1473 size = d->m_data->m_standalone_long_month_names_size;-
1474 break;
executed 1211 times by 4 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
1211
1475 case
executed 24 times by 1 test: case QLocale::ShortFormat:
Executed by:
  • tst_QDate
QLocale::ShortFormat:
executed 24 times by 1 test: case QLocale::ShortFormat:
Executed by:
  • tst_QDate
24
1476 idx = d->m_data->m_standalone_short_month_names_idx;-
1477 size = d->m_data->m_standalone_short_month_names_size;-
1478 break;
executed 24 times by 1 test: break;
Executed by:
  • tst_QDate
24
1479 case
never executed: case QLocale::NarrowFormat:
QLocale::NarrowFormat:
never executed: case QLocale::NarrowFormat:
0
1480 idx = d->m_data->m_standalone_narrow_month_names_idx;-
1481 size = d->m_data->m_standalone_narrow_month_names_size;-
1482 break;
never executed: break;
0
1483 default
never executed: default:
:
never executed: default:
0
1484 return
never executed: return QString();
QString();
never executed: return QString();
0
1485 }-
1486 QString name = getLocaleListData(months_data + idx, size, month - 1);-
1487 if (name.isEmpty()
name.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1235 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
)
0-1235
1488 return
never executed: return monthName(month, type);
monthName(month, type);
never executed: return monthName(month, type);
0
1489 return
executed 1235 times by 4 tests: return name;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
name;
executed 1235 times by 4 tests: return name;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTimeEdit
1235
1490}-
1491QString QLocale::dayName(int day, FormatType type) const-
1492{-
1493 if (day < 1
day < 1Description
TRUEnever evaluated
FALSEevaluated 10731 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
|| day > 7
day > 7Description
TRUEnever evaluated
FALSEevaluated 10731 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
)
0-10731
1494 return
never executed: return QString();
QString();
never executed: return QString();
0
1495-
1496-
1497 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 1306 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
FALSEevaluated 9425 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
) {
1306-9425
1498 QVariant res = systemLocale()->query(type == LongFormat-
1499 ? QSystemLocale::DayNameLong : QSystemLocale::DayNameShort,-
1500 day);-
1501 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 1306 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
FALSEnever evaluated
)
0-1306
1502 return
executed 1306 times by 6 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
res.toString();
executed 1306 times by 6 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
1306
1503 }
never executed: end of block
0
1504-
1505 if (day == 7
day == 7Description
TRUEevaluated 1340 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
FALSEevaluated 8085 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
)
1340-8085
1506 day = 0;
executed 1340 times by 6 tests: day = 0;
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
1340
1507-
1508 quint32 idx, size;-
1509 switch (type) {-
1510 case
executed 7160 times by 4 tests: case QLocale::LongFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
QLocale::LongFormat:
executed 7160 times by 4 tests: case QLocale::LongFormat:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
7160
1511 idx = d->m_data->m_long_day_names_idx;-
1512 size = d->m_data->m_long_day_names_size;-
1513 break;
executed 7160 times by 4 tests: break;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
7160
1514 case
executed 2265 times by 11 tests: case QLocale::ShortFormat:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
QLocale::ShortFormat:
executed 2265 times by 11 tests: case QLocale::ShortFormat:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
2265
1515 idx = d->m_data->m_short_day_names_idx;-
1516 size = d->m_data->m_short_day_names_size;-
1517 break;
executed 2265 times by 11 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
2265
1518 case
never executed: case QLocale::NarrowFormat:
QLocale::NarrowFormat:
never executed: case QLocale::NarrowFormat:
0
1519 idx = d->m_data->m_narrow_day_names_idx;-
1520 size = d->m_data->m_narrow_day_names_size;-
1521 break;
never executed: break;
0
1522 default
never executed: default:
:
never executed: default:
0
1523 return
never executed: return QString();
QString();
never executed: return QString();
0
1524 }-
1525 return
executed 9425 times by 12 tests: return getLocaleListData(days_data + idx, size, day);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
getLocaleListData(days_data + idx, size, day);
executed 9425 times by 12 tests: return getLocaleListData(days_data + idx, size, day);
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
  • tst_qmakelib
9425
1526}-
1527QString QLocale::standaloneDayName(int day, FormatType type) const-
1528{-
1529 if (day < 1
day < 1Description
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QDate
|| day > 7
day > 7Description
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QDate
)
0-28
1530 return
never executed: return QString();
QString();
never executed: return QString();
0
1531-
1532-
1533 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QDate
FALSEnever evaluated
) {
0-28
1534 QVariant res = systemLocale()->query(type == LongFormat-
1535 ? QSystemLocale::DayNameLong : QSystemLocale::DayNameShort,-
1536 day);-
1537 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QDate
FALSEnever evaluated
)
0-28
1538 return
executed 28 times by 1 test: return res.toString();
Executed by:
  • tst_QDate
res.toString();
executed 28 times by 1 test: return res.toString();
Executed by:
  • tst_QDate
28
1539 }
never executed: end of block
0
1540-
1541 if (day == 7
day == 7Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1542 day = 0;
never executed: day = 0;
0
1543-
1544 quint32 idx, size;-
1545 switch (type) {-
1546 case
never executed: case QLocale::LongFormat:
QLocale::LongFormat:
never executed: case QLocale::LongFormat:
0
1547 idx = d->m_data->m_standalone_long_day_names_idx;-
1548 size = d->m_data->m_standalone_long_day_names_size;-
1549 break;
never executed: break;
0
1550 case
never executed: case QLocale::ShortFormat:
QLocale::ShortFormat:
never executed: case QLocale::ShortFormat:
0
1551 idx = d->m_data->m_standalone_short_day_names_idx;-
1552 size = d->m_data->m_standalone_short_day_names_size;-
1553 break;
never executed: break;
0
1554 case
never executed: case QLocale::NarrowFormat:
QLocale::NarrowFormat:
never executed: case QLocale::NarrowFormat:
0
1555 idx = d->m_data->m_standalone_narrow_day_names_idx;-
1556 size = d->m_data->m_standalone_narrow_day_names_size;-
1557 break;
never executed: break;
0
1558 default
never executed: default:
:
never executed: default:
0
1559 return
never executed: return QString();
QString();
never executed: return QString();
0
1560 }-
1561 QString name = getLocaleListData(days_data + idx, size, day);-
1562 if (name.isEmpty()
name.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1563 return
never executed: return dayName(day == 0 ? 7 : day, type);
dayName(day == 0 ? 7 : day, type);
never executed: return dayName(day == 0 ? 7 : day, type);
0
1564 return
never executed: return name;
name;
never executed: return name;
0
1565}-
1566-
1567-
1568-
1569-
1570-
1571-
1572Qt::DayOfWeek QLocale::firstDayOfWeek() const-
1573{-
1574-
1575 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
) {
22-37
1576 QVariant res = systemLocale()->query(QSystemLocale::FirstDayOfWeek, QVariant());-
1577 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
FALSEnever evaluated
)
0-22
1578 return
executed 22 times by 2 tests: return static_cast<Qt::DayOfWeek>(res.toUInt());
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
static_cast<Qt::DayOfWeek>(res.toUInt());
executed 22 times by 2 tests: return static_cast<Qt::DayOfWeek>(res.toUInt());
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
22
1579 }
never executed: end of block
0
1580-
1581 return
executed 37 times by 3 tests: return static_cast<Qt::DayOfWeek>(d->m_data->m_first_day_of_week);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
static_cast<Qt::DayOfWeek>(d->m_data->m_first_day_of_week);
executed 37 times by 3 tests: return static_cast<Qt::DayOfWeek>(d->m_data->m_first_day_of_week);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
37
1582}-
1583-
1584QLocale::MeasurementSystem QLocalePrivate::measurementSystem() const-
1585{-
1586 for (int i = 0; i < ImperialMeasurementSystemsCount
i < ImperialMe...ntSystemsCountDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
FALSEnever evaluated
; ++i) {
0-2
1587 if (ImperialMeasurementSystems[i].languageId == m_data->m_language_id
ImperialMeasur...>m_language_idDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
FALSEnever evaluated
0-2
1588 && ImperialMeasurementSystems[i].countryId == m_data->m_country_id
ImperialMeasur...->m_country_idDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
FALSEnever evaluated
) {
0-2
1589 return
executed 2 times by 1 test: return ImperialMeasurementSystems[i].system;
Executed by:
  • tst_QPrinter
ImperialMeasurementSystems[i].system;
executed 2 times by 1 test: return ImperialMeasurementSystems[i].system;
Executed by:
  • tst_QPrinter
2
1590 }-
1591 }
never executed: end of block
0
1592 return
never executed: return QLocale::MetricSystem;
QLocale::MetricSystem;
never executed: return QLocale::MetricSystem;
0
1593}-
1594-
1595-
1596-
1597-
1598-
1599-
1600QList<Qt::DayOfWeek> QLocale::weekdays() const-
1601{-
1602-
1603 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1604 QVariant res = systemLocale()->query(QSystemLocale::Weekdays, QVariant());-
1605 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1606 return
never executed: return static_cast<QList<Qt::DayOfWeek> >(res.value<QList<Qt::DayOfWeek> >());
static_cast<QList<Qt::DayOfWeek> >(res.value<QList<Qt::DayOfWeek> >());
never executed: return static_cast<QList<Qt::DayOfWeek> >(res.value<QList<Qt::DayOfWeek> >());
0
1607 }
never executed: end of block
0
1608-
1609 QList<Qt::DayOfWeek> weekdays;-
1610 quint16 weekendStart = d->m_data->m_weekend_start;-
1611 quint16 weekendEnd = d->m_data->m_weekend_end;-
1612 for (int day = Qt::Monday; day <= Qt::Sunday
day <= Qt::SundayDescription
TRUEnever evaluated
FALSEnever evaluated
; day++) {
0
1613 if ((weekendEnd >= weekendStart
weekendEnd >= weekendStartDescription
TRUEnever evaluated
FALSEnever evaluated
&& (day < weekendStart
day < weekendStartDescription
TRUEnever evaluated
FALSEnever evaluated
|| day > weekendEnd
day > weekendEndDescription
TRUEnever evaluated
FALSEnever evaluated
)) ||
0
1614 (weekendEnd < weekendStart
weekendEnd < weekendStartDescription
TRUEnever evaluated
FALSEnever evaluated
&& (day > weekendEnd
day > weekendEndDescription
TRUEnever evaluated
FALSEnever evaluated
&& day < weekendStart
day < weekendStartDescription
TRUEnever evaluated
FALSEnever evaluated
)))
0
1615 weekdays << static_cast<Qt::DayOfWeek>(day);
never executed: weekdays << static_cast<Qt::DayOfWeek>(day);
0
1616 }
never executed: end of block
0
1617 return
never executed: return weekdays;
weekdays;
never executed: return weekdays;
0
1618}-
1619-
1620-
1621-
1622-
1623-
1624-
1625QLocale::MeasurementSystem QLocale::measurementSystem() const-
1626{-
1627-
1628 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
) {
2
1629 QVariant res = systemLocale()->query(QSystemLocale::MeasurementSystem, QVariant());-
1630 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
FALSEnever evaluated
)
0-2
1631 return
executed 2 times by 1 test: return MeasurementSystem(res.toInt());
Executed by:
  • tst_QPrinter
MeasurementSystem(res.toInt());
executed 2 times by 1 test: return MeasurementSystem(res.toInt());
Executed by:
  • tst_QPrinter
2
1632 }
never executed: end of block
0
1633-
1634-
1635 return
executed 2 times by 1 test: return d->measurementSystem();
Executed by:
  • tst_QPrinter
d->measurementSystem();
executed 2 times by 1 test: return d->measurementSystem();
Executed by:
  • tst_QPrinter
2
1636}-
1637-
1638-
1639-
1640-
1641-
1642-
1643Qt::LayoutDirection QLocale::textDirection() const-
1644{-
1645 switch (script()) {-
1646 case
never executed: case QLocale::ArabicScript:
QLocale::ArabicScript:
never executed: case QLocale::ArabicScript:
0
1647 case
never executed: case QLocale::AvestanScript:
QLocale::AvestanScript:
never executed: case QLocale::AvestanScript:
0
1648 case
never executed: case QLocale::CypriotScript:
QLocale::CypriotScript:
never executed: case QLocale::CypriotScript:
0
1649 case
never executed: case QLocale::HebrewScript:
QLocale::HebrewScript:
never executed: case QLocale::HebrewScript:
0
1650 case
never executed: case QLocale::ImperialAramaicScript:
QLocale::ImperialAramaicScript:
never executed: case QLocale::ImperialAramaicScript:
0
1651 case
never executed: case QLocale::InscriptionalPahlaviScript:
QLocale::InscriptionalPahlaviScript:
never executed: case QLocale::InscriptionalPahlaviScript:
0
1652 case
never executed: case QLocale::InscriptionalParthianScript:
QLocale::InscriptionalParthianScript:
never executed: case QLocale::InscriptionalParthianScript:
0
1653 case
never executed: case QLocale::KharoshthiScript:
QLocale::KharoshthiScript:
never executed: case QLocale::KharoshthiScript:
0
1654 case
never executed: case QLocale::LydianScript:
QLocale::LydianScript:
never executed: case QLocale::LydianScript:
0
1655 case
never executed: case QLocale::MandaeanScript:
QLocale::MandaeanScript:
never executed: case QLocale::MandaeanScript:
0
1656 case
never executed: case QLocale::ManichaeanScript:
QLocale::ManichaeanScript:
never executed: case QLocale::ManichaeanScript:
0
1657 case
never executed: case QLocale::MendeKikakuiScript:
QLocale::MendeKikakuiScript:
never executed: case QLocale::MendeKikakuiScript:
0
1658 case
never executed: case QLocale::MeroiticCursiveScript:
QLocale::MeroiticCursiveScript:
never executed: case QLocale::MeroiticCursiveScript:
0
1659 case
never executed: case QLocale::MeroiticScript:
QLocale::MeroiticScript:
never executed: case QLocale::MeroiticScript:
0
1660 case
never executed: case QLocale::NabataeanScript:
QLocale::NabataeanScript:
never executed: case QLocale::NabataeanScript:
0
1661 case
never executed: case QLocale::NkoScript:
QLocale::NkoScript:
never executed: case QLocale::NkoScript:
0
1662 case
never executed: case QLocale::OldNorthArabianScript:
QLocale::OldNorthArabianScript:
never executed: case QLocale::OldNorthArabianScript:
0
1663 case
never executed: case QLocale::OldSouthArabianScript:
QLocale::OldSouthArabianScript:
never executed: case QLocale::OldSouthArabianScript:
0
1664 case
never executed: case QLocale::OrkhonScript:
QLocale::OrkhonScript:
never executed: case QLocale::OrkhonScript:
0
1665 case
never executed: case QLocale::PalmyreneScript:
QLocale::PalmyreneScript:
never executed: case QLocale::PalmyreneScript:
0
1666 case
never executed: case QLocale::PhoenicianScript:
QLocale::PhoenicianScript:
never executed: case QLocale::PhoenicianScript:
0
1667 case
never executed: case QLocale::PsalterPahlaviScript:
QLocale::PsalterPahlaviScript:
never executed: case QLocale::PsalterPahlaviScript:
0
1668 case
never executed: case QLocale::SamaritanScript:
QLocale::SamaritanScript:
never executed: case QLocale::SamaritanScript:
0
1669 case
never executed: case QLocale::SyriacScript:
QLocale::SyriacScript:
never executed: case QLocale::SyriacScript:
0
1670 case
never executed: case QLocale::ThaanaScript:
QLocale::ThaanaScript:
never executed: case QLocale::ThaanaScript:
0
1671 return
never executed: return Qt::RightToLeft;
Qt::RightToLeft;
never executed: return Qt::RightToLeft;
0
1672 default
executed 33 times by 33 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QRadioButton
  • ...
:
executed 33 times by 33 tests: default:
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QRadioButton
  • ...
33
1673 break;
executed 33 times by 33 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QRadioButton
  • ...
33
1674 }-
1675 return
executed 33 times by 33 tests: return Qt::LeftToRight;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QRadioButton
  • ...
Qt::LeftToRight;
executed 33 times by 33 tests: return Qt::LeftToRight;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGroupBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QRadioButton
  • ...
33
1676}-
1677QString QLocale::toUpper(const QString &str) const-
1678{-
1679-
1680 bool ok = true;-
1681 QString result = QIcu::toUpper(d->bcp47Name('_'), str, &ok);-
1682 if (ok
okDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
)
0-3
1683 return
executed 3 times by 1 test: return result;
Executed by:
  • tst_QString
result;
executed 3 times by 1 test: return result;
Executed by:
  • tst_QString
3
1684-
1685-
1686 return
never executed: return str.toUpper();
str.toUpper();
never executed: return str.toUpper();
0
1687}-
1688QString QLocale::toLower(const QString &str) const-
1689{-
1690-
1691 bool ok = true;-
1692 const QString result = QIcu::toLower(d->bcp47Name('_'), str, &ok);-
1693 if (ok
okDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QString
FALSEnever evaluated
)
0-5
1694 return
executed 5 times by 1 test: return result;
Executed by:
  • tst_QString
result;
executed 5 times by 1 test: return result;
Executed by:
  • tst_QString
5
1695-
1696-
1697 return
never executed: return str.toLower();
str.toLower();
never executed: return str.toLower();
0
1698}-
1699QString QLocale::amText() const-
1700{-
1701-
1702 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 744 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
FALSEevaluated 2438 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
) {
744-2438
1703 QVariant res = systemLocale()->query(QSystemLocale::AMText, QVariant());-
1704 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 744 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
FALSEnever evaluated
)
0-744
1705 return
executed 744 times by 5 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
res.toString();
executed 744 times by 5 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
744
1706 }
never executed: end of block
0
1707-
1708 return
executed 2438 times by 11 tests: return getLocaleData(am_data + d->m_data->m_am_idx, d->m_data->m_am_size);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
getLocaleData(am_data + d->m_data->m_am_idx, d->m_data->m_am_size);
executed 2438 times by 11 tests: return getLocaleData(am_data + d->m_data->m_am_idx, d->m_data->m_am_size);
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
2438
1709}-
1710QString QLocale::pmText() const-
1711{-
1712-
1713 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEevaluated 178 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
FALSEevaluated 1315 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
) {
178-1315
1714 QVariant res = systemLocale()->query(QSystemLocale::PMText, QVariant());-
1715 if (!res.isNull()
!res.isNull()Description
TRUEevaluated 178 times by 4 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
FALSEnever evaluated
)
0-178
1716 return
executed 178 times by 4 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
res.toString();
executed 178 times by 4 tests: return res.toString();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
178
1717 }
never executed: end of block
0
1718-
1719 return
executed 1315 times by 10 tests: return getLocaleData(pm_data + d->m_data->m_pm_idx, d->m_data->m_pm_size);
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
getLocaleData(pm_data + d->m_data->m_pm_idx, d->m_data->m_pm_size);
executed 1315 times by 10 tests: return getLocaleData(pm_data + d->m_data->m_pm_idx, d->m_data->m_pm_size);
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
1315
1720}-
1721-
1722-
1723QString QLocalePrivate::dateTimeToString(const QString &format, const QDateTime &datetime,-
1724 const QDate &dateOnly, const QTime &timeOnly,-
1725 const QLocale *q) const-
1726{-
1727 QDate date;-
1728 QTime time;-
1729 bool formatDate = false;-
1730 bool formatTime = false;-
1731 if (datetime.isValid()
datetime.isValid()Description
TRUEevaluated 10166 times by 29 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • ...
FALSEevaluated 28011 times by 8 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
) {
10166-28011
1732 date = datetime.date();-
1733 time = datetime.time();-
1734 formatDate = true;-
1735 formatTime = true;-
1736 }
executed 10166 times by 29 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • ...
else if (dateOnly.isValid()
dateOnly.isValid()Description
TRUEevaluated 13913 times by 7 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 14098 times by 7 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
) {
10166-14098
1737 date = dateOnly;-
1738 formatDate = true;-
1739 }
executed 13913 times by 7 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QVariant
else if (timeOnly.isValid()
timeOnly.isValid()Description
TRUEevaluated 14094 times by 6 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QTime
  • tst_QVariant
) {
4-14094
1740 time = timeOnly;-
1741 formatTime = true;-
1742 }
executed 14094 times by 6 tests: end of block
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
else {
14094
1743 return
executed 4 times by 3 tests: return QString();
Executed by:
  • tst_QDate
  • tst_QTime
  • tst_QVariant
QString();
executed 4 times by 3 tests: return QString();
Executed by:
  • tst_QDate
  • tst_QTime
  • tst_QVariant
4
1744 }-
1745-
1746 QString result;-
1747-
1748 int i = 0;-
1749 while (i < format.size()
i < format.size()Description
TRUEevaluated 271711 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 38173 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
) {
38173-271711
1750 if (format.at(i).unicode() == '\''
format.at(i).unicode() == '\''Description
TRUEevaluated 727 times by 6 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
FALSEevaluated 270984 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
) {
727-270984
1751 result.append(qt_readEscapedFormatString(format, &i));-
1752 continue;
executed 727 times by 6 tests: continue;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
727
1753 }-
1754-
1755 const QChar c = format.at(i);-
1756 int repeat = qt_repeatCount(format, i);-
1757 bool used = false;-
1758 if (formatDate
formatDateDescription
TRUEevaluated 172364 times by 31 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 98620 times by 6 tests
Evaluated by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QTime
  • tst_QVariant
) {
98620-172364
1759 switch (c.unicode()) {-
1760 case
executed 22549 times by 31 tests: case 'y':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
'y':
executed 22549 times by 31 tests: case 'y':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
22549
1761 used = true;-
1762 if (repeat >= 4
repeat >= 4Description
TRUEevaluated 18777 times by 21 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
FALSEevaluated 3772 times by 16 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
)
3772-18777
1763 repeat = 4;
executed 18777 times by 21 tests: repeat = 4;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
18777
1764 else if (repeat >= 2
repeat >= 2Description
TRUEevaluated 3772 times by 16 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
FALSEnever evaluated
)
0-3772
1765 repeat = 2;
executed 3772 times by 16 tests: repeat = 2;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
3772
1766-
1767 switch (repeat) {-
1768 case
executed 18777 times by 21 tests: case 4:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
4:
executed 18777 times by 21 tests: case 4:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
{
18777
1769 const int yr = date.year();-
1770 const int len = (
(yr < 0)Description
TRUEevaluated 440 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 18337 times by 21 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
yr < 0)
(yr < 0)Description
TRUEevaluated 440 times by 2 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
FALSEevaluated 18337 times by 21 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
? 5 : 4;
440-18337
1771 result.append(m_data->longLongToString(yr, -1, 10, len, QLocaleData::ZeroPadded));-
1772 break;
executed 18777 times by 21 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
18777
1773 }-
1774 case
executed 3772 times by 16 tests: case 2:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
2:
executed 3772 times by 16 tests: case 2:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
3772
1775 result.append(m_data->longLongToString(date.year() % 100, -1, 10, 2,-
1776 QLocaleData::ZeroPadded));-
1777 break;
executed 3772 times by 16 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
3772
1778 default
never executed: default:
:
never executed: default:
0
1779 repeat = 1;-
1780 result.append(c);-
1781 break;
never executed: break;
0
1782 }-
1783 break;
executed 22549 times by 31 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
22549
1784-
1785 case
executed 22616 times by 31 tests: case 'M':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
'M':
executed 22616 times by 31 tests: case 'M':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
22616
1786 used = true;-
1787 repeat = qMin(repeat, 4);-
1788 switch (repeat) {-
1789 case
executed 3280 times by 13 tests: case 1:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
1:
executed 3280 times by 13 tests: case 1:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
3280
1790 result.append(m_data->longLongToString(date.month()));-
1791 break;
executed 3280 times by 13 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
3280
1792 case
executed 17608 times by 19 tests: case 2:
Executed by:
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
2:
executed 17608 times by 19 tests: case 2:
Executed by:
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
17608
1793 result.append(m_data->longLongToString(date.month(), -1, 10, 2, QLocaleData::ZeroPadded));-
1794 break;
executed 17608 times by 19 tests: break;
Executed by:
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
17608
1795 case
executed 1611 times by 8 tests: case 3:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
3:
executed 1611 times by 8 tests: case 3:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
1611
1796 result.append(q->monthName(date.month(), QLocale::ShortFormat));-
1797 break;
executed 1611 times by 8 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
1611
1798 case
executed 117 times by 4 tests: case 4:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
4:
executed 117 times by 4 tests: case 4:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
117
1799 result.append(q->monthName(date.month(), QLocale::LongFormat));-
1800 break;
executed 117 times by 4 tests: break;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
117
1801 }-
1802 break;
executed 22616 times by 31 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
22616
1803-
1804 case
executed 23364 times by 31 tests: case 'd':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
'd':
executed 23364 times by 31 tests: case 'd':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
23364
1805 used = true;-
1806 repeat = qMin(repeat, 4);-
1807 switch (repeat) {-
1808 case
executed 3504 times by 15 tests: case 1:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
1:
executed 3504 times by 15 tests: case 1:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
3504
1809 result.append(m_data->longLongToString(date.day()));-
1810 break;
executed 3504 times by 15 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QStyleSheetStyle
  • tst_languageChange
  • tst_qlogging - unknown status
  • tst_qmessagehandler
3504
1811 case
executed 18651 times by 22 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
2:
executed 18651 times by 22 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
18651
1812 result.append(m_data->longLongToString(date.day(), -1, 10, 2, QLocaleData::ZeroPadded));-
1813 break;
executed 18651 times by 22 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_QXmlStream
  • tst_qlogging - unknown status
  • tst_qmessagehandler
  • tst_selftests - unknown status
18651
1814 case
executed 727 times by 6 tests: case 3:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
3:
executed 727 times by 6 tests: case 3:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
727
1815 result.append(q->dayName(date.dayOfWeek(), QLocale::ShortFormat));-
1816 break;
executed 727 times by 6 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDateTimeEdit
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QXmlStream
727
1817 case
executed 482 times by 4 tests: case 4:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
4:
executed 482 times by 4 tests: case 4:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
482
1818 result.append(q->dayName(date.dayOfWeek(), QLocale::LongFormat));-
1819 break;
executed 482 times by 4 tests: break;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
482
1820 }-
1821 break;
executed 23364 times by 31 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
23364
1822-
1823 default
executed 103835 times by 31 tests: default:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
:
executed 103835 times by 31 tests: default:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
103835
1824 break;
executed 103835 times by 31 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
103835
1825 }-
1826 }-
1827 if (!used
!usedDescription
TRUEevaluated 202455 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 68529 times by 31 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
&& formatTime
formatTimeDescription
TRUEevaluated 174461 times by 30 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
  • ...
FALSEevaluated 27994 times by 7 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QVariant
) {
27994-202455
1828 switch (c.unicode()) {-
1829 case
executed 21463 times by 26 tests: case 'h':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_languageChange
  • ...
'h':
executed 21463 times by 26 tests: case 'h':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_languageChange
  • ...
{
21463
1830 used = true;-
1831 repeat = qMin(repeat, 2);-
1832 int hour = time.hour();-
1833 if (timeFormatContainsAP(format)
timeFormatContainsAP(format)Description
TRUEevaluated 3589 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
FALSEevaluated 17874 times by 18 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
) {
3589-17874
1834 if (hour > 12
hour > 12Description
TRUEevaluated 1182 times by 9 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
FALSEevaluated 2407 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
)
1182-2407
1835 hour -= 12;
executed 1182 times by 9 tests: hour -= 12;
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
1182
1836 else if (hour == 0
hour == 0Description
TRUEevaluated 156 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemModel
FALSEevaluated 2251 times by 10 tests
Evaluated by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
)
156-2251
1837 hour = 12;
executed 156 times by 5 tests: hour = 12;
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QItemModel
156
1838 }
executed 3589 times by 12 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
3589
1839-
1840 switch (repeat) {-
1841 case
executed 2935 times by 12 tests: case 1:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
1:
executed 2935 times by 12 tests: case 1:
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
2935
1842 result.append(m_data->longLongToString(hour));-
1843 break;
executed 2935 times by 12 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
2935
1844 case
executed 18528 times by 18 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
2:
executed 18528 times by 18 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
18528
1845 result.append(m_data->longLongToString(hour, -1, 10, 2, QLocaleData::ZeroPadded));-
1846 break;
executed 18528 times by 18 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
18528
1847 }-
1848 break;
executed 21463 times by 26 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_languageChange
  • ...
21463
1849 }-
1850 case
executed 185 times by 4 tests: case 'H':
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
  • tst_QTime
'H':
executed 185 times by 4 tests: case 'H':
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
  • tst_QTime
185
1851 used = true;-
1852 repeat = qMin(repeat, 2);-
1853 switch (repeat) {-
1854 case
never executed: case 1:
1:
never executed: case 1:
0
1855 result.append(m_data->longLongToString(time.hour()));-
1856 break;
never executed: break;
0
1857 case
executed 185 times by 4 tests: case 2:
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
  • tst_QTime
2:
executed 185 times by 4 tests: case 2:
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
  • tst_QTime
185
1858 result.append(m_data->longLongToString(time.hour(), -1, 10, 2, QLocaleData::ZeroPadded));-
1859 break;
executed 185 times by 4 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
  • tst_QTime
185
1860 }-
1861 break;
executed 185 times by 4 tests: break;
Executed by:
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNoDebug
  • tst_QTime
185
1862-
1863 case
executed 21448 times by 27 tests: case 'm':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
'm':
executed 21448 times by 27 tests: case 'm':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
21448
1864 used = true;-
1865 repeat = qMin(repeat, 2);-
1866 switch (repeat) {-
1867 case
executed 89 times by 2 tests: case 1:
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
1:
executed 89 times by 2 tests: case 1:
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
89
1868 result.append(m_data->longLongToString(time.minute()));-
1869 break;
executed 89 times by 2 tests: break;
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
89
1870 case
executed 21359 times by 27 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
2:
executed 21359 times by 27 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
21359
1871 result.append(m_data->longLongToString(time.minute(), -1, 10, 2, QLocaleData::ZeroPadded));-
1872 break;
executed 21359 times by 27 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
21359
1873 }-
1874 break;
executed 21448 times by 27 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
21448
1875-
1876 case
executed 18570 times by 19 tests: case 's':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
's':
executed 18570 times by 19 tests: case 's':
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
18570
1877 used = true;-
1878 repeat = qMin(repeat, 2);-
1879 switch (repeat) {-
1880 case
executed 83 times by 2 tests: case 1:
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
1:
executed 83 times by 2 tests: case 1:
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
83
1881 result.append(m_data->longLongToString(time.second()));-
1882 break;
executed 83 times by 2 tests: break;
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
83
1883 case
executed 18487 times by 19 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
2:
executed 18487 times by 19 tests: case 2:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
18487
1884 result.append(m_data->longLongToString(time.second(), -1, 10, 2, QLocaleData::ZeroPadded));-
1885 break;
executed 18487 times by 19 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
18487
1886 }-
1887 break;
executed 18570 times by 19 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileInfo
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • tst_selftests - unknown status
18570
1888-
1889 case
executed 763 times by 2 tests: case 'a':
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
'a':
executed 763 times by 2 tests: case 'a':
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
763
1890 used = true;-
1891 if (i + 1 < format.length()
i + 1 < format.length()Description
TRUEevaluated 725 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QTime
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QDateTimeEdit
&& format.at(i + 1).unicode() == 'p'
format.at(i + ...icode() == 'p'Description
TRUEevaluated 725 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QTime
FALSEnever evaluated
) {
0-725
1892 repeat = 2;-
1893 }
executed 725 times by 2 tests: end of block
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
else {
725
1894 repeat = 1;-
1895 }
executed 38 times by 1 test: end of block
Executed by:
  • tst_QDateTimeEdit
38
1896 result.append(time.hour() < 12 ? q->amText().toLower() : q->pmText().toLower());-
1897 break;
executed 763 times by 2 tests: break;
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
763
1898-
1899 case
executed 2870 times by 12 tests: case 'A':
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
'A':
executed 2870 times by 12 tests: case 'A':
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
2870
1900 used = true;-
1901 if (i + 1 < format.length()
i + 1 < format.length()Description
TRUEevaluated 2870 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
FALSEnever evaluated
&& format.at(i + 1).unicode() == 'P'
format.at(i + ...icode() == 'P'Description
TRUEevaluated 2870 times by 12 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
FALSEnever evaluated
) {
0-2870
1902 repeat = 2;-
1903 }
executed 2870 times by 12 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
else {
2870
1904 repeat = 1;-
1905 }
never executed: end of block
0
1906 result.append(time.hour() < 12 ? q->amText().toUpper() : q->pmText().toUpper());-
1907 break;
executed 2870 times by 12 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTime
  • tst_languageChange
2870
1908-
1909 case
executed 16505 times by 15 tests: case 'z':
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
'z':
executed 16505 times by 15 tests: case 'z':
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
16505
1910 used = true;-
1911 if (repeat >= 3
repeat >= 3Description
TRUEevaluated 16427 times by 15 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 78 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QTime
) {
78-16427
1912 repeat = 3;-
1913 }
executed 16427 times by 15 tests: end of block
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
else {
16427
1914 repeat = 1;-
1915 }
executed 78 times by 2 tests: end of block
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
78
1916 switch (repeat) {-
1917 case
executed 78 times by 2 tests: case 1:
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
1:
executed 78 times by 2 tests: case 1:
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
78
1918 result.append(m_data->longLongToString(time.msec()));-
1919 break;
executed 78 times by 2 tests: break;
Executed by:
  • tst_QDateTimeEdit
  • tst_QTime
78
1920 case
executed 16427 times by 15 tests: case 3:
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
3:
executed 16427 times by 15 tests: case 3:
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
16427
1921 result.append(m_data->longLongToString(time.msec(), -1, 10, 3, QLocaleData::ZeroPadded));-
1922 break;
executed 16427 times by 15 tests: break;
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
16427
1923 }-
1924 break;
executed 16505 times by 15 tests: break;
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
16505
1925-
1926 case
executed 2182 times by 15 tests: case 't':
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
't':
executed 2182 times by 15 tests: case 't':
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
2182
1927 used = true;-
1928 repeat = 1;-
1929-
1930 if (formatDate
formatDateDescription
TRUEevaluated 2171 times by 14 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_selftests - unknown status
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QTime
) {
11-2171
1931 result.append(datetime.timeZoneAbbreviation());-
1932 }
executed 2171 times by 14 tests: end of block
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QVariant
  • tst_selftests - unknown status
else {
2171
1933 result.append(QDateTime::currentDateTime().timeZoneAbbreviation());-
1934 }
executed 11 times by 2 tests: end of block
Executed by:
  • tst_QItemDelegate
  • tst_QTime
11
1935 break;
executed 2182 times by 15 tests: break;
Executed by:
  • tst_QAsn1Element
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QTime
  • tst_QVariant
  • tst_selftests - unknown status
2182
1936-
1937 default
executed 90475 times by 29 tests: default:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
:
executed 90475 times by 29 tests: default:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
90475
1938 break;
executed 90475 times by 29 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCompleter
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
  • tst_QVariant
  • tst_QXmlStream
  • ...
90475
1939 }-
1940 }-
1941 if (!used
!usedDescription
TRUEevaluated 118469 times by 31 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
  • ...
FALSEevaluated 152515 times by 32 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
) {
118469-152515
1942 result.append(QString(repeat, c));-
1943 }
executed 118469 times by 31 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • tst_QTime
  • ...
118469
1944 i += repeat;-
1945 }
executed 270984 times by 32 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
270984
1946-
1947 return
executed 38173 times by 32 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
result;
executed 38173 times by 32 tests: return result;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSslCertificate
  • tst_QStyleSheetStyle
  • ...
38173
1948}-
1949-
1950QString QLocaleData::doubleToString(double d, int precision, DoubleForm form,-
1951 int width, unsigned flags) const-
1952{-
1953 return
executed 110658 times by 55 tests: return doubleToString(m_zero, m_plus, m_minus, m_exponential, m_group, m_decimal, d, precision, form, width, flags);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
doubleToString(m_zero, m_plus, m_minus, m_exponential, m_group, m_decimal,
executed 110658 times by 55 tests: return doubleToString(m_zero, m_plus, m_minus, m_exponential, m_group, m_decimal, d, precision, form, width, flags);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
110658
1954 d, precision, form, width, flags);
executed 110658 times by 55 tests: return doubleToString(m_zero, m_plus, m_minus, m_exponential, m_group, m_decimal, d, precision, form, width, flags);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
110658
1955}-
1956-
1957QString QLocaleData::doubleToString(const QChar _zero, const QChar plus, const QChar minus,-
1958 const QChar exponential, const QChar group, const QChar decimal,-
1959 double d, int precision, DoubleForm form, int width, unsigned flags)-
1960{-
1961 if (precision < 0
precision < 0Description
TRUEevaluated 97985 times by 12 tests
Evaluated by:
  • tst_QColor
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
FALSEevaluated 12673 times by 47 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • ...
)
12673-97985
1962 precision = 6;
executed 97985 times by 12 tests: precision = 6;
Executed by:
  • tst_QColor
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
97985
1963 if (width < 0
width < 0Description
TRUEevaluated 7066 times by 48 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • ...
FALSEevaluated 103592 times by 11 tests
Evaluated by:
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QLCDNumber
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPrinter
  • tst_QString
  • tst_QTextDocument
  • tst_QToolButton
)
7066-103592
1964 width = 0;
executed 7066 times by 48 tests: width = 0;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QLabel
  • tst_QMetaType
  • ...
7066
1965-
1966 bool negative = false;-
1967 bool special_number = false;-
1968 QString num_str;-
1969-
1970-
1971 if (qt_is_inf(d)
qt_is_inf(d)Description
TRUEevaluated 550 times by 4 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QString
  • tst_QTextStream
  • tst_QVariant
FALSEevaluated 110108 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
) {
550-110108
1972 num_str = QString::fromLatin1("inf");-
1973 special_number = true;-
1974 negative = d < 0;-
1975 }
executed 550 times by 4 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QString
  • tst_QTextStream
  • tst_QVariant
else if (qt_is_nan(d)
qt_is_nan(d)Description
TRUEevaluated 262 times by 3 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QString
  • tst_QTextStream
FALSEevaluated 109846 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
) {
262-109846
1976 num_str = QString::fromLatin1("nan");-
1977 special_number = true;-
1978 }
executed 262 times by 3 tests: end of block
Executed by:
  • tst_QDBusMarshall
  • tst_QString
  • tst_QTextStream
262
1979-
1980-
1981 if (!special_number
!special_numberDescription
TRUEevaluated 109846 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEevaluated 812 times by 4 tests
Evaluated by:
  • tst_QDBusMarshall
  • tst_QString
  • tst_QTextStream
  • tst_QVariant
) {
812-109846
1982 int decpt, sign;-
1983 QString digits;-
1984-
1985 int mode;-
1986 if (form == DFDecimal
form == DFDecimalDescription
TRUEevaluated 2251 times by 20 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
FALSEevaluated 107595 times by 43 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
)
2251-107595
1987 mode = 3;
executed 2251 times by 20 tests: mode = 3;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
2251
1988 else-
1989 mode = 2;
executed 107595 times by 43 tests: mode = 2;
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
107595
1990-
1991-
1992-
1993-
1994-
1995-
1996-
1997 int pr = precision;-
1998 if (form == DFExponent
form == DFExponentDescription
TRUEevaluated 17 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 109829 times by 54 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
)
17-109829
1999 ++
executed 17 times by 3 tests: ++pr;
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
pr;
executed 17 times by 3 tests: ++pr;
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
17
2000-
2001 char *rve = 0;-
2002 char *buff = 0;-
2003 try {-
2004 digits = QLatin1String(qdtoa(d, mode, pr, &decpt, &sign, &rve, &buff));-
2005 }
executed 109846 times by 55 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
catch (...) {
109846
2006 if (buff != 0
buff != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2007 free(buff);
never executed: free(buff);
0
2008 throw;
never executed: throw;
0
2009 }-
2010 if (buff != 0
buff != 0Description
TRUEevaluated 71428 times by 53 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
FALSEevaluated 38418 times by 24 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QDoubleSpinBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSpinBox
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QTextLayout
  • tst_QTextList
  • tst_QTextStream
  • tst_QToolButton
  • tst_QVariant
  • tst_selftests - unknown status
)
38418-71428
2011 free(buff);
executed 71428 times by 53 tests: free(buff);
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
71428
2012-
2013 if (_zero.unicode() != '0'
_zero.unicode() != '0'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 109845 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
) {
1-109845
2014 ushort z = _zero.unicode() - '0';-
2015 for (int i = 0; i < digits.length()
i < digits.length()Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
; ++i)
1-7
2016 reinterpret_cast<
executed 7 times by 1 test: reinterpret_cast<ushort *>(digits.data())[i] += z;
Executed by:
  • tst_QString
ushort *>(digits.data())[i] += z;
executed 7 times by 1 test: reinterpret_cast<ushort *>(digits.data())[i] += z;
Executed by:
  • tst_QString
7
2017 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QString
1
2018-
2019 bool always_show_decpt = (flags & Alternate
flags & AlternateDescription
TRUEevaluated 4614 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 105232 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
|| flags & ForcePoint
flags & ForcePointDescription
TRUEnever evaluated
FALSEevaluated 105232 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
);
0-105232
2020 switch (form) {-
2021 case
executed 17 times by 3 tests: case DFExponent:
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
DFExponent:
executed 17 times by 3 tests: case DFExponent:
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
{
17
2022 num_str = exponentForm(_zero, decimal, exponential, group, plus, minus,-
2023 digits, decpt, precision, PMDecimalDigits,-
2024 always_show_decpt);-
2025 break;
executed 17 times by 3 tests: break;
Executed by:
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
17
2026 }-
2027 case
executed 2251 times by 20 tests: case DFDecimal:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
DFDecimal:
executed 2251 times by 20 tests: case DFDecimal:
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
{
2251
2028 num_str = decimalForm(_zero, decimal, group,-
2029 digits, decpt, precision, PMDecimalDigits,-
2030 always_show_decpt, flags & ThousandsGroup);-
2031 break;
executed 2251 times by 20 tests: break;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QByteDataBuffer
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsItemAnimation
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QTcpSocket
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QUdpSocket
  • tst_selftests - unknown status
2251
2032 }-
2033 case
executed 107578 times by 42 tests: case DFSignificantDigits:
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
DFSignificantDigits:
executed 107578 times by 42 tests: case DFSignificantDigits:
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
{
107578
2034 PrecisionMode mode = (
(flags & Alternate)Description
TRUEevaluated 4610 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 102968 times by 42 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
flags & Alternate)
(flags & Alternate)Description
TRUEevaluated 4610 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 102968 times by 42 tests
Evaluated by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
?
4610-102968
2035 PMSignificantDigits : PMChopTrailingZeros;-
2036-
2037 if (decpt != digits.length()
decpt != digits.length()Description
TRUEevaluated 54012 times by 31 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTextDocument
  • ...
FALSEevaluated 53566 times by 35 tests
Evaluated by:
  • tst_QBrush
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QString
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • ...
&& (decpt <= -4
decpt <= -4Description
TRUEevaluated 4438 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QGraphicsTransform
  • tst_QString
FALSEevaluated 49574 times by 31 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTextDocument
  • ...
|| decpt > precision
decpt > precisionDescription
TRUEevaluated 1897 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QTextStream
FALSEevaluated 47677 times by 31 tests
Evaluated by:
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QString
  • tst_QTextDocument
  • ...
))
1897-54012
2038 num_str = exponentForm(_zero, decimal, exponential, group, plus, minus,
executed 6335 times by 5 tests: num_str = exponentForm(_zero, decimal, exponential, group, plus, minus, digits, decpt, precision, mode, always_show_decpt);
Executed by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QTextStream
6335
2039 digits, decpt, precision, mode,
executed 6335 times by 5 tests: num_str = exponentForm(_zero, decimal, exponential, group, plus, minus, digits, decpt, precision, mode, always_show_decpt);
Executed by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QTextStream
6335
2040 always_show_decpt);
executed 6335 times by 5 tests: num_str = exponentForm(_zero, decimal, exponential, group, plus, minus, digits, decpt, precision, mode, always_show_decpt);
Executed by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QString
  • tst_QTextStream
6335
2041 else-
2042 num_str = decimalForm(_zero, decimal, group,
executed 101243 times by 42 tests: num_str = decimalForm(_zero, decimal, group, digits, decpt, precision, mode, always_show_decpt, flags & ThousandsGroup);
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
101243
2043 digits, decpt, precision, mode,
executed 101243 times by 42 tests: num_str = decimalForm(_zero, decimal, group, digits, decpt, precision, mode, always_show_decpt, flags & ThousandsGroup);
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
101243
2044 always_show_decpt, flags & ThousandsGroup);
executed 101243 times by 42 tests: num_str = decimalForm(_zero, decimal, group, digits, decpt, precision, mode, always_show_decpt, flags & ThousandsGroup);
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
101243
2045 break;
executed 107578 times by 42 tests: break;
Executed by:
  • tst_QBrush
  • tst_QByteArray
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLCDNumber
  • tst_QLabel
  • tst_QMetaType
  • tst_QOpenGlConfig
  • tst_QPageSize
  • tst_QPainter
  • tst_QPdfWriter
  • tst_QPlainTextEdit
  • tst_QPrinter
  • ...
107578
2046 }-
2047 }-
2048-
2049 negative = sign != 0
sign != 0Description
TRUEevaluated 22157 times by 15 tests
Evaluated by:
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QVariant
FALSEevaluated 87689 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
&& !isZero(d)
!isZero(d)Description
TRUEevaluated 22157 times by 15 tests
Evaluated by:
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QVariant
FALSEnever evaluated
;
0-87689
2050 }
executed 109846 times by 55 tests: end of block
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
109846
2051-
2052-
2053-
2054 if (flags & QLocaleData::ZeroPadded
flags & QLocal...ta::ZeroPaddedDescription
TRUEevaluated 4997 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 105661 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
4997-105661
2055 && !(flags & QLocaleData::LeftAdjusted)
!(flags & QLoc...:LeftAdjusted)Description
TRUEevaluated 2501 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2496 times by 1 test
Evaluated by:
  • tst_QString
2496-2501
2056 && !special_number
!special_numberDescription
TRUEevaluated 2309 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 192 times by 1 test
Evaluated by:
  • tst_QString
) {
192-2309
2057 int num_pad_chars = width - num_str.length();-
2058-
2059 if (negative
negativeDescription
TRUEevaluated 66 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2243 times by 1 test
Evaluated by:
  • tst_QString
66-2243
2060 || flags & QLocaleData::AlwaysShowSign
flags & QLocal...AlwaysShowSignDescription
TRUEevaluated 1120 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 1123 times by 1 test
Evaluated by:
  • tst_QString
1120-1123
2061 || flags & QLocaleData::BlankBeforePositive
flags & QLocal...BeforePositiveDescription
TRUEevaluated 560 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 563 times by 1 test
Evaluated by:
  • tst_QString
)
560-563
2062 --
executed 1746 times by 1 test: --num_pad_chars;
Executed by:
  • tst_QString
num_pad_chars;
executed 1746 times by 1 test: --num_pad_chars;
Executed by:
  • tst_QString
1746
2063-
2064 for (int i = 0; i < num_pad_chars
i < num_pad_charsDescription
TRUEevaluated 23653 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 2309 times by 1 test
Evaluated by:
  • tst_QString
; ++i)
2309-23653
2065 num_str.prepend(_zero);
executed 23653 times by 1 test: num_str.prepend(_zero);
Executed by:
  • tst_QString
23653
2066 }
executed 2309 times by 1 test: end of block
Executed by:
  • tst_QString
2309
2067-
2068-
2069 if (negative
negativeDescription
TRUEevaluated 22430 times by 15 tests
Evaluated by:
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QVariant
FALSEevaluated 88228 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
)
22430-88228
2070 num_str.prepend(minus);
executed 22430 times by 15 tests: num_str.prepend(minus);
Executed by:
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDoubleSpinBox
  • tst_QFont
  • tst_QGraphicsTransform
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextStream
  • tst_QVariant
22430
2071 else if (flags & QLocaleData::AlwaysShowSign
flags & QLocal...AlwaysShowSignDescription
TRUEevaluated 4738 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 83490 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
)
4738-83490
2072 num_str.prepend(plus);
executed 4738 times by 2 tests: num_str.prepend(plus);
Executed by:
  • tst_QString
  • tst_QTextStream
4738
2073 else if (flags & QLocaleData::BlankBeforePositive
flags & QLocal...BeforePositiveDescription
TRUEevaluated 2368 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 81122 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
)
2368-81122
2074 num_str.prepend(QLatin1Char(' '));
executed 2368 times by 1 test: num_str.prepend(QLatin1Char(' '));
Executed by:
  • tst_QString
2368
2075-
2076 if (flags & QLocaleData::CapitalEorX
flags & QLocal...a::CapitalEorXDescription
TRUEevaluated 4999 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QTextStream
FALSEevaluated 105659 times by 55 tests
Evaluated by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
)
4999-105659
2077 num_str = num_str.toUpper();
executed 4999 times by 2 tests: num_str = num_str.toUpper();
Executed by:
  • tst_QString
  • tst_QTextStream
4999
2078-
2079 return
executed 110658 times by 55 tests: return num_str;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
num_str;
executed 110658 times by 55 tests: return num_str;
Executed by:
  • tst_PlatformSocketEngine
  • tst_QAccessibility
  • tst_QBrush
  • tst_QByteArray
  • tst_QByteDataBuffer
  • tst_QColor
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDebug
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsItemAnimation
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • ...
110658
2080}-
2081-
2082QString QLocaleData::longLongToString(qlonglong l, int precision,-
2083 int base, int width,-
2084 unsigned flags) const-
2085{-
2086 return
executed 11724979 times by 448 tests: return longLongToString(m_zero, m_group, m_plus, m_minus, l, precision, base, width, flags);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
longLongToString(m_zero, m_group, m_plus, m_minus,
executed 11724979 times by 448 tests: return longLongToString(m_zero, m_group, m_plus, m_minus, l, precision, base, width, flags);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
11724979
2087 l, precision, base, width, flags);
executed 11724979 times by 448 tests: return longLongToString(m_zero, m_group, m_plus, m_minus, l, precision, base, width, flags);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
11724979
2088}-
2089-
2090QString QLocaleData::longLongToString(const QChar zero, const QChar group,-
2091 const QChar plus, const QChar minus,-
2092 qlonglong l, int precision,-
2093 int base, int width,-
2094 unsigned flags)-
2095{-
2096 bool precision_not_specified = false;-
2097 if (precision == -1
precision == -1Description
TRUEevaluated 11723779 times by 447 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
FALSEevaluated 7552 times by 7 tests
Evaluated by:
  • tst_QByteArray
  • tst_QDoubleSpinBox
  • tst_QGraphicsTransform
  • tst_QRegExp
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
) {
7552-11723779
2098 precision_not_specified = true;-
2099 precision = 1;-
2100 }
executed 11723779 times by 447 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
11723779
2101-
2102 bool negative = l < 0;-
2103 if (base != 10
base != 10Description
TRUEevaluated 2298 times by 18 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QChar
  • tst_QColor
  • tst_QGuiVariant
  • tst_QRawFont
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Utf8
  • tst_qlogging - unknown status
  • tst_qmakelib
FALSEevaluated 11729033 times by 447 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
) {
2298-11729033
2104-
2105 flags &= ~AlwaysShowSign;-
2106 flags &= ~BlankBeforePositive;-
2107 negative = false;-
2108 }
executed 2298 times by 18 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QChar
  • tst_QColor
  • tst_QGuiVariant
  • tst_QRawFont
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Utf8
  • tst_qlogging - unknown status
  • tst_qmakelib
2298
2109-
2110 QString num_str;-
2111 if (base == 10
base == 10Description
TRUEevaluated 11729033 times by 447 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
FALSEevaluated 2298 times by 18 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QChar
  • tst_QColor
  • tst_QGuiVariant
  • tst_QRawFont
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Utf8
  • tst_qlogging - unknown status
  • tst_qmakelib
)
2298-11729033
2112 num_str = qlltoa(l, base, zero);
executed 11729033 times by 447 tests: num_str = qlltoa(l, base, zero);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
11729033
2113 else-
2114 num_str = qulltoa(l, base, zero);
executed 2298 times by 18 tests: num_str = qulltoa(l, base, zero);
Executed by:
  • tst_NetworkSelfTest
  • tst_QChar
  • tst_QColor
  • tst_QGuiVariant
  • tst_QRawFont
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Utf8
  • tst_qlogging - unknown status
  • tst_qmakelib
2298
2115-
2116 uint cnt_thousand_sep = 0;-
2117 if (flags & ThousandsGroup
flags & ThousandsGroupDescription
TRUEevaluated 1893 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
FALSEevaluated 11729438 times by 448 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
&& base == 10
base == 10Description
TRUEevaluated 1892 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QString
) {
1-11729438
2118 for (int i = num_str.length() - 3; i > 0
i > 0Description
TRUEevaluated 247 times by 10 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
FALSEevaluated 1892 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
; i -= 3) {
247-1892
2119 num_str.insert(i, group);-
2120 ++cnt_thousand_sep;-
2121 }
executed 247 times by 10 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QFiledialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
247
2122 }
executed 1892 times by 23 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QSpinBox
  • tst_QString
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_languageChange
1892
2123-
2124 for (int i = num_str.length() ; i < precision
i < precisionDescription
TRUEevaluated 416137 times by 392 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
FALSEevaluated 11731331 times by 449 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
; ++i)
416137-11731331
2125 num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
executed 416137 times by 392 tests: num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QCheckBox
  • ...
416137
2126-
2127 if ((flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEevaluated 11731331 times by 449 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
|| flags & ShowBase
flags & ShowBaseDescription
TRUEnever evaluated
FALSEevaluated 11731331 times by 449 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
)
0-11731331
2128 && base == 8
base == 8Description
TRUEnever evaluated
FALSEnever evaluated
0
2129 && (num_str.isEmpty()
num_str.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
|| num_str[0].unicode() != QLatin1Char('0')
num_str[0].uni...atin1Char('0')Description
TRUEnever evaluated
FALSEnever evaluated
))
0
2130 num_str.prepend(QLatin1Char('0'));
never executed: num_str.prepend(QLatin1Char('0'));
0
2131-
2132-
2133-
2134 bool zero_padded = flags & ZeroPadded
flags & ZeroPaddedDescription
TRUEevaluated 135577 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
FALSEevaluated 11595754 times by 442 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
135577-11595754
2135 && !(flags & LeftAdjusted)
!(flags & LeftAdjusted)Description
TRUEevaluated 135577 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
FALSEnever evaluated
0-135577
2136 && precision_not_specified
precision_not_specifiedDescription
TRUEevaluated 135577 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
FALSEnever evaluated
;
0-135577
2137-
2138 if (zero_padded
zero_paddedDescription
TRUEevaluated 135577 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
FALSEevaluated 11595754 times by 442 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QByteArray
  • ...
) {
135577-11595754
2139 int num_pad_chars = width - num_str.length();-
2140-
2141-
2142 if (negative
negativeDescription
TRUEevaluated 458 times by 3 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QString
FALSEevaluated 135119 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
458-135119
2143 || flags & AlwaysShowSign
flags & AlwaysShowSignDescription
TRUEnever evaluated
FALSEevaluated 135119 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
0-135119
2144 || flags & BlankBeforePositive
flags & BlankBeforePositiveDescription
TRUEnever evaluated
FALSEevaluated 135119 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
)
0-135119
2145 --
executed 458 times by 3 tests: --num_pad_chars;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QString
num_pad_chars;
executed 458 times by 3 tests: --num_pad_chars;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QString
458
2146-
2147-
2148 if (base == 16
base == 16Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 135575 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
&& (flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
|| flags & ShowBase
flags & ShowBaseDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
))
0-135575
2149 num_pad_chars -= 2;
never executed: num_pad_chars -= 2;
0
2150-
2151 else if (base == 2
base == 2Description
TRUEnever evaluated
FALSEevaluated 135577 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
&& (flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEnever evaluated
|| flags & ShowBase
flags & ShowBaseDescription
TRUEnever evaluated
FALSEnever evaluated
))
0-135577
2152 num_pad_chars -= 2;
never executed: num_pad_chars -= 2;
0
2153-
2154 for (int i = 0; i < num_pad_chars
i < num_pad_charsDescription
TRUEevaluated 65310 times by 34 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • ...
FALSEevaluated 135577 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
; ++i)
65310-135577
2155 num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
executed 65310 times by 34 tests: num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • tst_QSslCertificate
  • ...
65310
2156 }
executed 135577 times by 37 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QMetaType
  • tst_QNetworkCacheMetaData
  • tst_QNetworkCookie
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNoDebug
  • tst_QSignalSpy
  • tst_QSqlQuery
  • tst_QSqlTableModel
  • ...
135577
2157-
2158 if (flags & CapitalEorX
flags & CapitalEorXDescription
TRUEnever evaluated
FALSEevaluated 11731331 times by 449 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
)
0-11731331
2159 num_str = num_str.toUpper();
never executed: num_str = num_str.toUpper();
0
2160-
2161 if (base == 16
base == 16Description
TRUEevaluated 2117 times by 17 tests
Evaluated by:
  • tst_QChar
  • tst_QColor
  • tst_QGuiVariant
  • tst_QRawFont
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Utf8
  • tst_qlogging - unknown status
  • tst_qmakelib
FALSEevaluated 11729214 times by 447 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
&& (flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEevaluated 2117 times by 17 tests
Evaluated by:
  • tst_QChar
  • tst_QColor
  • tst_QGuiVariant
  • tst_QRawFont
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Utf8
  • tst_qlogging - unknown status
  • tst_qmakelib
|| flags & ShowBase
flags & ShowBaseDescription
TRUEnever evaluated
FALSEevaluated 2117 times by 17 tests
Evaluated by:
  • tst_QChar
  • tst_QColor
  • tst_QGuiVariant
  • tst_QRawFont
  • tst_QSpinBox
  • tst_QSslSocket
  • tst_QStaticText
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextLayout
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Utf8
  • tst_qlogging - unknown status
  • tst_qmakelib
))
0-11729214
2162 num_str.prepend(QLatin1String(flags & UppercaseBase ? "0X" : "0x"));
never executed: num_str.prepend(QLatin1String(flags & UppercaseBase ? "0X" : "0x"));
0
2163 if (base == 2
base == 2Description
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QSpinBox
FALSEevaluated 11731322 times by 449 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
&& (flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QSpinBox
|| flags & ShowBase
flags & ShowBaseDescription
TRUEnever evaluated
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QSpinBox
))
0-11731322
2164 num_str.prepend(QLatin1String(flags & UppercaseBase ? "0B" : "0b"));
never executed: num_str.prepend(QLatin1String(flags & UppercaseBase ? "0B" : "0b"));
0
2165-
2166-
2167 if (negative
negativeDescription
TRUEevaluated 22295 times by 73 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDialog
  • tst_QEasingCurve
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFormLayout
  • tst_QFtp
  • ...
FALSEevaluated 11709036 times by 446 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • ...
)
22295-11709036
2168 num_str.prepend(minus);
executed 22295 times by 73 tests: num_str.prepend(minus);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QBuffer
  • tst_QByteArray
  • tst_QCache
  • tst_QCalendarWidget
  • tst_QColor
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDialog
  • tst_QEasingCurve
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFont
  • tst_QFormLayout
  • tst_QFtp
  • ...
22295
2169 else if (flags & AlwaysShowSign
flags & AlwaysShowSignDescription
TRUEevaluated 1914 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
FALSEevaluated 11707122 times by 446 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • ...
)
1914-11707122
2170 num_str.prepend(plus);
executed 1914 times by 4 tests: num_str.prepend(plus);
Executed by:
  • tst_QDoubleSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTextStream
1914
2171 else if (flags & BlankBeforePositive
flags & BlankBeforePositiveDescription
TRUEnever evaluated
FALSEevaluated 11707122 times by 446 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCache
  • ...
)
0-11707122
2172 num_str.prepend(QLatin1Char(' '));
never executed: num_str.prepend(QLatin1Char(' '));
0
2173-
2174 return
executed 11731331 times by 449 tests: return num_str;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
num_str;
executed 11731331 times by 449 tests: return num_str;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
11731331
2175}-
2176-
2177QString QLocaleData::unsLongLongToString(qulonglong l, int precision,-
2178 int base, int width,-
2179 unsigned flags) const-
2180{-
2181 return
executed 53284 times by 119 tests: return unsLongLongToString(m_zero, m_group, m_plus, l, precision, base, width, flags);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
unsLongLongToString(m_zero, m_group, m_plus,
executed 53284 times by 119 tests: return unsLongLongToString(m_zero, m_group, m_plus, l, precision, base, width, flags);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
53284
2182 l, precision, base, width, flags);
executed 53284 times by 119 tests: return unsLongLongToString(m_zero, m_group, m_plus, l, precision, base, width, flags);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
53284
2183}-
2184-
2185QString QLocaleData::unsLongLongToString(const QChar zero, const QChar group,-
2186 const QChar plus,-
2187 qulonglong l, int precision,-
2188 int base, int width,-
2189 unsigned flags)-
2190{-
2191 bool precision_not_specified = false;-
2192 if (precision == -1
precision == -1Description
TRUEevaluated 53284 times by 119 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
) {
0-53284
2193 precision_not_specified = true;-
2194 precision = 1;-
2195 }
executed 53284 times by 119 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
53284
2196-
2197 QString num_str = qulltoa(l, base, zero);-
2198-
2199 uint cnt_thousand_sep = 0;-
2200 if (flags & ThousandsGroup
flags & ThousandsGroupDescription
TRUEevaluated 440 times by 3 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTextStream
FALSEevaluated 52844 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
&& base == 10
base == 10Description
TRUEevaluated 440 times by 3 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTextStream
FALSEnever evaluated
) {
0-52844
2201 for (int i = num_str.length() - 3; i > 0
i > 0Description
TRUEevaluated 259 times by 3 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTextStream
FALSEevaluated 440 times by 3 tests
Evaluated by:
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTextStream
; i -=3) {
259-440
2202 num_str.insert(i, group);-
2203 ++cnt_thousand_sep;-
2204 }
executed 259 times by 3 tests: end of block
Executed by:
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTextStream
259
2205 }
executed 440 times by 3 tests: end of block
Executed by:
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QTextStream
440
2206-
2207 for (int i = num_str.length() ; i < precision
i < precisionDescription
TRUEevaluated 3531 times by 33 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QColumnView
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QStackedLayout
  • tst_QStateMachine
  • ...
FALSEevaluated 53284 times by 119 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
; ++i)
3531-53284
2208 num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
executed 3531 times by 33 tests: num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QColumnView
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageWriter
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QStackedLayout
  • tst_QStateMachine
  • ...
3531
2209-
2210 if ((flags & Alternate
flags & AlternateDescription
TRUEevaluated 1955 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QPrinter
  • tst_QSharedPointer
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QState
  • tst_QStateMachine
  • tst_QString
  • ...
FALSEevaluated 51329 times by 102 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
|| flags & ShowBase
flags & ShowBaseDescription
TRUEevaluated 134 times by 11 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QMdiSubWindow
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 51195 times by 100 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
)
134-51329
2211 && base == 8
base == 8Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 2087 times by 39 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • tst_QSharedPointer
  • ...
2-2087
2212 && (num_str.isEmpty()
num_str.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QTextStream
|| num_str[0].unicode() != QLatin1Char('0')
num_str[0].uni...atin1Char('0')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
))
0-2
2213 num_str.prepend(QLatin1Char('0'));
executed 1 time by 1 test: num_str.prepend(QLatin1Char('0'));
Executed by:
  • tst_QTextStream
1
2214-
2215-
2216-
2217 bool zero_padded = flags & ZeroPadded
flags & ZeroPaddedDescription
TRUEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
FALSEevaluated 46800 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
6484-46800
2218 && !(flags & LeftAdjusted)
!(flags & LeftAdjusted)Description
TRUEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
FALSEnever evaluated
0-6484
2219 && precision_not_specified
precision_not_specifiedDescription
TRUEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
FALSEnever evaluated
;
0-6484
2220-
2221 if (zero_padded
zero_paddedDescription
TRUEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
FALSEevaluated 46800 times by 117 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
) {
6484-46800
2222 int num_pad_chars = width - num_str.length();-
2223-
2224-
2225 if (base == 16
base == 16Description
TRUEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
FALSEnever evaluated
&& flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
)
0-6484
2226 num_pad_chars -= 2;
never executed: num_pad_chars -= 2;
0
2227-
2228 else if (base == 2
base == 2Description
TRUEnever evaluated
FALSEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
&& flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEnever evaluated
)
0-6484
2229 num_pad_chars -= 2;
never executed: num_pad_chars -= 2;
0
2230-
2231 for (int i = 0; i < num_pad_chars
i < num_pad_charsDescription
TRUEevaluated 13384 times by 4 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageWriter
  • tst_QUrlInternal
FALSEevaluated 6484 times by 5 tests
Evaluated by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
; ++i)
6484-13384
2232 num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
executed 13384 times by 4 tests: num_str.prepend(base == 10 ? zero : QChar::fromLatin1('0'));
Executed by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageWriter
  • tst_QUrlInternal
13384
2233 }
executed 6484 times by 5 tests: end of block
Executed by:
  • tst_QAlgorithms
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QUrlInternal
6484
2234-
2235 if (flags & CapitalEorX
flags & CapitalEorXDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 53275 times by 119 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
)
9-53275
2236 num_str = num_str.toUpper();
executed 9 times by 1 test: num_str = num_str.toUpper();
Executed by:
  • tst_QTextStream
9
2237-
2238 if (base == 16
base == 16Description
TRUEevaluated 22164 times by 74 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • ...
FALSEevaluated 31120 times by 74 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • ...
&& (flags & Alternate
flags & AlternateDescription
TRUEevaluated 1955 times by 32 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QPrinter
  • tst_QSharedPointer
  • tst_QSizeGrip
  • tst_QStackedLayout
  • tst_QState
  • tst_QStateMachine
  • tst_QString
  • ...
FALSEevaluated 20209 times by 48 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QMdiSubWindow
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPainter
  • ...
|| flags & ShowBase
flags & ShowBaseDescription
TRUEevaluated 117 times by 11 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QGraphicsItem
  • tst_QGuiVariant
  • tst_QMdiSubWindow
  • tst_QNetworkConfigurationManager
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
FALSEevaluated 20092 times by 41 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDebug
  • tst_QGlyphRun
  • tst_QGuiVariant
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPainter
  • tst_QPluginLoader
  • tst_QRawFont
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlQueryModel
  • ...
))
117-31120
2239 num_str.prepend(QLatin1String(flags & UppercaseBase ? "0X" : "0x"));
executed 2072 times by 39 tests: num_str.prepend(QLatin1String(flags & UppercaseBase ? "0X" : "0x"));
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QDebug
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileSystemModel
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QNetworkConfigurationManager
  • tst_QPrinter
  • tst_QSharedPointer
  • ...
2072
2240 else if (base == 2
base == 2Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 51197 times by 100 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
&& (flags & Alternate
flags & AlternateDescription
TRUEnever evaluated
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QTextStream
|| flags & ShowBase
flags & ShowBaseDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QTextStream
))
0-51197
2241 num_str.prepend(QLatin1String(flags & UppercaseBase ? "0B" : "0b"));
executed 14 times by 1 test: num_str.prepend(QLatin1String(flags & UppercaseBase ? "0B" : "0b"));
Executed by:
  • tst_QTextStream
14
2242-
2243-
2244 if (flags & AlwaysShowSign
flags & AlwaysShowSignDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 53281 times by 119 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
)
3-53281
2245 num_str.prepend(plus);
executed 3 times by 1 test: num_str.prepend(plus);
Executed by:
  • tst_QTextStream
3
2246 else if (flags & BlankBeforePositive
flags & BlankBeforePositiveDescription
TRUEnever evaluated
FALSEevaluated 53281 times by 119 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
)
0-53281
2247 num_str.prepend(QLatin1Char(' '));
never executed: num_str.prepend(QLatin1Char(' '));
0
2248-
2249 return
executed 53284 times by 119 tests: return num_str;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
num_str;
executed 53284 times by 119 tests: return num_str;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QByteArray
  • tst_QChar
  • tst_QColor
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDateTime
  • tst_QDebug
  • tst_QDnsLookup
  • tst_QElapsedTimer
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
53284
2250}-
2251bool QLocaleData::numberToCLocale(const QChar *str, int len,-
2252 GroupSeparatorMode group_sep_mode,-
2253 CharBuff *result) const-
2254{-
2255 const QChar *uc = str;-
2256 int l = len;-
2257 int idx = 0;-
2258-
2259-
2260 while (idx < l
idx < lDescription
TRUEevaluated 201668 times by 101 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 4310 times by 11 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QHostAddress
  • tst_QMimeDatabase
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
&& uc[idx].isSpace()
uc[idx].isSpace()Description
TRUEevaluated 268 times by 4 tests
Evaluated by:
  • tst_QHostAddress
  • tst_QString
  • tst_QStringRef
  • tst_QXmlInputSource
FALSEevaluated 201400 times by 101 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
)
268-201668
2261 ++
executed 268 times by 4 tests: ++idx;
Executed by:
  • tst_QHostAddress
  • tst_QString
  • tst_QStringRef
  • tst_QXmlInputSource
idx;
executed 268 times by 4 tests: ++idx;
Executed by:
  • tst_QHostAddress
  • tst_QString
  • tst_QStringRef
  • tst_QXmlInputSource
268
2262 if (idx == l
idx == lDescription
TRUEevaluated 4310 times by 11 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QHostAddress
  • tst_QMimeDatabase
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
FALSEevaluated 201400 times by 101 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
)
4310-201400
2263 return
executed 4310 times by 11 tests: return false;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QHostAddress
  • tst_QMimeDatabase
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
false;
executed 4310 times by 11 tests: return false;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QHostAddress
  • tst_QMimeDatabase
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
4310
2264-
2265-
2266 for (; idx < l
idx < lDescription
TRUEevaluated 201575 times by 101 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEnever evaluated
; --l) {
0-201575
2267 if (!uc[l - 1].isSpace()
!uc[l - 1].isSpace()Description
TRUEevaluated 201400 times by 101 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 175 times by 5 tests
Evaluated by:
  • tst_QIntValidator
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_QXmlInputSource
)
175-201400
2268 break;
executed 201400 times by 101 tests: break;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
201400
2269 }
executed 175 times by 5 tests: end of block
Executed by:
  • tst_QIntValidator
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_QXmlInputSource
175
2270-
2271 int group_cnt = 0;-
2272 int decpt_idx = -1;-
2273 int last_separator_idx = -1;-
2274 int start_of_digits_idx = -1;-
2275-
2276 while (idx < l
idx < lDescription
TRUEevaluated 577740 times by 101 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
FALSEevaluated 200442 times by 100 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
) {
200442-577740
2277 const QChar in = uc[idx];-
2278-
2279 char out = digitToCLocale(in);-
2280 if (out == 0
out == 0Description
TRUEevaluated 209905 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTextBoundaryFinder
  • tst_QTextDocument
  • ...
FALSEevaluated 367835 times by 101 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
209905-367835
2281 if (in == m_list
in == m_listDescription
TRUEnever evaluated
FALSEevaluated 209905 times by 35 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTextBoundaryFinder
  • tst_QTextDocument
  • ...
)
0-209905
2282 out = ';';
never executed: out = ';';
0
2283 else if (in == m_percent
in == m_percentDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QTextDocument
  • tst_QTextDocumentFragment
FALSEevaluated 209901 times by 33 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTextBoundaryFinder
  • tst_QTime
  • ...
)
4-209901
2284 out = '%';
executed 4 times by 2 tests: out = '%';
Executed by:
  • tst_QTextDocument
  • tst_QTextDocumentFragment
4
2285-
2286 else if (in.unicode() >= 'A'
in.unicode() >= 'A'Description
TRUEevaluated 208974 times by 30 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTextBoundaryFinder
  • tst_QTime
  • tst_QTreeWidget
  • tst_QUdpSocket
  • tst_QVariant
  • ...
FALSEevaluated 927 times by 14 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qmakelib
&& in.unicode() <= 'Z'
in.unicode() <= 'Z'Description
TRUEevaluated 207433 times by 15 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTextBoundaryFinder
  • tst_QTime
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
FALSEevaluated 1541 times by 27 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTreeWidget
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • ...
)
927-208974
2287 out = in.toLower().toLatin1();
executed 207433 times by 15 tests: out = in.toLower().toLatin1();
Executed by:
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QMetaType
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTextBoundaryFinder
  • tst_QTime
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • tst_Selftests
207433
2288 else if (in.unicode() >= 'a'
in.unicode() >= 'a'Description
TRUEevaluated 1521 times by 27 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTreeWidget
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • ...
FALSEevaluated 947 times by 15 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qmakelib
&& in.unicode() <= 'z'
in.unicode() <= 'z'Description
TRUEevaluated 1516 times by 27 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTreeWidget
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • ...
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
  • tst_QXmlStream
)
5-1521
2289 out = in.toLatin1();
executed 1516 times by 27 tests: out = in.toLatin1();
Executed by:
  • tst_QCssParser
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QNetworkInterface
  • tst_QNetworkSession
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QPlugin
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTreeWidget
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlSimpleReader
  • tst_QXmlStream
  • ...
1516
2290 else-
2291 break;
executed 952 times by 16 tests: break;
Executed by:
  • tst_QAccessibility
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
  • tst_qmakelib
952
2292 }-
2293 if (group_sep_mode == ParseGroupSeparators
group_sep_mode...roupSeparatorsDescription
TRUEevaluated 43614 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
FALSEevaluated 533174 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
) {
43614-533174
2294 if (start_of_digits_idx == -1
start_of_digits_idx == -1Description
TRUEevaluated 18455 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
FALSEevaluated 25159 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
&& out >= '0'
out >= '0'Description
TRUEevaluated 18106 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
FALSEevaluated 349 times by 8 tests
Evaluated by:
  • tst_QDate
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QSpinBox
  • tst_QTextStream
&& out <= '9'
out <= '9'Description
TRUEevaluated 17875 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
FALSEevaluated 231 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QSpinBox
) {
231-25159
2295 start_of_digits_idx = idx;-
2296 }
executed 17875 times by 25 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
else if (out == ','
out == ','Description
TRUEevaluated 54 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
FALSEevaluated 25685 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
) {
54-25685
2297-
2298 if (decpt_idx != -1
decpt_idx != -1Description
TRUEnever evaluated
FALSEevaluated 54 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
)
0-54
2299 return
never executed: return false;
false;
never executed: return false;
0
2300-
2301-
2302-
2303 if (last_separator_idx != -1
last_separator_idx != -1Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QSpinBox
FALSEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
&& idx - last_separator_idx != 4
idx - last_separator_idx != 4Description
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QSpinBox
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSpinBox
)
3-44
2304 return
executed 3 times by 3 tests: return false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QSpinBox
false;
executed 3 times by 3 tests: return false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QSpinBox
3
2305 if (last_separator_idx == -1
last_separator_idx == -1Description
TRUEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
FALSEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QSpinBox
&& (start_of_digits_idx == -1
start_of_digits_idx == -1Description
TRUEnever evaluated
FALSEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
|| idx - start_of_digits_idx > 3
idx - start_of_digits_idx > 3Description
TRUEnever evaluated
FALSEevaluated 44 times by 4 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
))
0-44
2306 return
never executed: return false;
false;
never executed: return false;
0
2307-
2308 last_separator_idx = idx;-
2309 ++group_cnt;-
2310-
2311-
2312 ++idx;-
2313 continue;
executed 51 times by 4 tests: continue;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QSpinBox
51
2314 } else if (out == '.'
out == '.'Description
TRUEevaluated 852 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
FALSEevaluated 24833 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
|| out == 'e'
out == 'e'Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTextStream
FALSEevaluated 24825 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
|| out == 'E'
out == 'E'Description
TRUEnever evaluated
FALSEevaluated 24825 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
) {
0-24833
2315-
2316 if (out == '.'
out == '.'Description
TRUEevaluated 852 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QTextStream
&& decpt_idx != -1
decpt_idx != -1Description
TRUEnever evaluated
FALSEevaluated 852 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
)
0-852
2317 return
never executed: return false;
false;
never executed: return false;
0
2318 if (decpt_idx == -1
decpt_idx == -1Description
TRUEevaluated 860 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
FALSEnever evaluated
)
0-860
2319 decpt_idx = idx;
executed 860 times by 8 tests: decpt_idx = idx;
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
860
2320-
2321-
2322-
2323 if (last_separator_idx != -1
last_separator_idx != -1Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
FALSEevaluated 842 times by 8 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
&& idx - last_separator_idx != 4
idx - last_separator_idx != 4Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
FALSEevaluated 15 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
)
3-842
2324 return
executed 3 times by 2 tests: return false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
false;
executed 3 times by 2 tests: return false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
3
2325-
2326-
2327 last_separator_idx = -1;-
2328 }
executed 857 times by 8 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QTextStream
857
2329 }
executed 43557 times by 25 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
43557
2330-
2331 result->append(out);-
2332-
2333 ++idx;-
2334 }
executed 576731 times by 101 tests: end of block
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
576731
2335-
2336 if (group_sep_mode == ParseGroupSeparators
group_sep_mode...roupSeparatorsDescription
TRUEevaluated 18161 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
FALSEevaluated 183233 times by 98 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
) {
18161-183233
2337-
2338-
2339 if (last_separator_idx + 1 == idx
last_separator_idx + 1 == idxDescription
TRUEevaluated 67 times by 3 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
FALSEevaluated 18094 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
)
67-18094
2340 return
executed 67 times by 3 tests: return false;
Executed by:
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
false;
executed 67 times by 3 tests: return false;
Executed by:
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
67
2341-
2342 if (last_separator_idx != -1
last_separator_idx != -1Description
TRUEevaluated 20 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QSpinBox
FALSEevaluated 18074 times by 25 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
&& idx - last_separator_idx != 4
idx - last_separator_idx != 4Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDoubleSpinBox
FALSEevaluated 17 times by 3 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QIntValidator
  • tst_QSpinBox
)
3-18074
2343 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_QDoubleSpinBox
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QDoubleSpinBox
3
2344 }
executed 18091 times by 25 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QNetworkCookieJar
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextStream
  • tst_QTime
  • tst_languageChange
18091
2345-
2346 result->append('\0');-
2347 return
executed 201324 times by 101 tests: return idx == l;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
idx == l;
executed 201324 times by 101 tests: return idx == l;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
201324
2348}-
2349-
2350bool QLocaleData::validateChars(const QString &str, NumberMode numMode, QByteArray *buff,-
2351 int decDigits, bool rejectGroupSeparators) const-
2352{-
2353 buff->clear();-
2354 buff->reserve(str.length());-
2355-
2356 const bool scientific = numMode == DoubleScientificMode;-
2357 bool lastWasE = false;-
2358 bool lastWasDigit = false;-
2359 int eCnt = 0;-
2360 int decPointCnt = 0;-
2361 bool dec = false;-
2362 int decDigitCnt = 0;-
2363-
2364 for (int i = 0; i < str.length()
i < str.length()Description
TRUEevaluated 1651 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
FALSEevaluated 401 times by 5 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
; ++i) {
401-1651
2365 char c = digitToCLocale(str.at(i));-
2366-
2367 if (c >= '0'
c >= '0'Description
TRUEevaluated 1351 times by 5 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
FALSEevaluated 300 times by 5 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
&& c <= '9'
c <= '9'Description
TRUEevaluated 1247 times by 5 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
FALSEevaluated 104 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
) {
104-1351
2368 if (numMode != IntegerMode
numMode != IntegerModeDescription
TRUEevaluated 718 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
FALSEevaluated 529 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
) {
529-718
2369-
2370 if (dec
decDescription
TRUEevaluated 106 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
FALSEevaluated 612 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
&& decDigits != -1
decDigits != -1Description
TRUEevaluated 106 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
FALSEnever evaluated
&& decDigits < ++decDigitCnt
decDigits < ++decDigitCntDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 94 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
)
0-612
2371 return
executed 12 times by 1 test: return false;
Executed by:
  • tst_QDoubleValidator
false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_QDoubleValidator
12
2372 }
executed 706 times by 2 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
706
2373 lastWasDigit = true;-
2374 }
executed 1235 times by 5 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
else {
1235
2375 switch (c) {-
2376 case
executed 74 times by 4 tests: case '.':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
'.':
executed 74 times by 4 tests: case '.':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
74
2377 if (numMode == IntegerMode
numMode == IntegerModeDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QIntValidator
  • tst_QLineEdit
FALSEevaluated 68 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
) {
6-68
2378-
2379 return
executed 6 times by 2 tests: return false;
Executed by:
  • tst_QIntValidator
  • tst_QLineEdit
false;
executed 6 times by 2 tests: return false;
Executed by:
  • tst_QIntValidator
  • tst_QLineEdit
6
2380 } else {-
2381-
2382 if (++
++decPointCnt > 1Description
TRUEnever evaluated
FALSEevaluated 68 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
decPointCnt > 1
++decPointCnt > 1Description
TRUEnever evaluated
FALSEevaluated 68 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
)
0-68
2383 return
never executed: return false;
false;
never executed: return false;
0
2384-
2385-
2386-
2387-
2388-
2389-
2390-
2391 dec = true;-
2392 }
executed 68 times by 2 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
68
2393 break;
executed 68 times by 2 tests: break;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
68
2394-
2395 case
executed 41 times by 2 tests: case '+':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
'+':
executed 41 times by 2 tests: case '+':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
41
2396 case
executed 123 times by 3 tests: case '-':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
'-':
executed 123 times by 3 tests: case '-':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
123
2397 if (scientific
scientificDescription
TRUEevaluated 56 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 108 times by 3 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
) {
56-108
2398-
2399-
2400 if (i != 0
i != 0Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
&& !lastWasE
!lastWasEDescription
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
)
0-42
2401 return
never executed: return false;
false;
never executed: return false;
0
2402 }
executed 56 times by 1 test: end of block
Executed by:
  • tst_QDoubleValidator
else {
56
2403-
2404-
2405 if (i != 0
i != 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
FALSEevaluated 104 times by 3 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
)
4-104
2406 return
executed 4 times by 2 tests: return false;
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
false;
executed 4 times by 2 tests: return false;
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
4
2407 }
executed 104 times by 3 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
104
2408 break;
executed 160 times by 3 tests: break;
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
160
2409-
2410 case
executed 19 times by 2 tests: case ',':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
',':
executed 19 times by 2 tests: case ',':
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
19
2411-
2412 if (rejectGroupSeparators
rejectGroupSeparatorsDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
|| !lastWasDigit
!lastWasDigitDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
|| decPointCnt > 0
decPointCnt > 0Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
)
0-17
2413 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_QDoubleValidator
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QDoubleValidator
4
2414 break;
executed 15 times by 2 tests: break;
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
15
2415-
2416 case
executed 104 times by 1 test: case 'e':
Executed by:
  • tst_QDoubleValidator
'e':
executed 104 times by 1 test: case 'e':
Executed by:
  • tst_QDoubleValidator
104
2417 if (scientific
scientificDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
) {
52
2418-
2419 if (++
++eCnt > 1Description
TRUEnever evaluated
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
eCnt > 1
++eCnt > 1Description
TRUEnever evaluated
FALSEevaluated 52 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
)
0-52
2420 return
never executed: return false;
false;
never executed: return false;
0
2421 dec = false;-
2422 }
executed 52 times by 1 test: end of block
Executed by:
  • tst_QDoubleValidator
else {
52
2423-
2424 return
executed 52 times by 1 test: return false;
Executed by:
  • tst_QDoubleValidator
false;
executed 52 times by 1 test: return false;
Executed by:
  • tst_QDoubleValidator
52
2425 }-
2426 break;
executed 52 times by 1 test: break;
Executed by:
  • tst_QDoubleValidator
52
2427-
2428 default
executed 43 times by 4 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
:
executed 43 times by 4 tests: default:
Executed by:
  • tst_QAccessibility
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
43
2429-
2430 return
executed 43 times by 4 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
false;
executed 43 times by 4 tests: return false;
Executed by:
  • tst_QAccessibility
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
43
2431 }-
2432 lastWasDigit = false;-
2433 }
executed 295 times by 4 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
295
2434-
2435 lastWasE = c == 'e';-
2436 if (c != ','
c != ','Description
TRUEevaluated 1515 times by 5 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QIntValidator
)
15-1515
2437 buff->append(c);
executed 1515 times by 5 tests: buff->append(c);
Executed by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
1515
2438 }
executed 1530 times by 5 tests: end of block
Executed by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
1530
2439-
2440 return
executed 401 times by 5 tests: return true;
Executed by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
true;
executed 401 times by 5 tests: return true;
Executed by:
  • tst_QDoubleValidator
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
401
2441}-
2442-
2443double QLocaleData::stringToDouble(const QChar *begin, int len, bool *ok,-
2444 GroupSeparatorMode group_sep_mode) const-
2445{-
2446 CharBuff buff;-
2447 if (!numberToCLocale(begin, len, group_sep_mode, &buff)
!numberToCLoca...p_mode, &buff)Description
TRUEevaluated 49 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEevaluated 3972 times by 27 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • ...
) {
49-3972
2448 if (ok != 0
ok != 0Description
TRUEevaluated 49 times by 5 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
FALSEnever evaluated
)
0-49
2449 *
executed 49 times by 5 tests: *ok = false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
ok = false;
executed 49 times by 5 tests: *ok = false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
49
2450 return
executed 49 times by 5 tests: return 0.0;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
0.0;
executed 49 times by 5 tests: return 0.0;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
49
2451 }-
2452 return
executed 3972 times by 27 tests: return bytearrayToDouble(buff.constData(), ok);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • ...
bytearrayToDouble(buff.constData(), ok);
executed 3972 times by 27 tests: return bytearrayToDouble(buff.constData(), ok);
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • ...
3972
2453}-
2454-
2455qlonglong QLocaleData::stringToLongLong(const QChar *begin, int len, int base,-
2456 bool *ok, GroupSeparatorMode group_sep_mode) const-
2457{-
2458 CharBuff buff;-
2459 if (!numberToCLocale(begin, len, group_sep_mode, &buff)
!numberToCLoca...p_mode, &buff)Description
TRUEevaluated 4267 times by 13 tests
Evaluated by:
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
FALSEevaluated 177805 times by 83 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • ...
) {
4267-177805
2460 if (ok != 0
ok != 0Description
TRUEevaluated 74 times by 8 tests
Evaluated by:
  • tst_QDataWidgetMapper
  • tst_QIntValidator
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
FALSEevaluated 4193 times by 9 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QMimeDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
)
74-4193
2461 *
executed 74 times by 8 tests: *ok = false;
Executed by:
  • tst_QDataWidgetMapper
  • tst_QIntValidator
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
ok = false;
executed 74 times by 8 tests: *ok = false;
Executed by:
  • tst_QDataWidgetMapper
  • tst_QIntValidator
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
74
2462 return
executed 4267 times by 13 tests: return 0;
Executed by:
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
0;
executed 4267 times by 13 tests: return 0;
Executed by:
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QMimeDatabase
  • tst_QObject
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QVariant
  • tst_qmakelib
4267
2463 }-
2464-
2465 return
executed 177805 times by 83 tests: return bytearrayToLongLong(buff.constData(), base, ok);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • ...
bytearrayToLongLong(buff.constData(), base, ok);
executed 177805 times by 83 tests: return bytearrayToLongLong(buff.constData(), base, ok);
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • ...
177805
2466}-
2467-
2468qulonglong QLocaleData::stringToUnsLongLong(const QChar *begin, int len, int base,-
2469 bool *ok, GroupSeparatorMode group_sep_mode) const-
2470{-
2471 CharBuff buff;-
2472 if (!numberToCLocale(begin, len, group_sep_mode, &buff)
!numberToCLoca...p_mode, &buff)Description
TRUEevaluated 958 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
FALSEevaluated 18659 times by 29 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTime
  • tst_QUdpSocket
  • tst_QVariant
  • ...
) {
958-18659
2473 if (ok != 0
ok != 0Description
TRUEevaluated 950 times by 11 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
8-950
2474 *
executed 950 times by 11 tests: *ok = false;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
ok = false;
executed 950 times by 11 tests: *ok = false;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
950
2475 return
executed 958 times by 11 tests: return 0;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
0;
executed 958 times by 11 tests: return 0;
Executed by:
  • tst_QAccessibility
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_QXmlStream
958
2476 }-
2477-
2478 return
executed 18659 times by 29 tests: return bytearrayToUnsLongLong(buff.constData(), base, ok);
Executed by:
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTime
  • tst_QUdpSocket
  • tst_QVariant
  • ...
bytearrayToUnsLongLong(buff.constData(), base, ok);
executed 18659 times by 29 tests: return bytearrayToUnsLongLong(buff.constData(), base, ok);
Executed by:
  • tst_QAccessibility
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QItemDelegate
  • tst_QNetworkCookieJar
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QNetworkSession
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTextDocumentFragment
  • tst_QTextList
  • tst_QTime
  • tst_QUdpSocket
  • tst_QVariant
  • ...
18659
2479}-
2480-
2481double QLocaleData::bytearrayToDouble(const char *num, bool *ok, bool *overflow)-
2482{-
2483 if (ok != 0
ok != 0Description
TRUEevaluated 2976 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
FALSEevaluated 1165 times by 20 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWidget
)
1165-2976
2484 *
executed 2976 times by 22 tests: *ok = true;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
ok = true;
executed 2976 times by 22 tests: *ok = true;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
2976
2485 if (overflow != 0
overflow != 0Description
TRUEevaluated 163 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
FALSEevaluated 3978 times by 27 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • ...
)
163-3978
2486 *
executed 163 times by 2 tests: *overflow = false;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
overflow = false;
executed 163 times by 2 tests: *overflow = false;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
163
2487-
2488 if (*
*num == '\0'Description
TRUEnever evaluated
FALSEevaluated 4141 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
num == '\0'
*num == '\0'Description
TRUEnever evaluated
FALSEevaluated 4141 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
) {
0-4141
2489 if (ok != 0
ok != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2490 *
never executed: *ok = false;
ok = false;
never executed: *ok = false;
0
2491 return
never executed: return 0.0;
0.0;
never executed: return 0.0;
0
2492 }-
2493-
2494 if (qstrcmp(num, "nan") == 0
qstrcmp(num, "nan") == 0Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4134 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
)
7-4134
2495 return
executed 7 times by 1 test: return qt_snan();
Executed by:
  • tst_QString
qt_snan();
executed 7 times by 1 test: return qt_snan();
Executed by:
  • tst_QString
7
2496-
2497 if (qstrcmp(num, "+inf") == 0
qstrcmp(num, "+inf") == 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4131 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
|| qstrcmp(num, "inf") == 0
qstrcmp(num, "inf") == 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4125 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
)
3-4131
2498 return
executed 9 times by 1 test: return qt_inf();
Executed by:
  • tst_QString
qt_inf();
executed 9 times by 1 test: return qt_inf();
Executed by:
  • tst_QString
9
2499-
2500 if (qstrcmp(num, "-inf") == 0
qstrcmp(num, "-inf") == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QString
FALSEevaluated 4123 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
)
2-4123
2501 return
executed 2 times by 1 test: return -qt_inf();
Executed by:
  • tst_QString
-qt_inf();
executed 2 times by 1 test: return -qt_inf();
Executed by:
  • tst_QString
2
2502-
2503 bool _ok;-
2504 const char *endptr;-
2505 double d = qstrtod(num, &endptr, &_ok);-
2506-
2507 if (!_ok
!_okDescription
TRUEnever evaluated
FALSEevaluated 4123 times by 28 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMetaType
  • tst_QObject
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • ...
) {
0-4123
2508-
2509-
2510 if (ok != 0
ok != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2511 *
never executed: *ok = false;
ok = false;
never executed: *ok = false;
0
2512 if (overflow != 0
overflow != 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2513 *
never executed: *overflow = *endptr != '\0';
overflow = *endptr != '\0';
never executed: *overflow = *endptr != '\0';
0
2514 return
never executed: return 0.0;
0.0;
never executed: return 0.0;
0
2515 }-
2516-
2517 if (*
*endptr != '\0'Description
TRUEevaluated 328 times by 11 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
FALSEevaluated 3795 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
endptr != '\0'
*endptr != '\0'Description
TRUEevaluated 328 times by 11 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
FALSEevaluated 3795 times by 26 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
) {
328-3795
2518-
2519 if (ok != 0
ok != 0Description
TRUEevaluated 327 times by 10 tests
Evaluated by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QCssParser
)
1-327
2520 *
executed 327 times by 10 tests: *ok = false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
ok = false;
executed 327 times by 10 tests: *ok = false;
Executed by:
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
327
2521 if (overflow != 0
overflow != 0Description
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_QDoubleValidator
FALSEevaluated 280 times by 10 tests
Evaluated by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
)
48-280
2522 *
executed 48 times by 1 test: *overflow = false;
Executed by:
  • tst_QDoubleValidator
overflow = false;
executed 48 times by 1 test: *overflow = false;
Executed by:
  • tst_QDoubleValidator
48
2523 return
executed 328 times by 11 tests: return 0.0;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
0.0;
executed 328 times by 11 tests: return 0.0;
Executed by:
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QInputDialog
  • tst_QMetaType
  • tst_QObject
  • tst_QString
  • tst_QStringRef
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
328
2524 }-
2525-
2526 if (ok != 0
ok != 0Description
TRUEevaluated 2633 times by 20 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
FALSEevaluated 1162 times by 19 tests
Evaluated by:
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QWidget
)
1162-2633
2527 *
executed 2633 times by 20 tests: *ok = true;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
ok = true;
executed 2633 times by 20 tests: *ok = true;
Executed by:
  • tst_QAccessibility
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_Selftests
2633
2528 if (overflow != 0
overflow != 0Description
TRUEevaluated 115 times by 2 tests
Evaluated by:
  • tst_QDoubleValidator
  • tst_QPrinter
FALSEevaluated 3680 times by 25 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • tst_Selftests
)
115-3680
2529 *
executed 115 times by 2 tests: *overflow = false;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
overflow = false;
executed 115 times by 2 tests: *overflow = false;
Executed by:
  • tst_QDoubleValidator
  • tst_QPrinter
115
2530 return
executed 3795 times by 26 tests: return d;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
d;
executed 3795 times by 26 tests: return d;
Executed by:
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEasingCurve
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QPrinter
  • tst_QSpinBox
  • tst_QSqlDatabase
  • tst_QString
  • tst_QStringRef
  • tst_QStyleSheetStyle
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QTextDocumentLayout
  • tst_QTextEdit
  • tst_QTextList
  • tst_QTextStream
  • tst_QVariant
  • tst_QWidget
  • ...
3795
2531}-
2532-
2533qlonglong QLocaleData::bytearrayToLongLong(const char *num, int base, bool *ok, bool *overflow)-
2534{-
2535 bool _ok;-
2536 const char *endptr;-
2537-
2538 if (*
*num == '\0'Description
TRUEevaluated 410 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDockWidget
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLayout
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QPushButton
  • tst_QSharedPointer
  • ...
FALSEevaluated 375286 times by 113 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
num == '\0'
*num == '\0'Description
TRUEevaluated 410 times by 38 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDockWidget
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLayout
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QPushButton
  • tst_QSharedPointer
  • ...
FALSEevaluated 375286 times by 113 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
410-375286
2539 if (ok != 0
ok != 0Description
TRUEevaluated 371 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLineEdit
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
FALSEevaluated 39 times by 11 tests
Evaluated by:
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QDockWidget
  • tst_QLayout
  • tst_QMdiArea
  • tst_QPrinter
  • tst_QPushButton
  • tst_QSharedPointer
  • tst_QStyleSheetStyle
  • tst_QTabWidget
  • tst_QTextDocumentLayout
)
39-371
2540 *
executed 371 times by 27 tests: *ok = false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLineEdit
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
ok = false;
executed 371 times by 27 tests: *ok = false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLineEdit
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
371
2541 if (overflow != 0
overflow != 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QLineEdit
FALSEevaluated 406 times by 37 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDockWidget
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLayout
  • tst_QMdiArea
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QPushButton
  • tst_QSharedPointer
  • tst_QSslSocket
  • ...
)
4-406
2542 *
executed 4 times by 1 test: *overflow = false;
Executed by:
  • tst_QLineEdit
overflow = false;
executed 4 times by 1 test: *overflow = false;
Executed by:
  • tst_QLineEdit
4
2543 return
executed 410 times by 38 tests: return 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDockWidget
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLayout
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QPushButton
  • tst_QSharedPointer
  • ...
0;
executed 410 times by 38 tests: return 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QDockWidget
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QLayout
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QPrinter
  • tst_QPushButton
  • tst_QSharedPointer
  • ...
410
2544 }-
2545-
2546 qlonglong l = qstrtoll(num, &endptr, base, &_ok);-
2547-
2548 if (!_ok
!_okDescription
TRUEevaluated 193 times by 18 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 375093 times by 111 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
193-375093
2549 if (ok != 0
ok != 0Description
TRUEevaluated 158 times by 17 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
FALSEevaluated 35 times by 6 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QSqlError
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
)
35-158
2550 *
executed 158 times by 17 tests: *ok = false;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
ok = false;
executed 158 times by 17 tests: *ok = false;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
158
2551 if (overflow != 0
overflow != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QIntValidator
FALSEevaluated 192 times by 17 tests
Evaluated by:
  • tst_QDate
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
) {
1-192
2552-
2553-
2554 *overflow = *endptr != '\0';-
2555 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QIntValidator
1
2556 return
executed 193 times by 18 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
0;
executed 193 times by 18 tests: return 0;
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QIntValidator
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QPlugin
  • tst_QSettings
  • tst_QSpinBox
  • tst_QSqlError
  • tst_QSqlRelationalTableModel
  • tst_QString
  • tst_QStringRef
  • tst_QTime
  • tst_QTreeWidget
  • tst_QVariant
  • tst_qmakelib
  • tst_selftests - unknown status
193
2557 }-
2558-
2559 if (*
*endptr != '\0'Description
TRUEevaluated 85 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
FALSEevaluated 375008 times by 111 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
endptr != '\0'
*endptr != '\0'Description
TRUEevaluated 85 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
FALSEevaluated 375008 times by 111 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
) {
85-375008
2560-
2561 if (ok != 0
ok != 0Description
TRUEevaluated 75 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QString
  • tst_QStringRef
)
10-75
2562 *
executed 75 times by 10 tests: *ok = false;
Executed by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
ok = false;
executed 75 times by 10 tests: *ok = false;
Executed by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
75
2563 if (overflow != 0
overflow != 0Description
TRUEnever evaluated
FALSEevaluated 85 times by 10 tests
Evaluated by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
)
0-85
2564 *
never executed: *overflow = false;
overflow = false;
never executed: *overflow = false;
0
2565 return
executed 85 times by 10 tests: return 0;
Executed by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
0;
executed 85 times by 10 tests: return 0;
Executed by:
  • tst_QDateTime
  • tst_QInputDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkRequest
  • tst_QSettings
  • tst_QSpinBox
  • tst_QString
  • tst_QStringRef
  • tst_QVariant
  • tst_qmakelib
85
2566 }-
2567-
2568 if (ok != 0
ok != 0Description
TRUEevaluated 241361 times by 86 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 133647 times by 50 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QAsn1Element
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QFile
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGuiVariant
  • tst_QHttpSocketEngine
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeySequence
  • tst_QLayout
  • tst_QLockFile
  • tst_QMimeDatabase
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • ...
)
133647-241361
2569 *
executed 241361 times by 86 tests: *ok = true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • ...
ok = true;
executed 241361 times by 86 tests: *ok = true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGLBuffer
  • tst_QGLFunctions
  • tst_QGLThreads
  • tst_QGraphicsProxyWidget
  • ...
241361
2570 if (overflow != 0
overflow != 0Description
TRUEevaluated 177 times by 4 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
FALSEevaluated 374831 times by 111 tests
Evaluated by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
)
177-374831
2571 *
executed 177 times by 4 tests: *overflow = false;
Executed by:
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
overflow = false;
executed 177 times by 4 tests: *overflow = false;
Executed by:
  • tst_QFontDialog
  • tst_QIntValidator
  • tst_QLineEdit
  • tst_QPrinter
177
2572 return
executed 375008 times by 111 tests: return l;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
l;
executed 375008 times by 111 tests: return l;
Executed by:
  • tst_Collections
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QCalendarWidget
  • tst_QChar
  • tst_QColorDialog
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • ...
375008
2573}-
2574-
2575qulonglong QLocaleData::bytearrayToUnsLongLong(const char *num, int base, bool *ok)-
2576{-
2577 bool _ok;-
2578 const char *endptr;-
2579 qulonglong l = qstrtoull(num, &endptr, base, &_ok);-
2580-
2581 if (!_ok
!_okDescription
TRUEevaluated 1155 times by 22 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDate
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkreply - unknown status
FALSEevaluated 26291 times by 44 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
|| *
*endptr != '\0'Description
TRUEevaluated 140 times by 5 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QString
  • tst_QStringRef
  • tst_QXmlStream
FALSEevaluated 26151 times by 44 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
endptr != '\0'
*endptr != '\0'Description
TRUEevaluated 140 times by 5 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QString
  • tst_QStringRef
  • tst_QXmlStream
FALSEevaluated 26151 times by 44 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
) {
140-26291
2582 if (ok != 0
ok != 0Description
TRUEevaluated 1273 times by 23 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkreply - unknown status
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QByteArray
  • tst_QString
  • tst_QStringRef
)
22-1273
2583 *
executed 1273 times by 23 tests: *ok = false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkreply - unknown status
ok = false;
executed 1273 times by 23 tests: *ok = false;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkreply - unknown status
1273
2584 return
executed 1295 times by 23 tests: return 0;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkreply - unknown status
0;
executed 1295 times by 23 tests: return 0;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QByteArray
  • tst_QDate
  • tst_QDateTimeEdit
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QMimeDatabase
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • tst_QStringRef
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlStream
  • tst_Spdy
  • tst_qnetworkreply - unknown status
1295
2585 }-
2586-
2587 if (ok != 0
ok != 0Description
TRUEevaluated 23095 times by 42 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • ...
FALSEevaluated 3056 times by 11 tests
Evaluated by:
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QNetworkReply
  • tst_QOpenGlConfig
  • tst_QString
  • tst_QStringRef
  • tst_QTime
)
3056-23095
2588 *
executed 23095 times by 42 tests: *ok = true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • ...
ok = true;
executed 23095 times by 42 tests: *ok = true;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QString
  • ...
23095
2589 return
executed 26151 times by 44 tests: return l;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
l;
executed 26151 times by 44 tests: return l;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QByteArray
  • tst_QColorDialog
  • tst_QCssParser
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QFtp
  • tst_QHostAddress
  • tst_QHttpNetworkConnection
  • tst_QHttpNetworkReply
  • tst_QHttpSocketEngine
  • tst_QItemDelegate
  • tst_QMimeDatabase
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkCookieJar
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QNetworkRequest
  • tst_QOpenGlConfig
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • ...
26151
2590}-
2591QString QLocale::currencySymbol(QLocale::CurrencySymbolFormat format) const-
2592{-
2593-
2594 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2595 QVariant res = systemLocale()->query(QSystemLocale::CurrencySymbol, format);-
2596 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2597 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
2598 }
never executed: end of block
0
2599-
2600 quint32 idx, size;-
2601 switch (format) {-
2602 case
never executed: case CurrencySymbol:
CurrencySymbol:
never executed: case CurrencySymbol:
0
2603 idx = d->m_data->m_currency_symbol_idx;-
2604 size = d->m_data->m_currency_symbol_size;-
2605 return
never executed: return getLocaleData(currency_symbol_data + idx, size);
getLocaleData(currency_symbol_data + idx, size);
never executed: return getLocaleData(currency_symbol_data + idx, size);
0
2606 case
never executed: case CurrencyDisplayName:
CurrencyDisplayName:
never executed: case CurrencyDisplayName:
0
2607 idx = d->m_data->m_currency_display_name_idx;-
2608 size = d->m_data->m_currency_display_name_size;-
2609 return
never executed: return getLocaleListData(currency_display_name_data + idx, size, 0);
getLocaleListData(currency_display_name_data + idx, size, 0);
never executed: return getLocaleListData(currency_display_name_data + idx, size, 0);
0
2610 case
never executed: case CurrencyIsoCode:
CurrencyIsoCode:
never executed: case CurrencyIsoCode:
{
0
2611 int len = 0;-
2612 const QLocaleData *data = this->d->m_data;-
2613 for (; len < 3
len < 3Description
TRUEnever evaluated
FALSEnever evaluated
; ++len)
0
2614 if (!data->m_currency_iso_code[len]
!data->m_curre..._iso_code[len]Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2615 break;
never executed: break;
0
2616 return
never executed: return len ? QString::fromLatin1(data->m_currency_iso_code, len) : QString();
len
lenDescription
TRUEnever evaluated
FALSEnever evaluated
? QString::fromLatin1(data->m_currency_iso_code, len) : QString();
never executed: return len ? QString::fromLatin1(data->m_currency_iso_code, len) : QString();
0
2617 }-
2618 }-
2619 return
never executed: return QString();
QString();
never executed: return QString();
0
2620}-
2621QString QLocale::toCurrencyString(qlonglong value, const QString &symbol) const-
2622{-
2623-
2624 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2625 QSystemLocale::CurrencyToStringArgument arg(value, symbol);-
2626 QVariant res = systemLocale()->query(QSystemLocale::CurrencyToString, QVariant::fromValue(arg));-
2627 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2628 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
2629 }
never executed: end of block
0
2630-
2631 const QLocalePrivate *d = this->d;-
2632 quint8 idx = d->m_data->m_currency_format_idx;-
2633 quint8 size = d->m_data->m_currency_format_size;-
2634 if (d->m_data->m_currency_negative_format_size
d->m_data->m_c...ve_format_sizeDescription
TRUEnever evaluated
FALSEnever evaluated
&& value < 0
value < 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2635 idx = d->m_data->m_currency_negative_format_idx;-
2636 size = d->m_data->m_currency_negative_format_size;-
2637 value = -value;-
2638 }
never executed: end of block
0
2639 QString str = toString(value);-
2640 QString sym = symbol.isNull()
symbol.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
? currencySymbol() : symbol;
0
2641 if (sym.isEmpty()
sym.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2642 sym = currencySymbol(QLocale::CurrencyIsoCode);
never executed: sym = currencySymbol(QLocale::CurrencyIsoCode);
0
2643 QString format = getLocaleData(currency_format_data + idx, size);-
2644 return
never executed: return format.arg(str, sym);
format.arg(str, sym);
never executed: return format.arg(str, sym);
0
2645}-
2646-
2647-
2648-
2649-
2650-
2651QString QLocale::toCurrencyString(qulonglong value, const QString &symbol) const-
2652{-
2653-
2654 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2655 QSystemLocale::CurrencyToStringArgument arg(value, symbol);-
2656 QVariant res = systemLocale()->query(QSystemLocale::CurrencyToString, QVariant::fromValue(arg));-
2657 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2658 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
2659 }
never executed: end of block
0
2660-
2661 const QLocaleData *data = this->d->m_data;-
2662 quint8 idx = data->m_currency_format_idx;-
2663 quint8 size = data->m_currency_format_size;-
2664 QString str = toString(value);-
2665 QString sym = symbol.isNull()
symbol.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
? currencySymbol() : symbol;
0
2666 if (sym.isEmpty()
sym.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2667 sym = currencySymbol(QLocale::CurrencyIsoCode);
never executed: sym = currencySymbol(QLocale::CurrencyIsoCode);
0
2668 QString format = getLocaleData(currency_format_data + idx, size);-
2669 return
never executed: return format.arg(str, sym);
format.arg(str, sym);
never executed: return format.arg(str, sym);
0
2670}-
2671-
2672-
2673-
2674-
2675-
2676QString QLocale::toCurrencyString(double value, const QString &symbol) const-
2677{-
2678-
2679 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2680 QSystemLocale::CurrencyToStringArgument arg(value, symbol);-
2681 QVariant res = systemLocale()->query(QSystemLocale::CurrencyToString, QVariant::fromValue(arg));-
2682 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2683 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
2684 }
never executed: end of block
0
2685-
2686 const QLocaleData *data = this->d->m_data;-
2687 quint8 idx = data->m_currency_format_idx;-
2688 quint8 size = data->m_currency_format_size;-
2689 if (data->m_currency_negative_format_size
data->m_curren...ve_format_sizeDescription
TRUEnever evaluated
FALSEnever evaluated
&& value < 0
value < 0Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2690 idx = data->m_currency_negative_format_idx;-
2691 size = data->m_currency_negative_format_size;-
2692 value = -value;-
2693 }
never executed: end of block
0
2694 QString str = toString(value, 'f', d->m_data->m_currency_digits);-
2695 QString sym = symbol.isNull()
symbol.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
? currencySymbol() : symbol;
0
2696 if (sym.isEmpty()
sym.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2697 sym = currencySymbol(QLocale::CurrencyIsoCode);
never executed: sym = currencySymbol(QLocale::CurrencyIsoCode);
0
2698 QString format = getLocaleData(currency_format_data + idx, size);-
2699 return
never executed: return format.arg(str, sym);
format.arg(str, sym);
never executed: return format.arg(str, sym);
0
2700}-
2701QStringList QLocale::uiLanguages() const-
2702{-
2703-
2704 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
) {
0-18
2705 QVariant res = systemLocale()->query(QSystemLocale::UILanguages, QVariant());-
2706 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2707 QStringList result = res.toStringList();-
2708 if (!result.isEmpty()
!result.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2709 return
never executed: return result;
result;
never executed: return result;
0
2710 }
never executed: end of block
0
2711 }
never executed: end of block
0
2712-
2713 QLocaleId id = QLocaleId::fromIds(d->m_data->m_language_id, d->m_data->m_script_id, d->m_data->m_country_id);-
2714 const QLocaleId max = id.withLikelySubtagsAdded();-
2715 const QLocaleId min = max.withLikelySubtagsRemoved();-
2716-
2717 QStringList uiLanguages;-
2718 uiLanguages.append(QString::fromLatin1(min.name()));-
2719 if (id.script_id
id.script_idDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
) {
4-14
2720 id.script_id = 0;-
2721 if (id != min
id != minDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEnever evaluated
&& id.withLikelySubtagsAdded() == max
id.withLikelyS...Added() == maxDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEnever evaluated
)
0-4
2722 uiLanguages.append(QString::fromLatin1(id.name()));
executed 4 times by 1 test: uiLanguages.append(QString::fromLatin1(id.name()));
Executed by:
  • tst_QMimeDatabase
4
2723 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QMimeDatabase
4
2724 if (max != min
max != minDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
&& max != id
max != idDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMimeDatabase
FALSEnever evaluated
)
0-14
2725 uiLanguages.append(QString::fromLatin1(max.name()));
executed 4 times by 1 test: uiLanguages.append(QString::fromLatin1(max.name()));
Executed by:
  • tst_QMimeDatabase
4
2726 return
executed 18 times by 1 test: return uiLanguages;
Executed by:
  • tst_QMimeDatabase
uiLanguages;
executed 18 times by 1 test: return uiLanguages;
Executed by:
  • tst_QMimeDatabase
18
2727}-
2728QString QLocale::nativeLanguageName() const-
2729{-
2730-
2731 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2732 QVariant res = systemLocale()->query(QSystemLocale::NativeLanguageName, QVariant());-
2733 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2734 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
2735 }
never executed: end of block
0
2736-
2737 return
never executed: return getLocaleData(endonyms_data + d->m_data->m_language_endonym_idx, d->m_data->m_language_endonym_size);
getLocaleData(endonyms_data + d->m_data->m_language_endonym_idx, d->m_data->m_language_endonym_size);
never executed: return getLocaleData(endonyms_data + d->m_data->m_language_endonym_idx, d->m_data->m_language_endonym_size);
0
2738}-
2739QString QLocale::nativeCountryName() const-
2740{-
2741-
2742 if (d->m_data == systemData()
d->m_data == systemData()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
2743 QVariant res = systemLocale()->query(QSystemLocale::NativeCountryName, QVariant());-
2744 if (!res.isNull()
!res.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
2745 return
never executed: return res.toString();
res.toString();
never executed: return res.toString();
0
2746 }
never executed: end of block
0
2747-
2748 return
never executed: return getLocaleData(endonyms_data + d->m_data->m_country_endonym_idx, d->m_data->m_country_endonym_size);
getLocaleData(endonyms_data + d->m_data->m_country_endonym_idx, d->m_data->m_country_endonym_size);
never executed: return getLocaleData(endonyms_data + d->m_data->m_country_endonym_idx, d->m_data->m_country_endonym_size);
0
2749}-
2750-
2751-
2752QDebug operator<<(QDebug dbg, const QLocale &l)-
2753{-
2754 QDebugStateSaver saver(dbg);-
2755 dbg.nospace().noquote()-
2756 << "QLocale(" << QLocale::languageToString(l.language())-
2757 << ", " << QLocale::scriptToString(l.script())-
2758 << ", " << QLocale::countryToString(l.country()) << ')';-
2759 return
executed 1 time by 1 test: return dbg;
Executed by:
  • tst_QVariant
dbg;
executed 1 time by 1 test: return dbg;
Executed by:
  • tst_QVariant
1
2760}-
2761-
2762-
Switch to Source codePreprocessed file

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