OpenCoverage

qquickaccessiblefactory.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/accessible/qquickaccessiblefactory.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QAccessibleInterface *qQuickAccessibleFactory(const QString &classname, QObject *object)-
7{-
8 if (classname == QLatin1String("QQuickWindow")
classname == Q...QQuickWindow")Description
TRUEevaluated 1052 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 1284 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
) {
1052-1284
9 return
executed 1052 times by 18 tests: return new QAccessibleQuickWindow(qobject_cast<QQuickWindow *>(object));
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
new QAccessibleQuickWindow(qobject_cast<QQuickWindow *>(object));
executed 1052 times by 18 tests: return new QAccessibleQuickWindow(qobject_cast<QQuickWindow *>(object));
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1052
10 } else if (classname == QLatin1String("QQuickItem")
classname == Q...("QQuickItem")Description
TRUEevaluated 84 times by 2 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickitem2
FALSEevaluated 1200 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
) {
84-1200
11 QQuickItem *item = qobject_cast<QQuickItem *>(object);-
12 ((item) ? static_cast<void>(0) : qt_assert("item", __FILE__, 55));-
13 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
14 if (!itemPrivate->isAccessible
!itemPrivate->isAccessibleDescription
TRUEnever evaluated
FALSEevaluated 84 times by 2 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickitem2
)
0-84
15 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
16 return
executed 84 times by 2 tests: return new QAccessibleQuickItem(item);
Executed by:
  • tst_qquickaccessible
  • tst_qquickitem2
new QAccessibleQuickItem(item);
executed 84 times by 2 tests: return new QAccessibleQuickItem(item);
Executed by:
  • tst_qquickaccessible
  • tst_qquickitem2
84
17 }-
18-
19 return
executed 1200 times by 18 tests: return nullptr;
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
nullptr;
executed 1200 times by 18 tests: return nullptr;
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
1200
20}-
21-
22-
23-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0