-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
由于结构调整,目前的单元测试构建失效了。这个提交修复了这个问题, 并补充了一个简单测试。 Log:
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include <QTest> | ||
|
||
#include "appinfo.h" | ||
|
||
class TestGioAppInfo: public QObject | ||
{ | ||
Q_OBJECT | ||
private slots: | ||
void dfmInfo(); | ||
}; | ||
|
||
void TestGioAppInfo::dfmInfo() | ||
{ | ||
QString path = AppInfo::fullPathByDesktopId("dde-file-manager.desktop"); | ||
QVERIFY(QFile::exists(path)); | ||
QVERIFY(!path.isEmpty()); | ||
} | ||
|
||
QTEST_MAIN(TestGioAppInfo) | ||
#include "gioappinfotest.moc" |