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% 4 / 0 / 4
Functions: 100.0% 1 / 0 / 1
Branches: 88.9% 16 / 0 / 18

ui/UrlSchemeFilter.h
Line Branch Exec Source
1 #pragma once
2
3 #include <QString>
4
5 // T-621/FUNC-04: URL scheme whitelist — extracted from dead-code MailWebEnginePage.
6 // Used by MailView and ExternalContentInterceptor to decide which
7 // link schemes may be opened in the system browser.
8 43 inline bool isAllowedExternalScheme(const QString &scheme) {
9
3/4
✓ Branch 11 → 12 taken 24 times.
✓ Branch 11 → 17 taken 13 times.
✓ Branch 29 → 30 taken 43 times.
✗ Branch 29 → 31 not taken.
123 return scheme == QStringLiteral("http") ||
10
7/8
✓ Branch 6 → 7 taken 37 times.
✓ Branch 6 → 17 taken 6 times.
✓ Branch 16 → 17 taken 9 times.
✓ Branch 16 → 18 taken 15 times.
✓ Branch 25 → 26 taken 37 times.
✓ Branch 25 → 27 taken 6 times.
✓ Branch 27 → 28 taken 43 times.
✗ Branch 27 → 29 not taken.
203 scheme == QStringLiteral("https") ||
11
6/6
✓ Branch 19 → 20 taken 24 times.
✓ Branch 19 → 21 taken 19 times.
✓ Branch 21 → 22 taken 24 times.
✓ Branch 21 → 23 taken 19 times.
✓ Branch 23 → 24 taken 37 times.
✓ Branch 23 → 25 taken 6 times.
67 scheme == QStringLiteral("mailto");
12 }
13