File indexing completed on 2024-04-21 05:44:40
0001 /** 0002 * SPDX-FileCopyrightText Andreas Cord-Landwehr <cordlandwehr@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef TEST_LICENSECONVERT_H 0008 #define TEST_LICENSECONVERT_H 0009 0010 #include <QObject> 0011 0012 class TestLicenseConvert : public QObject 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 TestLicenseConvert() = default; 0018 0019 private Q_SLOTS: 0020 /** 0021 * @brief Test shall ensure correct expression ordering in regex for single license 0022 * 0023 * There are license texts for the same license, which differ only in their last character, 0024 * i.e. a missing "." at the license statement. The license text still is assumed as valid 0025 * but the regex matcher shall also match the dot. This test ensures that the dot is also 0026 * matched and replaced. 0027 */ 0028 void greedyLicenseTextConversion(); 0029 0030 void basicConvertOrExpressions(); 0031 0032 void doNotModifyFileWithoutDetectedLicense(); 0033 0034 void pruneLicenseList(); 0035 0036 /** 0037 * Conformance test with original and target file format 0038 */ 0039 void exampleFileConversion(); 0040 }; 0041 #endif