OpenCoverage

qv4propertykey.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4propertykey.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3QV4::Heap::StringOrSymbol *QV4::PropertyKey::toStringOrSymbol(QV4::ExecutionEngine *e)-
4{-
5 if (isArrayIndex()
isArrayIndex()Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_ecmascripttests
FALSEevaluated 247 times by 1 test
Evaluated by:
  • tst_ecmascripttests
)
28-247
6 return
executed 28 times by 1 test: return Primitive::fromUInt32(asArrayIndex()).toString(e);
Executed by:
  • tst_ecmascripttests
Primitive::fromUInt32(asArrayIndex()).toString(e);
executed 28 times by 1 test: return Primitive::fromUInt32(asArrayIndex()).toString(e);
Executed by:
  • tst_ecmascripttests
28
7 return
executed 248 times by 1 test: return static_cast<Heap::StringOrSymbol *>(asStringOrSymbol());
Executed by:
  • tst_ecmascripttests
static_cast<Heap::StringOrSymbol *>(asStringOrSymbol());
executed 248 times by 1 test: return static_cast<Heap::StringOrSymbol *>(asStringOrSymbol());
Executed by:
  • tst_ecmascripttests
248
8}-
9-
10bool QV4::PropertyKey::isString() const {-
11 Heap::StringOrSymbol *s = asStringOrSymbol();-
12 return
executed 4211647 times by 149 tests: return s && s->internalClass->vtable->isString;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • ...
s && s->internalClass->vtable->isString;
executed 4211647 times by 149 tests: return s && s->internalClass->vtable->isString;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • ...
4211647
13}-
14-
15bool QV4::PropertyKey::isSymbol() const {-
16 Heap::Base *s = asStringOrSymbol();-
17 return
executed 43920 times by 38 tests: return s && !s->internalClass->vtable->isString && s->internalClass->vtable->isStringOrSymbol;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • ...
s && !s->internalClass->vtable->isString && s->internalClass->vtable->isStringOrSymbol;
executed 43920 times by 38 tests: return s && !s->internalClass->vtable->isString && s->internalClass->vtable->isStringOrSymbol;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickgridview
  • tst_qquickitem
  • ...
43920
18}-
19-
20QString QV4::PropertyKey::toQString() const-
21{-
22 if (isArrayIndex()
isArrayIndex()Description
TRUEnever evaluated
FALSEevaluated 528048 times by 148 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
)
0-528048
23 return
never executed: return QString::number(asArrayIndex());
QString::number(asArrayIndex());
never executed: return QString::number(asArrayIndex());
0
24 Heap::Base *b = asStringOrSymbol();-
25 ((b->internalClass->vtable->isStringOrSymbol) ? static_cast<void>(0) : qt_assert("b->internalClass->vtable->isStringOrSymbol", __FILE__, 67));-
26 Heap::StringOrSymbol *s = static_cast<Heap::StringOrSymbol *>(b);-
27 return
executed 528048 times by 148 tests: return s->toQString();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
s->toQString();
executed 528048 times by 148 tests: return s->toQString();
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
528048
28}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0