blob: 02a0f838fe8c598e58332408b9ae9f839b84f007 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include "extensionmanager_test.h"
#include "extensionsmodel.h"
#include <utils/fileutils.h>
#include <QTest>
namespace ExtensionManager::Internal {
class ExtensionsModelTest final : public QObject
{
Q_OBJECT
private slots:
void testRepositoryJsonParser();
};
void ExtensionsModelTest::testRepositoryJsonParser()
{
ExtensionsModel model;
model.setRepositoryPaths({testData("defaultdata")});
}
QObject *createExtensionsModelTest()
{
return new ExtensionsModelTest;
}
Utils::FilePath testData(const QString &id)
{
return Utils::FilePath::fromUserInput(":/extensionmanager/testdata/" + id);
}
} // ExtensionManager::Internal
#include "extensionmanager_test.moc"
|