File indexing completed on 2024-04-28 11:20:32

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003     SPDX-FileCopyrightText: 2018 Nikita Sirgienko <warquark@gmail.com>
0004     SPDX-FileCopyrightText: 2023 Alexander Semke <alexander.semke@web.de>
0005 */
0006 
0007 #ifndef _TESTLUA_H
0008 #define _TESTLUA_H
0009 
0010 #include "backendtest.h"
0011 
0012 /** This class test some of the basic functions of the Lua backend
0013     The different tests represent some general expressions for preventing possible future regression
0014 **/
0015 class TestLua : public BackendTest
0016 {
0017   Q_OBJECT
0018 
0019 private Q_SLOTS:
0020     void testSimpleCommand();
0021 
0022     void testMultilineCommand01();
0023     void testMultilineCommand02();
0024 
0025     void testVariableDefinition();
0026     void testInvalidSyntax();
0027     void testIfElseCondition();
0028     void testForLoop();
0029     void testWhileLoop();
0030     void testFunction();
0031 
0032 private:
0033     QString backendName() override;
0034 };
0035 
0036 #endif /* _TESTLUA_H */
0037