MailJD nbsp;·nbsp; Test Dashboard nbsp;·nbsp; Coverage
LCOV - code coverage report
Current view: top level - ui - UrlSchemeFilter.h (source / functions) Coverage Total Hit
Test: MailJD Coverage (Unit + E2E) Lines: 100.0 % 4 4
Test Date: 2026-06-21 21:10:19 Functions: 100.0 % 1 1
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
Branches: 88.9 % 18 16

             Branch data     Line data    Source code
       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                 :          13 : inline bool isAllowedExternalScheme(const QString &scheme) {
       9   [ +  +  +  - ]:          38 :   return scheme == QStringLiteral("http") ||
      10   [ +  +  +  +  :          63 :          scheme == QStringLiteral("https") ||
             +  +  +  - ]
      11   [ +  +  +  +  :          22 :          scheme == QStringLiteral("mailto");
                   +  + ]
      12                 :             : }
        

Generated by: LCOV version 2.0-1