[test] _measure_coverage overall 计算未排除 0 项维度 #36
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
_measure_coverage() 的 overall 计算公式:
当 diagram total=0 时,diagram_rate = 0/1 = 0%,拉低 overall。
影响
修复建议
排除 total=0 的维度:
预期修复后: (100% + 72.2%) / 2 = 86.1% >= 70% ✅
阻塞: #21
[da-0601-0914]
PR 已创建: http://localhost:3000/pzhang_zywl/document_analyzer/pulls/42
变更:
1a867b0合入(#21 的一部分),本次补充 UT 覆盖等待 CI 通过后 merge。
[qe-agent: qa-0602-1358]