test: add unit tests for application, controls and widgets - #561
Merged
pengfeixx merged 1 commit intoSep 4, 2026
Merged
Conversation
There was a problem hiding this comment.
Sorry @pengfeixx, your pull request is larger than the review limit of 150,000 diff characters
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 优秀 ✅ 通过 潜在问题: 建议: 语法正确,逻辑清晰 2. 代码质量 ✅评价: 优秀 ✅ 通过 潜在问题:
建议: 建议将DBus桩安装逻辑提取到test_env.h或独立的stub_helper.h中,类似controls_ut模块的test_env.h共享环境模式 3. 代码性能 ✅评价: 优秀 ✅ 通过 潜在问题: 建议: 性能良好,资源使用合理 4. 代码安全 🔒评价: 优秀 ✅ 通过
安全漏洞详情: 建议: 安全合规 💡 改进建议代码示例// 暂无代码示例本报告由 AI 代码审查工具自动生成 |
lzwind
approved these changes
Sep 4, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pengfeixx The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Add GTest suites covering the editor application, find/replace bars, tab bar, toolbar, settings dialog, bottom bar and the main window. 新增应用级及查找替换栏、标签栏、工具栏、设置对话框、底栏、主窗口 等控件的 GTest 单元测试。 Log: 新增应用级与控件类单元测试 Influence: 仅新增单元测试代码,不影响编辑器本体功能。
pengfeixx
force-pushed
the
test/ut-app-controls-widgets
branch
from
September 4, 2026 08:46
2753775 to
fc74f35
Compare
|
Warning
详情 {
"unset": {
"tests/app_ut/test_editorapplication.cpp": {
"b": [
" qunsetenv(\"XDG_CONFIG_HOME\");",
" qunsetenv(\"XDG_DATA_HOME\");"
]
},
"tests/controls_ut/test_env.h": {
"b": [
" // qputenv/qunsetenv \u8ba1\u6570\u5e73\u8861\uff0c\u907f\u514d\u5411\u5bbf\u4e3b\u8fdb\u7a0b\u6cc4\u6f0f",
" qunsetenv(\"XDG_CONFIG_HOME\");",
" qunsetenv(\"XDG_DATA_HOME\");"
]
},
"tests/widgets_ut/test_bottombar.cpp": {
"b": [
" qunsetenv(\"XDG_CONFIG_HOME\");",
" qunsetenv(\"XDG_DATA_HOME\");"
]
},
"tests/widgets_ut/test_colorselectwdg.cpp": {
"b": [
" qunsetenv(\"XDG_CONFIG_HOME\");",
" qunsetenv(\"XDG_DATA_HOME\");"
]
},
"tests/widgets_ut/test_ddropdownmenu.cpp": {
"b": [
"// \u73af\u5883\u9694\u79bb\uff1aXDG \u91cd\u5b9a\u5411\u4e34\u65f6\u76ee\u5f55\uff08SetUpTestSuite/TearDownTestSuite qputenv/qunsetenv \u914d\u5e73\uff09\uff1b",
" qunsetenv(\"XDG_CONFIG_HOME\");",
" qunsetenv(\"XDG_DATA_HOME\");"
]
},
"tests/widgets_ut/test_dtextedit_window_integration.cpp": {
"b": [
" qunsetenv(\"XDG_CONFIG_HOME\");",
" qunsetenv(\"XDG_DATA_HOME\");"
]
},
"tests/widgets_ut/test_pathsettintwgt.cpp": {
"b": [
" qunsetenv(\"XDG_CONFIG_HOME\");",
" qunsetenv(\"XDG_DATA_HOME\");"
]
}
}
} |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
新增应用级(editorapplication)与查找/替换栏、标签栏、工具栏、设置对话框、底栏、主窗口等控件的 GTest 单元测试,共 20 个文件。
说明