File indexing completed on 2024-05-12 04:39:05

0001 /*
0002     SPDX-License-Identifier: LGPL-2.0-only
0003 */
0004 
0005 #ifndef TEST_ASTYLE_H
0006 #define TEST_ASTYLE_H
0007 
0008 #include <QObject>
0009 
0010 #include <memory>
0011 
0012 class AStyleFormatter;
0013 
0014 class TestAstyle : public QObject
0015 {
0016     Q_OBJECT
0017 public:
0018     ~TestAstyle();
0019 
0020 private Q_SLOTS:
0021     void initTestCase();
0022 
0023     void testFuzzyMatching();
0024     void testTabMatching();
0025     void renameVariable();
0026     void overrideHelper();
0027     void varTypeAssistant();
0028     void testMultipleFormatters();
0029     void testMacroFormatting();
0030     void testContext();
0031     void testTabIndentation();
0032     void testForeach();
0033     void testPointerAlignment();
0034     void testKdeFrameworks();
0035     void testKdeFrameworks_data();
0036 
0037 private:
0038     std::unique_ptr<AStyleFormatter> m_formatter;
0039 };
0040 
0041 #endif // TEST_ASTYLE_H