File indexing completed on 2024-09-15 03:40:05
0001 /* 0002 SPDX-FileCopyrightText: 2021 Igor Kushnir <igorkuo@gmail.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "katemodemanager_test.h" 0008 0009 #include <katemodemanager.h> 0010 0011 #include <QString> 0012 #include <QTest> 0013 0014 void KateModeManagerTest::testWildcardsFind_data() 0015 { 0016 wildcardsFindTestData(); 0017 } 0018 0019 void KateModeManagerTest::testWildcardsFind() 0020 { 0021 QFETCH(QString, fileName); 0022 QFETCH(QString, fileTypeName); 0023 0024 QCOMPARE(m_modeManager->wildcardsFind(fileName), fileTypeName); 0025 } 0026 0027 void KateModeManagerTest::testMimeTypesFind_data() 0028 { 0029 mimeTypesFindTestData(); 0030 } 0031 0032 void KateModeManagerTest::testMimeTypesFind() 0033 { 0034 QFETCH(QString, mimeTypeName); 0035 QFETCH(QString, fileTypeName); 0036 0037 QCOMPARE(m_modeManager->mimeTypesFind(mimeTypeName), fileTypeName); 0038 } 0039 0040 QTEST_MAIN(KateModeManagerTest) 0041 0042 #include "moc_katemodemanager_test.cpp"