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: 83.3% 10 / 0 / 12

data/ContactSqlValue.h
Line Branch Exec Source
1 #pragma once
2
3 #include <QString>
4 #include <QVariant>
5
6 // QString() binds as SQL NULL; the contact tables use NOT NULL '' columns.
7 1621893 inline QVariant sqlValue(const QVariant &value) {
8
10/12
✓ Branch 2 → 3 taken 1621893 times.
✓ Branch 3 → 4 taken 1012158 times.
✓ Branch 3 → 8 taken 609735 times.
✓ Branch 4 → 5 taken 1012158 times.
✓ Branch 6 → 7 taken 422093 times.
✓ Branch 6 → 8 taken 590065 times.
✓ Branch 9 → 10 taken 1012158 times.
✓ Branch 9 → 11 taken 609735 times.
✓ Branch 11 → 12 taken 422093 times.
✓ Branch 11 → 19 taken 1199800 times.
✗ Branch 21 → 22 not taken.
✗ Branch 21 → 23 not taken.
1621893 if (value.typeId() == QMetaType::QString && value.toString().isNull())
9 422093 return QVariant(QStringLiteral(""));
10 1199800 return value;
11 }
12