File indexing completed on 2024-12-01 03:39:13
0001 /* 0002 This file is part of the KContacts framework. 0003 SPDX-FileCopyrightText: 2015-2019 Laurent Montel <montel@kde.org> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 #ifndef GENDERTEST_H 0009 #define GENDERTEST_H 0010 0011 #include <QObject> 0012 0013 class GenderTest : public QObject 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit GenderTest(QObject *parent = nullptr); 0018 ~GenderTest() override; 0019 0020 private: 0021 QByteArray createCard(const QByteArray &gender); 0022 0023 private Q_SLOTS: 0024 void shouldHaveDefaultValue(); 0025 void shouldAssignValue(); 0026 void shouldAssignExternal(); 0027 void shouldSerialized(); 0028 void shouldEqualGender(); 0029 void shouldParseGender(); 0030 void shouldParseGender_data(); 0031 void shouldExportOnlyGenderWithoutCommentGender(); 0032 void shouldExportEmptyGender(); 0033 void shouldExportOnlyGenderWithCommentGender(); 0034 void shouldExportOnlyGenderWithoutTypeCommentGender(); 0035 void shouldNotExportInVcard3(); 0036 }; 0037 0038 #endif // GENDERTEST_H