qlocale_unix.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/tools/qlocale_unix.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6struct QSystemLocaleData-
7{-
8 QSystemLocaleData()-
9 : lc_numeric(QLocale::C)-
10 ,lc_time(QLocale::C)-
11 ,lc_monetary(QLocale::C)-
12 ,lc_messages(QLocale::C)-
13 {-
14 readEnvironment();-
15 }
executed 1015 times by 12 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_qdbusxml2cpp - 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
1015
16-
17 void readEnvironment();-
18-
19 QReadWriteLock lock;-
20-
21 QLocale lc_numeric;-
22 QLocale lc_time;-
23 QLocale lc_monetary;-
24 QLocale lc_messages;-
25 QByteArray lc_messages_var;-
26 QByteArray lc_measurement_var;-
27 QStringList uiLanguages;-
28};-
29-
30void QSystemLocaleData::readEnvironment()-
31{-
32 QWriteLocker locker(&lock);-
33-
34 QByteArray all = qgetenv("LC_ALL");-
35 QByteArray numeric = all.isEmpty()
all.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
? qgetenv("LC_NUMERIC") : all;
0-2031
36 QByteArray time = all.isEmpty()
all.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
? qgetenv("LC_TIME") : all;
0-2031
37 QByteArray monetary = all.isEmpty()
all.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
? qgetenv("LC_MONETARY") : all;
0-2031
38 lc_messages_var = all.isEmpty()
all.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
? qgetenv("LC_MESSAGES") : all;
0-2031
39 lc_measurement_var = all.isEmpty()
all.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
? qgetenv("LC_MEASUREMENT") : all;
0-2031
40 QByteArray lang = qgetenv("LANG");-
41 if (lang.isEmpty()
lang.isEmpty()Description
TRUEevaluated 1578 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 453 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
)
453-1578
42 lang = QByteArray("C");
executed 1578 times by 1 test: lang = QByteArray("C");
Executed by:
  • tst_selftests - unknown status
1578
43 if (numeric.isEmpty()
numeric.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-2031
44 numeric = lang;
executed 2031 times by 12 tests: numeric = lang;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
2031
45 if (time.isEmpty()
time.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-2031
46 time = lang;
executed 2031 times by 12 tests: time = lang;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
2031
47 if (monetary.isEmpty()
monetary.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-2031
48 monetary = lang;
executed 2031 times by 12 tests: monetary = lang;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
2031
49 if (lc_messages_var.isEmpty()
lc_messages_var.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-2031
50 lc_messages_var = lang;
executed 2031 times by 12 tests: lc_messages_var = lang;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
2031
51 if (lc_measurement_var.isEmpty()
lc_measurement_var.isEmpty()Description
TRUEevaluated 2031 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-2031
52 lc_measurement_var = lang;
executed 2031 times by 12 tests: lc_measurement_var = lang;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
2031
53 lc_numeric = QLocale(QString::fromLatin1(numeric));-
54 lc_time = QLocale(QString::fromLatin1(time));-
55 lc_monetary = QLocale(QString::fromLatin1(monetary));-
56 lc_messages = QLocale(QString::fromLatin1(lc_messages_var));-
57}
executed 2030 times by 12 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_qdbusxml2cpp - 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
2030
58-
59namespace { namespace Q_QGS_qSystemLocaleData { typedef QSystemLocaleData 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 1435 times by 508 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 1435 times by 508 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 1435 times by 508 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 26532 times by 30 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • ...
&holder.value;
executed 26532 times by 30 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • ...
} } } static QGlobalStatic<QSystemLocaleData, Q_QGS_qSystemLocaleData::innerFunction, Q_QGS_qSystemLocaleData::guard> qSystemLocaleData;
0-26532
60-
61-
62-
63-
64-
65QLocale QSystemLocale::fallbackUiLocale() const-
66{-
67 QByteArray lang = qgetenv("LC_ALL");-
68 if (lang.isEmpty()
lang.isEmpty()Description
TRUEevaluated 1015 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-1015
69 lang = qgetenv("LC_MESSAGES");
executed 1015 times by 12 tests: lang = qgetenv("LC_MESSAGES");
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
70 if (lang.isEmpty()
lang.isEmpty()Description
TRUEevaluated 1015 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-1015
71 lang = qgetenv("LANG");
executed 1015 times by 12 tests: lang = qgetenv("LANG");
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
72-
73 if (lang.isEmpty()
lang.isEmpty()Description
TRUEevaluated 789 times by 1 test
Evaluated by:
  • tst_selftests - unknown status
FALSEevaluated 226 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
|| lang == QByteArray("C")
lang == QByteArray("C")Description
TRUEnever evaluated
FALSEevaluated 226 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
|| lang == QByteArray("POSIX")
lang == QByteArray("POSIX")Description
TRUEnever evaluated
FALSEevaluated 226 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
)
0-789
74 return
executed 789 times by 1 test: return QLocale(QString::fromLatin1(lang));
Executed by:
  • tst_selftests - unknown status
QLocale(QString::fromLatin1(lang));
executed 789 times by 1 test: return QLocale(QString::fromLatin1(lang));
Executed by:
  • tst_selftests - unknown status
789
75-
76-
77-
78 QByteArray language = qgetenv("LANGUAGE");-
79 if (!language.isEmpty()
!language.isEmpty()Description
TRUEevaluated 226 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
FALSEnever evaluated
) {
0-226
80 language = language.split(':').constFirst();-
81 if (!language.isEmpty()
!language.isEmpty()Description
TRUEevaluated 226 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
FALSEnever evaluated
)
0-226
82 return
executed 226 times by 11 tests: return QLocale(QString::fromLatin1(language));
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
QLocale(QString::fromLatin1(language));
executed 226 times by 11 tests: return QLocale(QString::fromLatin1(language));
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
226
83 }
never executed: end of block
0
84-
85 return
never executed: return QLocale(QString::fromLatin1(lang));
QLocale(QString::fromLatin1(lang));
never executed: return QLocale(QString::fromLatin1(lang));
0
86}-
87-
88QVariant QSystemLocale::query(QueryType type, QVariant in) const-
89{-
90 QSystemLocaleData *d = qSystemLocaleData();-
91-
92 if (type == LocaleChanged
type == LocaleChangedDescription
TRUEevaluated 1015 times by 12 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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 25517 times by 30 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_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qmakelib
  • ...
) {
1015-25517
93 d->readEnvironment();-
94 return
executed 1015 times by 12 tests: return QVariant();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
QVariant();
executed 1015 times by 12 tests: return QVariant();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
95 }-
96-
97 QReadLocker locker(&d->lock);-
98-
99 const QLocale &lc_numeric = d->lc_numeric;-
100 const QLocale &lc_time = d->lc_time;-
101 const QLocale &lc_monetary = d->lc_monetary;-
102 const QLocale &lc_messages = d->lc_messages;-
103-
104 switch (type) {-
105 case
executed 1015 times by 12 tests: case DecimalPoint:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
DecimalPoint:
executed 1015 times by 12 tests: case DecimalPoint:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
106 return
executed 1015 times by 12 tests: return lc_numeric.decimalPoint();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
lc_numeric.decimalPoint();
executed 1015 times by 12 tests: return lc_numeric.decimalPoint();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
107 case
executed 1015 times by 12 tests: case GroupSeparator:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
GroupSeparator:
executed 1015 times by 12 tests: case GroupSeparator:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
108 return
executed 1015 times by 12 tests: return lc_numeric.groupSeparator();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
lc_numeric.groupSeparator();
executed 1015 times by 12 tests: return lc_numeric.groupSeparator();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
109 case
executed 1015 times by 12 tests: case ZeroDigit:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
ZeroDigit:
executed 1015 times by 12 tests: case ZeroDigit:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
110 return
executed 1015 times by 12 tests: return lc_numeric.zeroDigit();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
lc_numeric.zeroDigit();
executed 1015 times by 12 tests: return lc_numeric.zeroDigit();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
111 case
executed 1015 times by 12 tests: case NegativeSign:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
NegativeSign:
executed 1015 times by 12 tests: case NegativeSign:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
112 return
executed 1015 times by 12 tests: return lc_numeric.negativeSign();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
lc_numeric.negativeSign();
executed 1015 times by 12 tests: return lc_numeric.negativeSign();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
113 case
never executed: case DateFormatLong:
DateFormatLong:
never executed: case DateFormatLong:
0
114 return
never executed: return lc_time.dateFormat(QLocale::LongFormat);
lc_time.dateFormat(QLocale::LongFormat);
never executed: return lc_time.dateFormat(QLocale::LongFormat);
0
115 case
executed 11 times by 4 tests: case DateFormatShort:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
DateFormatShort:
executed 11 times by 4 tests: case DateFormatShort:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
11
116 return
executed 11 times by 4 tests: return lc_time.dateFormat(QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
lc_time.dateFormat(QLocale::ShortFormat);
executed 11 times by 4 tests: return lc_time.dateFormat(QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
11
117 case
never executed: case TimeFormatLong:
TimeFormatLong:
never executed: case TimeFormatLong:
0
118 return
never executed: return lc_time.timeFormat(QLocale::LongFormat);
lc_time.timeFormat(QLocale::LongFormat);
never executed: return lc_time.timeFormat(QLocale::LongFormat);
0
119 case
executed 11 times by 4 tests: case TimeFormatShort:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
TimeFormatShort:
executed 11 times by 4 tests: case TimeFormatShort:
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
11
120 return
executed 11 times by 4 tests: return lc_time.timeFormat(QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
lc_time.timeFormat(QLocale::ShortFormat);
executed 11 times by 4 tests: return lc_time.timeFormat(QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
11
121 case
executed 252 times by 3 tests: case DayNameLong:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
DayNameLong:
executed 252 times by 3 tests: case DayNameLong:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
252
122 return
executed 252 times by 3 tests: return lc_time.dayName(in.toInt(), QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
lc_time.dayName(in.toInt(), QLocale::LongFormat);
executed 252 times by 3 tests: return lc_time.dayName(in.toInt(), QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
252
123 case
executed 935 times by 6 tests: case DayNameShort:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
DayNameShort:
executed 935 times by 6 tests: case DayNameShort:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
935
124 return
executed 935 times by 6 tests: return lc_time.dayName(in.toInt(), QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
lc_time.dayName(in.toInt(), QLocale::ShortFormat);
executed 935 times by 6 tests: return lc_time.dayName(in.toInt(), QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_qmakelib
935
125 case
executed 3559 times by 3 tests: case MonthNameLong:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
MonthNameLong:
executed 3559 times by 3 tests: case MonthNameLong:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
3559
126 return
executed 3559 times by 3 tests: return lc_time.monthName(in.toInt(), QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
lc_time.monthName(in.toInt(), QLocale::LongFormat);
executed 3559 times by 3 tests: return lc_time.monthName(in.toInt(), QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
3559
127 case
executed 8303 times by 5 tests: case MonthNameShort:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
MonthNameShort:
executed 8303 times by 5 tests: case MonthNameShort:
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
8303
128 return
executed 8303 times by 5 tests: return lc_time.monthName(in.toInt(), QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
lc_time.monthName(in.toInt(), QLocale::ShortFormat);
executed 8303 times by 5 tests: return lc_time.monthName(in.toInt(), QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QNetworkCookieJar
  • tst_qmakelib
8303
129 case
executed 513 times by 3 tests: case StandaloneMonthNameLong:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
StandaloneMonthNameLong:
executed 513 times by 3 tests: case StandaloneMonthNameLong:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
513
130 return
executed 513 times by 3 tests: return lc_time.standaloneMonthName(in.toInt(), QLocale::LongFormat);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
lc_time.standaloneMonthName(in.toInt(), QLocale::LongFormat);
executed 513 times by 3 tests: return lc_time.standaloneMonthName(in.toInt(), QLocale::LongFormat);
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QDate
513
131 case
executed 24 times by 1 test: case StandaloneMonthNameShort:
Executed by:
  • tst_QDate
StandaloneMonthNameShort:
executed 24 times by 1 test: case StandaloneMonthNameShort:
Executed by:
  • tst_QDate
24
132 return
executed 24 times by 1 test: return lc_time.standaloneMonthName(in.toInt(), QLocale::ShortFormat);
Executed by:
  • tst_QDate
lc_time.standaloneMonthName(in.toInt(), QLocale::ShortFormat);
executed 24 times by 1 test: return lc_time.standaloneMonthName(in.toInt(), QLocale::ShortFormat);
Executed by:
  • tst_QDate
24
133 case
executed 33 times by 2 tests: case DateToStringLong:
Executed by:
  • tst_QDate
  • tst_QItemDelegate
DateToStringLong:
executed 33 times by 2 tests: case DateToStringLong:
Executed by:
  • tst_QDate
  • tst_QItemDelegate
33
134 return
executed 33 times by 2 tests: return lc_time.toString(in.toDate(), QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QItemDelegate
lc_time.toString(in.toDate(), QLocale::LongFormat);
executed 33 times by 2 tests: return lc_time.toString(in.toDate(), QLocale::LongFormat);
Executed by:
  • tst_QDate
  • tst_QItemDelegate
33
135 case
executed 43 times by 2 tests: case DateToStringShort:
Executed by:
  • tst_QDate
  • tst_QItemDelegate
DateToStringShort:
executed 43 times by 2 tests: case DateToStringShort:
Executed by:
  • tst_QDate
  • tst_QItemDelegate
43
136 return
executed 43 times by 2 tests: return lc_time.toString(in.toDate(), QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QItemDelegate
lc_time.toString(in.toDate(), QLocale::ShortFormat);
executed 43 times by 2 tests: return lc_time.toString(in.toDate(), QLocale::ShortFormat);
Executed by:
  • tst_QDate
  • tst_QItemDelegate
43
137 case
executed 9 times by 2 tests: case TimeToStringLong:
Executed by:
  • tst_QItemDelegate
  • tst_QTime
TimeToStringLong:
executed 9 times by 2 tests: case TimeToStringLong:
Executed by:
  • tst_QItemDelegate
  • tst_QTime
9
138 return
executed 9 times by 2 tests: return lc_time.toString(in.toTime(), QLocale::LongFormat);
Executed by:
  • tst_QItemDelegate
  • tst_QTime
lc_time.toString(in.toTime(), QLocale::LongFormat);
executed 9 times by 2 tests: return lc_time.toString(in.toTime(), QLocale::LongFormat);
Executed by:
  • tst_QItemDelegate
  • tst_QTime
9
139 case
executed 21 times by 2 tests: case TimeToStringShort:
Executed by:
  • tst_QItemDelegate
  • tst_QTime
TimeToStringShort:
executed 21 times by 2 tests: case TimeToStringShort:
Executed by:
  • tst_QItemDelegate
  • tst_QTime
21
140 return
executed 21 times by 2 tests: return lc_time.toString(in.toTime(), QLocale::ShortFormat);
Executed by:
  • tst_QItemDelegate
  • tst_QTime
lc_time.toString(in.toTime(), QLocale::ShortFormat);
executed 21 times by 2 tests: return lc_time.toString(in.toTime(), QLocale::ShortFormat);
Executed by:
  • tst_QItemDelegate
  • tst_QTime
21
141 case
executed 1 time by 1 test: case DateTimeFormatLong:
Executed by:
  • tst_QDateTime
DateTimeFormatLong:
executed 1 time by 1 test: case DateTimeFormatLong:
Executed by:
  • tst_QDateTime
1
142 return
executed 1 time by 1 test: return lc_time.dateTimeFormat(QLocale::LongFormat);
Executed by:
  • tst_QDateTime
lc_time.dateTimeFormat(QLocale::LongFormat);
executed 1 time by 1 test: return lc_time.dateTimeFormat(QLocale::LongFormat);
Executed by:
  • tst_QDateTime
1
143 case
executed 13 times by 5 tests: case DateTimeFormatShort:
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
DateTimeFormatShort:
executed 13 times by 5 tests: case DateTimeFormatShort:
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
13
144 return
executed 13 times by 5 tests: return lc_time.dateTimeFormat(QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
lc_time.dateTimeFormat(QLocale::ShortFormat);
executed 13 times by 5 tests: return lc_time.dateTimeFormat(QLocale::ShortFormat);
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QStyleSheetStyle
13
145 case
executed 1 time by 1 test: case DateTimeToStringLong:
Executed by:
  • tst_QDateTime
DateTimeToStringLong:
executed 1 time by 1 test: case DateTimeToStringLong:
Executed by:
  • tst_QDateTime
1
146 return
executed 1 time by 1 test: return lc_time.toString(in.toDateTime(), QLocale::LongFormat);
Executed by:
  • tst_QDateTime
lc_time.toString(in.toDateTime(), QLocale::LongFormat);
executed 1 time by 1 test: return lc_time.toString(in.toDateTime(), QLocale::LongFormat);
Executed by:
  • tst_QDateTime
1
147 case
executed 2722 times by 8 tests: case DateTimeToStringShort:
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
DateTimeToStringShort:
executed 2722 times by 8 tests: case DateTimeToStringShort:
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
2722
148 return
executed 2722 times by 8 tests: return lc_time.toString(in.toDateTime(), QLocale::ShortFormat);
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
lc_time.toString(in.toDateTime(), QLocale::ShortFormat);
executed 2722 times by 8 tests: return lc_time.toString(in.toDateTime(), QLocale::ShortFormat);
Executed by:
  • tst_QCompleter
  • tst_QDateTime
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QItemModel
  • tst_languageChange
2722
149 case
executed 1015 times by 12 tests: case PositiveSign:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
PositiveSign:
executed 1015 times by 12 tests: case PositiveSign:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
150 return
executed 1015 times by 12 tests: return lc_numeric.positiveSign();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
lc_numeric.positiveSign();
executed 1015 times by 12 tests: return lc_numeric.positiveSign();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
1015
151 case
executed 744 times by 5 tests: case AMText:
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
AMText:
executed 744 times by 5 tests: case AMText:
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
744
152 return
executed 744 times by 5 tests: return lc_time.amText();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
lc_time.amText();
executed 744 times by 5 tests: return lc_time.amText();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QTime
744
153 case
executed 178 times by 4 tests: case PMText:
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
PMText:
executed 178 times by 4 tests: case PMText:
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
178
154 return
executed 178 times by 4 tests: return lc_time.pmText();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
lc_time.pmText();
executed 178 times by 4 tests: return lc_time.pmText();
Executed by:
  • tst_QAccessibility
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QTime
178
155 case
executed 22 times by 2 tests: case FirstDayOfWeek:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
FirstDayOfWeek:
executed 22 times by 2 tests: case FirstDayOfWeek:
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
22
156 return
executed 22 times by 2 tests: return lc_time.firstDayOfWeek();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
lc_time.firstDayOfWeek();
executed 22 times by 2 tests: return lc_time.firstDayOfWeek();
Executed by:
  • tst_QAccessibility
  • tst_QCalendarWidget
22
157 case
never executed: case CurrencySymbol:
CurrencySymbol:
never executed: case CurrencySymbol:
0
158 return
never executed: return lc_monetary.currencySymbol(QLocale::CurrencySymbolFormat(in.toUInt()));
lc_monetary.currencySymbol(QLocale::CurrencySymbolFormat(in.toUInt()));
never executed: return lc_monetary.currencySymbol(QLocale::CurrencySymbolFormat(in.toUInt()));
0
159 case
never executed: case CurrencyToString:
CurrencyToString:
never executed: case CurrencyToString:
{
0
160 switch (in.type()) {-
161 case
never executed: case QVariant::Int:
QVariant::Int:
never executed: case QVariant::Int:
0
162 return
never executed: return lc_monetary.toCurrencyString(in.toInt());
lc_monetary.toCurrencyString(in.toInt());
never executed: return lc_monetary.toCurrencyString(in.toInt());
0
163 case
never executed: case QVariant::UInt:
QVariant::UInt:
never executed: case QVariant::UInt:
0
164 return
never executed: return lc_monetary.toCurrencyString(in.toUInt());
lc_monetary.toCurrencyString(in.toUInt());
never executed: return lc_monetary.toCurrencyString(in.toUInt());
0
165 case
never executed: case QVariant::Double:
QVariant::Double:
never executed: case QVariant::Double:
0
166 return
never executed: return lc_monetary.toCurrencyString(in.toDouble());
lc_monetary.toCurrencyString(in.toDouble());
never executed: return lc_monetary.toCurrencyString(in.toDouble());
0
167 case
never executed: case QVariant::LongLong:
QVariant::LongLong:
never executed: case QVariant::LongLong:
0
168 return
never executed: return lc_monetary.toCurrencyString(in.toLongLong());
lc_monetary.toCurrencyString(in.toLongLong());
never executed: return lc_monetary.toCurrencyString(in.toLongLong());
0
169 case
never executed: case QVariant::ULongLong:
QVariant::ULongLong:
never executed: case QVariant::ULongLong:
0
170 return
never executed: return lc_monetary.toCurrencyString(in.toULongLong());
lc_monetary.toCurrencyString(in.toULongLong());
never executed: return lc_monetary.toCurrencyString(in.toULongLong());
0
171 default
never executed: default:
:
never executed: default:
0
172 break;
never executed: break;
0
173 }-
174 return
never executed: return QString();
QString();
never executed: return QString();
0
175 }-
176 case
executed 2 times by 1 test: case MeasurementSystem:
Executed by:
  • tst_QPrinter
MeasurementSystem:
executed 2 times by 1 test: case MeasurementSystem:
Executed by:
  • tst_QPrinter
{
2
177 const QString meas_locale = QString::fromLatin1(d->lc_measurement_var.constData(), d->lc_measurement_var.size());-
178 if (meas_locale.compare(QLatin1String("Metric"), Qt::CaseInsensitive) == 0
meas_locale.co...ensitive) == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
)
0-2
179 return
never executed: return QLocale::MetricSystem;
QLocale::MetricSystem;
never executed: return QLocale::MetricSystem;
0
180 if (meas_locale.compare(QLatin1String("Other"), Qt::CaseInsensitive) == 0
meas_locale.co...ensitive) == 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPrinter
)
0-2
181 return
never executed: return QLocale::MetricSystem;
QLocale::MetricSystem;
never executed: return QLocale::MetricSystem;
0
182 return
executed 2 times by 1 test: return QVariant((int)QLocale(meas_locale).measurementSystem());
Executed by:
  • tst_QPrinter
QVariant((int)QLocale(meas_locale).measurementSystem());
executed 2 times by 1 test: return QVariant((int)QLocale(meas_locale).measurementSystem());
Executed by:
  • tst_QPrinter
2
183 }-
184 case
never executed: case UILanguages:
UILanguages:
never executed: case UILanguages:
{
0
185 if (!d->uiLanguages.isEmpty()
!d->uiLanguages.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
186 return
never executed: return d->uiLanguages;
d->uiLanguages;
never executed: return d->uiLanguages;
0
187 QString languages = QString::fromLatin1(qgetenv("LANGUAGE"));-
188 QStringList lst;-
189 if (languages.isEmpty()
languages.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
190 lst.append(QString::fromLatin1(d->lc_messages_var));
never executed: lst.append(QString::fromLatin1(d->lc_messages_var));
0
191 else-
192 lst = languages.split(QLatin1Char(':'));
never executed: lst = languages.split(QLatin1Char(':'));
0
193-
194 for (int i = 0; i < lst.size()
i < lst.size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
195 const QString &name = lst.at(i);-
196 QString lang, script, cntry;-
197 if (qt_splitLocaleName(name, lang, script, cntry)
qt_splitLocale...script, cntry)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
198 if (!cntry.length()
!cntry.length()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
199 d->uiLanguages.append(lang);
never executed: d->uiLanguages.append(lang);
0
200 else-
201 d->uiLanguages.append(lang % QLatin1Char('-') % cntry);
never executed: d->uiLanguages.append(lang % QLatin1Char('-') % cntry);
0
202 }-
203 }
never executed: end of block
0
204 return
never executed: return d->uiLanguages.isEmpty() ? QVariant() : QVariant(d->uiLanguages);
d->uiLanguages.isEmpty() ? QVariant() : QVariant(d->uiLanguages);
never executed: return d->uiLanguages.isEmpty() ? QVariant() : QVariant(d->uiLanguages);
0
205 }-
206 case
never executed: case StringToStandardQuotation:
StringToStandardQuotation:
never executed: case StringToStandardQuotation:
0
207 return
never executed: return lc_messages.quoteString(in.value<QStringRef>());
lc_messages.quoteString(in.value<QStringRef>());
never executed: return lc_messages.quoteString(in.value<QStringRef>());
0
208 case
never executed: case StringToAlternateQuotation:
StringToAlternateQuotation:
never executed: case StringToAlternateQuotation:
0
209 return
never executed: return lc_messages.quoteString(in.value<QStringRef>(), QLocale::AlternateQuotation);
lc_messages.quoteString(in.value<QStringRef>(), QLocale::AlternateQuotation);
never executed: return lc_messages.quoteString(in.value<QStringRef>(), QLocale::AlternateQuotation);
0
210 case
never executed: case ListToSeparatedString:
ListToSeparatedString:
never executed: case ListToSeparatedString:
0
211 return
never executed: return lc_messages.createSeparatedList(in.toStringList());
lc_messages.createSeparatedList(in.toStringList());
never executed: return lc_messages.createSeparatedList(in.toStringList());
0
212 case
never executed: case LocaleChanged:
LocaleChanged:
never executed: case LocaleChanged:
0
213 ((!(false)) ? qt_assert("false",__FILE__,258) : qt_noop());-
214 default
executed 3045 times by 12 tests: default:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
code before this statement never executed: default:
executed 3045 times by 12 tests: default:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
:
code before this statement never executed: default:
executed 3045 times by 12 tests: default:
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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-3045
215 break;
executed 3045 times by 12 tests: break;
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
3045
216 }-
217 return
executed 3045 times by 12 tests: return QVariant();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
QVariant();
executed 3045 times by 12 tests: return QVariant();
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - 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
3045
218}-
219-
220-
221-
Switch to Source codePreprocessed file

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