File indexing completed on 2024-05-19 15:45:12

0001 /*
0002     SPDX-FileCopyrightText: 2006 Matt Rogers <mattr@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef CMAKELEXERTEST_H
0008 #define CMAKELEXERTEST_H
0009 
0010 #include <QTest>
0011 
0012 class CMakeAst;
0013 
0014 /**
0015  * A test for the CMake parser and lexer
0016  * @author Matt Rogers <mattr@kde.org>
0017  */
0018 class CMakeParserTest : public QObject
0019 {
0020 Q_OBJECT
0021 public:
0022     CMakeParserTest();
0023     ~CMakeParserTest() override;
0024 
0025 private Q_SLOTS:
0026     void testLexerCreation();
0027     void testLexerWithFile();
0028 
0029     void testParserWithGoodData();
0030     void testParserWithGoodData_data();
0031 
0032     void testParserWithBadData();
0033     void testParserWithBadData_data();
0034 
0035     //void testAstCreation();
0036 
0037     // void testWhitespaceHandling();
0038 };
0039 
0040 #endif