OpenCoverage

Qt Quick Test Coverage

Function Tree

Path:<top>::QQuickDragHandler
Functionâ–ľCondition %eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
yAxis
Name: QQuickDragHandler::yAxis
Prototype: QQuickDragAxis *yAxis()
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler_p.h
Lines: 73-73
100.000% (1/1)
11
xAxis
Name: QQuickDragHandler::xAxis
Prototype: QQuickDragAxis *xAxis()
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler_p.h
Lines: 72-72
100.000% (1/1)
11
wantsEventPoint
Name: QQuickDragHandler::wantsEventPoint
Prototype: bool QQuickDragHandler::wantsEventPoint(QQuickEventPoint *point)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 88-93
100.000% (1/1)
21
translationChanged
Name: QQuickDragHandler::translationChanged
Prototype: void QQuickDragHandler::translationChanged()
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickdraghandler_p.cpp
Lines: 187-190
100.000% (1/1)
11
translation
Name: QQuickDragHandler::translation
Prototype: QVector2D translation() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler_p.h
Lines: 75-75
100.000% (1/1)
11
targetContains
Name: QQuickDragHandler::targetContains
Prototype: bool QQuickDragHandler::targetContains(QQuickEventPoint *point)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 95-99
100.000% (1/1)
21
setTranslation
Name: QQuickDragHandler::setTranslation
Prototype: void QQuickDragHandler::setTranslation(const QVector2D &trans)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 209-215
100.000% (4/4)
42
onGrabChanged
Name: QQuickDragHandler::onGrabChanged
Prototype: void QQuickDragHandler::onGrabChanged(QQuickPointerHandler *grabber, QQuickEventPoint::GrabState stateChange, QQuickEventPoint *point)
Coverage:  61.111% (11/18)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 109-124
 61.111% (11/18)
106
onActiveChanged
Name: QQuickDragHandler::onActiveChanged
Prototype: void QQuickDragHandler::onActiveChanged()
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 126-133
100.000% (4/4)
42
localTargetPosition
Name: QQuickDragHandler::localTargetPosition
Prototype: QPointF QQuickDragHandler::localTargetPosition(QQuickEventPoint *point)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 101-107
100.000% (4/4)
42
handleEventPoint
Name: QQuickDragHandler::handleEventPoint
Prototype: void QQuickDragHandler::handleEventPoint(QQuickEventPoint *point)
Coverage:  78.261% (36/46)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 135-188
 78.261% (36/46)
3814
enforceConstraints
Name: QQuickDragHandler::enforceConstraints
Prototype: void QQuickDragHandler::enforceConstraints()
Coverage:  0.000% (0/9)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 190-199
  0.000% (0/9)
73
enforceAxisConstraints
Name: QQuickDragHandler::enforceAxisConstraints
Prototype: void QQuickDragHandler::enforceAxisConstraints(QPointF *localPos)
Coverage:  85.714% (6/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 201-207
 85.714% (6/7)
43
QQuickDragHandler
Name: QQuickDragHandler::QQuickDragHandler
Prototype: QQuickDragHandler::QQuickDragHandler(QObject *parent)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/handlers/qquickdraghandler.cpp
Lines: 79-82
100.000% (1/1)
21

Generated by Squish Coco 4.2.0