fix: rule_signature conditions=None防御 + 0行表格覆盖率 + 23个新UT - Closes #21 #32

Merged
pzhang_zywl merged 1 commits from dev/issue-21-unit-tests-and-edge-cases into main 2026-06-01 13:31:04 +08:00

1 Commits

Author SHA1 Message Date
pzhang_zywl da17b3b3b2 fix: rule_signature conditions=None防御 + 0行表格覆盖率 + UT覆盖 - Closes #21
CI / test (pull_request) Successful in 9s
- step3 rule_signature: trigger.conditions=None 时使用 `or []` 防御
- step1 _quick_validate: total_rows=0 时行覆盖率设为 100% 而非 0%
- test_step1: 新增 TestHasSectionContent (10个) + TestQuickValidateEmptySections (2个)
- test_step3: 新增 TestRuleSignature (7个) + TestNormalizeRule (4个)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 13:29:25 +08:00