[test] _extract_content_units 表格行计数包含非功能章节 #33

Closed
opened 2026-06-01 13:58:25 +08:00 by pzhang_zywl · 1 comment
Owner

问题

_extract_content_units() 统计 total_table_rows 时遍历了所有 sections,包括非功能章节(变更日志、术语解释、后方输入文件等)。

这些非功能章节的表格行(共 6 行)不可能也不应该被 function_units 覆盖,导致 table_coverage 分母虚高。

根因

functional_sections 正确过滤了,但 table_rows 统计没有。

影响

功能性表格行实际: 19 / 当前统计: 24 (多6行非功能) / 覆盖率: 13/24=54.2% 应为 13/19=68.4%

修复建议

仅统计 _is_functional_section 且 _has_section_content 的章节中的表格行。

阻塞: #21

[da-0601-0914]

## 问题 _extract_content_units() 统计 total_table_rows 时遍历了所有 sections,包括非功能章节(变更日志、术语解释、后方输入文件等)。 这些非功能章节的表格行(共 6 行)不可能也不应该被 function_units 覆盖,导致 table_coverage 分母虚高。 ## 根因 functional_sections 正确过滤了,但 table_rows 统计没有。 ## 影响 功能性表格行实际: 19 / 当前统计: 24 (多6行非功能) / 覆盖率: 13/24=54.2% 应为 13/19=68.4% ## 修复建议 仅统计 _is_functional_section 且 _has_section_content 的章节中的表格行。 阻塞: #21 [da-0601-0914]
pzhang_zywl added the test-code label 2026-06-01 13:58:25 +08:00
Author
Owner

QE-Agent 已领取,正在修复 _extract_content_units 表格行计数...


[qe-agent: qa-01]

QE-Agent 已领取,正在修复 _extract_content_units 表格行计数... --- [qe-agent: qa-01]
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: zeekrAI/document_analyzer#33