mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-26 20:03:10 +00:00
39 lines
671 B
C
39 lines
671 B
C
![]() |
/*
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef KDEVPLATFORM_PLUGIN_TESTGENERATIONTEST_H
|
||
|
#define KDEVPLATFORM_PLUGIN_TESTGENERATIONTEST_H
|
||
|
|
||
|
#include <QtTest/QtTest>
|
||
|
#include <KUrl>
|
||
|
#include <KTempDir>
|
||
|
|
||
|
namespace KDevelop
|
||
|
{
|
||
|
class TemplateRenderer;
|
||
|
class SourceFileTemplate;
|
||
|
}
|
||
|
|
||
|
class TestGenerationTest : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
private slots:
|
||
|
void initTestCase();
|
||
|
void cleanupTestCase();
|
||
|
|
||
|
void init();
|
||
|
|
||
|
void yamlTemplate();
|
||
|
void cppTemplate();
|
||
|
|
||
|
private:
|
||
|
KDevelop::TemplateRenderer* renderer;
|
||
|
QScopedPointer<KTempDir> dir;
|
||
|
QUrl baseUrl;
|
||
|
|
||
|
QHash<QString,KUrl> urls(const KDevelop::SourceFileTemplate& file);
|
||
|
};
|
||
|
|
||
|
#endif // KDEVPLATFORM_PLUGIN_TESTGENERATIONTEST_H
|