| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
!2971 merge test/storage-radar-ut into master test: 补充StorageRadar单元测试覆盖 Created-by: Clone_Zhang Commit-by: Clone_Zhang Merged-by: openharmony_ci Description: **Description:** 新增 StorageRadar 类的单元测试,覆盖此前零 UT 覆盖的 29 个公开 API 方法。共 91 个测试用例,1449 行代码。 覆盖范围: - 23 个 Report* 静态方法(ReportActiveUserKey/ReportVolumeOperation/ReportUserKeyResult/ReportUpdateUserAuth/ReportFbexResult/ReportIamResult/ReportHuksResult/ReportMtpResult/ReportStorageUsage/ReportKeyRingResult/ReportOsAccountResult/ReportEl5KeyMgrResult/ReportTEEClientResult/ReportBundleMgrResult/ReportSaSizeResult/ReportSpaceRadar/ReportStorageStatusRadar x2/ReportCommonResult/ReportSetQuotaByBaseline/ReportFucBehavior/ReportGetStorageStatus/ReportUserManager) - 3 个 Record* 实例方法(RecordFunctionResult/RecordStorageStatusResult/RecordFaultResult) - 3 个工具方法(ReportStatistics/ReportDuration/RecordCurrentTime) 测试场景:正常参数、空字符串、边界 userId、全枚举值遍历(7 个 BizScene、39 个 BizStage)、错误码组合。 **Issue number:** #2358 **Test & Result:** - 新增 storage_radar_test.cpp(1449 行,91 个 HWTEST_F 用例) - 更新 BUILD.gn 注册 ohos_unittest("storage_radar_test") - 使用 HWTEST_F 框架,符合 OH 编码规范(函数≤50行、@tc.name/@tc.desc/@tc.type 注释) - 编译验证需在 OH 源码根目录执行 hb build **CodeCheck:** | 类型 | 自检项 | 自检结果 | |------|--------|----------| | 多线程相关 | 单元测试无共享状态 | 不涉及 | | 内存相关 | 使用栈变量和 EXPECT_NO_FATAL_FAILURE | 通过 | | 内存相关 | 无手动资源申请 | 通过 | | 校验外部输入 | 测试参数均为字面量构造 | 通过 | | 数学运算 | 无混合运算 | 不涉及 | | 秘钥相关 | 不涉及口令/秘钥 | 不涉及 | | 权限相关 | 单元测试不对外提供接口 | 不涉及 | | 内核操作 | 无 mmap/copy_from_user | 不涉及 | See merge request: openharmony/filemanagement_storage_service!2971 | 4 天前 | |
fix:code Signed-off-by: 2301_76815458 <zhouaoteng@h-partners.com> | 9 天前 | |
fix:code Signed-off-by: 2301_76815458 <zhouaoteng@h-partners.com> | 9 天前 | |
修改审计日志实现 Signed-off-by: cuiruibin <cuiruibin3@h-partners.com> | 2 个月前 | |
part5 Signed-off-by: dengrenqi <dengrenqi1@h-partners.com> | 3 个月前 | |
part2_log Signed-off-by: dengrenqi <dengrenqi1@h-partners.com> | 3 个月前 | |
整改日志打印 Signed-off-by: zhonglufu <zhonglufu@h-partners.com> | 6 天前 | |
add空间统计故障打点接口,方便后续打点调用 Signed-off-by: libo429 <libo429@h-partners.com> | 17 天前 | |
fix:storage Signed-off-by: zhouoaoteng <zhouaoteng@h-partners.com> | 4 个月前 | |
storage_service接入xcollie支持watchdog功能 Signed-off-by: lianwei <lianwei3@huawei.com> | 1 年前 | |
整改日志打印 Signed-off-by: zhonglufu <zhonglufu@h-partners.com> | 6 天前 | |
修改审计日志实现 Signed-off-by: cuiruibin <cuiruibin3@h-partners.com> | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 天前 | ||
| 9 天前 | ||
| 9 天前 | ||
| 2 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 6 天前 | ||
| 17 天前 | ||
| 4 个月前 | ||
| 1 年前 | ||
| 6 天前 | ||
| 2 个月前 |