File indexing completed on 2025-01-05 04:58:19
0001 /* 0002 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include <QObject> 0011 0012 class BalooCompletionEmailTest : public QObject 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit BalooCompletionEmailTest(QObject *parent = nullptr); 0017 ~BalooCompletionEmailTest() override; 0018 0019 private Q_SLOTS: 0020 void returnEmptyListWhenEmailListIsEmpty(); 0021 void shouldReturnSameListWhenNotExclude(); 0022 void shouldReturnSameListIfBlackListDoesntInterceptEmail(); 0023 void shouldReturnUniqueEmail(); 0024 void shouldReturnEmptyListWhenAllBlackListed(); 0025 void shouldExcludeDomain(); 0026 void shouldReturnEmailListWhenDomainListIsNotNull(); 0027 void shouldDontDuplicateEmailWhenUseCase(); 0028 void shouldExcludeDuplicateEntryWithDisplayName(); 0029 void shouldExcludeDuplicateEntryWithDisplayNameAddAddressWithDifferentCase(); 0030 void shouldExcludeDuplicateEntryWithDifferentDisplayNameAddAddressWithDifferentCase(); 0031 void shouldExcludeEmptyNameWithDisplayNameForSameAddress(); 0032 void shouldReturnSameListIfBlackListInterceptEmail(); 0033 void shouldExcludeEmails(); 0034 };