MailJDTourDownloadDocsQualityTestsCoverage

Which source lines and branches the tests execute. Lines 91.5 %, branches 75.0 % (minimum 85 % and 72 %). main @ 399ffe3d · 21 October 2026 · pipeline 7238.

GCC Code Coverage Report


Directory: src/
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: 100.0% 1 / 0 / 1

presentation/ComposeThumbnailProvider.h
Line Branch Exec Source
1 #pragma once
2
3 #include <QQuickImageProvider>
4
5 // "image://compose-thumbnails/<percent-encoded path>" (Sprint 108 S108.6.1):
6 // the attachment tray's thumbnail of an image copied into a draft store.
7 // Only files below a "compose-drafts" directory are read (the draft store
8 // of ComposeDraftFiles); anything else yields an empty image. The decode is
9 // bounded (QImageReader scaled to at most 256 px, EXIF orientation applied)
10 // and runs on the engine's image thread (Image.asynchronous).
11 class ComposeThumbnailProvider final : public QQuickImageProvider {
12 public:
13
1/1
✓ Branch 3 → 4 taken 766 times.
766 ComposeThumbnailProvider() : QQuickImageProvider(QQuickImageProvider::Image) {}
14 QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override;
15 // The path a thumbnail id names, or "" when it is outside a draft store.
16 static QString draftPath(const QString &id);
17 };
18