test: 增量补全未覆盖访问器单元测试(Device vendor/DriverInfo getters,批次 2) - #728
Conversation
…verInfo getters Incrementally cover previously-uncovered simple accessor functions. Batch classes covered: - DeviceManager: DeviceAudio(chip_name, vendor), DeviceBios(tomlname), DeviceBluetooth/Cdrom/Computer/Gpu/Image/Input/Memory/Monitor/OtherPCI/Others/Power(vendor) - DeviceManager: DeviceBaseInfo::setEnable (base default impl via qualified call) - MacroDefinition: DriverInfo getters (vendorName, modelName, driverName, backupFileName) Batch stats: 18 new test cases, all passing. Baseline commit: 89825dc (2026-08-06) fix(gpu): fix GPU VRAM size parsing failure on multi-line gpu-info
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos 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 |
Reviewer's GuideAdds focused unit tests to cover previously untested simple getter and base method implementations in deepin-devicemanager, specifically vendor/chip_name/tomlname accessors across various DeviceManager subclasses, DriverInfo inline getters in MacroDefinition, and the DeviceBaseInfo::setEnable base implementation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
TAG Bot New tag: 6.0.70 |
增量补全未覆盖访问器单元测试(批次 2)
继续增量补全 GUI(deepin-devicemanager)中此前未覆盖的简单访问器函数。文件放在既有
tests/src/下,构建通过file(GLOB_RECURSE)自动纳入,无需改动 CMakeLists。本批次覆盖的方法
chip_name,vendortomlnamevendorsetEnable(基类默认实现,限定名调用)vendorName,modelName,driverName,backupFileName构建与验证
make deepin-devicemanager-test通过基线
89825dcd(2026-08-06) fix(gpu): fix GPU VRAM size parsing failure on multi-line gpu-infoSummary by Sourcery
Add unit tests to cover previously untested accessor methods for device vendor and related getters in deepin-devicemanager.
Tests: