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% 12 / 0 / 12
Functions: 100.0% 2 / 0 / 2
Branches: 85.7% 12 / 0 / 14

presentation/CalendarLayoutPeople.cpp
Line Branch Exec Source
1 // Sprint 103 S103.6.1: the people of *With* on calendar occurrences (agenda
2 // and search rows show them as avatars). Split from CalendarLayout.cpp,
3 // which keeps its size limit.
4 #include "CalendarLayout.h"
5
6 #include "data/CalendarPeopleIndex.h"
7
8 namespace CalendarLayout {
9
10 19319 QVariantList peopleList(const QList<EventPerson> &people) {
11 19319 QVariantList list;
12
2/2
✓ Branch 27 → 4 taken 2 times.
✓ Branch 27 → 28 taken 19319 times.
19321 for (const EventPerson &person : people)
13
3/5
✓ Branch 15 → 16 taken 2 times.
✓ Branch 19 → 20 taken 4 times.
✓ Branch 19 → 21 taken 2 times.
✗ Branch 35 → 36 not taken.
✗ Branch 35 → 37 not taken.
10 list.append(QVariantMap{{QStringLiteral("uid"), person.uid}, {QStringLiteral("name"), person.name}});
14 19319 return list;
15 6 }
16
17 57 void attachPeople(QList<CalendarOccurrence> &occurrences, const QHash<QString, QList<EventPerson>> &people) {
18
2/2
✓ Branch 3 → 4 taken 54 times.
✓ Branch 3 → 5 taken 3 times.
57 if (people.isEmpty())
19 54 return;
20
4/4
✓ Branch 5 → 6 taken 3 times.
✓ Branch 6 → 7 taken 3 times.
✓ Branch 16 → 8 taken 6 times.
✓ Branch 16 → 17 taken 3 times.
9 for (CalendarOccurrence &occurrence : occurrences)
21 12 occurrence.people = people.value(CalendarPeopleIndex::eventKey(occurrence.accountId, occurrence.calendarPath,
22
1/1
✓ Branch 9 → 10 taken 6 times.
12 occurrence.uid));
23 }
24
25 } // namespace CalendarLayout
26