2023-02-25 09:16:29 +00:00
|
|
|
#ifndef CONFIGTEST_H
|
|
|
|
#define CONFIGTEST_H
|
|
|
|
#include <QObject>
|
2023-02-25 09:23:10 +00:00
|
|
|
#include <libConfig.h>
|
2023-02-25 09:16:29 +00:00
|
|
|
#include <QtTest/QTest>
|
|
|
|
|
2023-02-25 09:44:18 +00:00
|
|
|
namespace TestCase {
|
2023-02-25 09:23:10 +00:00
|
|
|
|
2023-02-25 09:44:18 +00:00
|
|
|
class ConfigTest : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
ConfigTest(Config::Configration *test_ins);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Config::Configration *xml;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void testReload();
|
|
|
|
void testException();
|
|
|
|
void testConfig();
|
|
|
|
void testList();
|
|
|
|
void testMap();
|
|
|
|
};
|
|
|
|
}
|
2023-02-25 09:16:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif // CONFIGTEST_H
|