OpenCoverage

qsgtexturefilehandler_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/compressedtexture/qsgtexturefilehandler_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4extern const QLoggingCategory &QSG_LOG_TEXTUREIO();-
5-
6class QQuickTextureFactory;-
7-
8class QSGTextureFileHandler-
9{-
10public:-
11 QSGTextureFileHandler(QIODevice *device, const QByteArray &logName = QByteArray())-
12 : m_device(device)-
13 {-
14 m_logName = !logName.isEmpty()
!logName.isEmpty()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickimage
FALSEnever evaluated
? logName : ([]() -> QByteArray { enum { Size = sizeof("(unknown)") - 1 }; static const QStaticByteArrayData<Size> qbytearray_literal = { { { { -1 } }, Size, 0, 0, sizeof(QByteArrayData) }, "(unknown)" }; QByteArrayDataPtr holder = { qbytearray_literal.data_ptr() }; const QByteArray ba(holder); return
never executed: return ba;
ba;
never executed: return ba;
}());
0-10
15 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquickimage
10
16 virtual ~QSGTextureFileHandler() {}-
17-
18 virtual QQuickTextureFactory *read() = 0;-
19 QIODevice *device() const { return
executed 20 times by 1 test: return m_device;
Executed by:
  • tst_qquickimage
m_device;
executed 20 times by 1 test: return m_device;
Executed by:
  • tst_qquickimage
}
20
20 QByteArray logName() const { return
executed 10 times by 1 test: return m_logName;
Executed by:
  • tst_qquickimage
m_logName;
executed 10 times by 1 test: return m_logName;
Executed by:
  • tst_qquickimage
}
10
21-
22private:-
23 QIODevice *m_device = nullptr;-
24 QByteArray m_logName;-
25};-
26-
27-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0