Effective coverage reads function totals as line totals when the LLVM report has no branches
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 78/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 領域
- testing-qa
研究方向
從 effective_coverage.parse_index_page_totals 開始,使用 issue 中 html_report/index.html 的合成列重現問題。檢查它如何選取總數,以及如何處理 branch 儲存格 - (0/0)。重現時回傳 lines (1, 4) 和 branches (0, 0),讓有效行涵蓋率使用行總數,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Found while reviewing the user manual against the implementation at fe013fe. Reproduced by calling effective_coverage.parse_index_page_totals on a synthetic index page.
The effective-coverage path reads the totals from the LLVM HTML index page by taking the last three matches of NN.NN% (covered/total) in the page and treating them as function, line and branch totals. When the report contains no branches, llvm-cov renders the branch total as - (0/0), which does not match. The last three matches are then shifted by one cell: the function totals are read as line totals and the line totals as branch totals.
Reproduction
html_report/index.html whose only rows are
<tr><td>a.rs</td><td>100.00% (1/1)</td><td>25.00% (1/4)</td><td>- (0/0)</td></tr>
<tr><td>Totals</td><td>100.00% (1/1)</td><td>25.00% (1/4)</td><td>- (0/0)</td></tr>
parse_index_page_totals returns {'lines': (1, 1), 'branches': (1, 4)}. Expected: {'lines': (1, 4), 'branches': (0, 0)}.
Effect
With --yaml, a report without branch data is gated on the function coverage instead of the line coverage. In the example the effective line coverage is 100 % although 1 of 4 lines is covered. A Rust-only scope built without -Zcoverage-options=branch has no branch data.
Expected behavior
Read the totals from the Totals row by column, and accept - (0/0) as zero branches.
- 主要語言
- Python
- 星號
- 0
- 分支
- 4
- 平均合併
- 1 天 16 小時
- 30 天內合併 PR
- 16
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
eclipse-score/coverage_tool 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 70/100
eclipse-score/coverage_tool#101 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 74/100
eclipse-score/coverage_tool#99 · 1 則留言 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
eclipse-score/coverage_tool#98 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 73/100
eclipse-score/coverage_tool#96 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
eclipse-score/coverage_tool#27 ·
維護者通常 2 天內回覆
查看 eclipse-score/coverage_tool 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
AIR-Bench Foundation reads the first letter of the word after "answer" as the model's choice可能已有人在做 @beartester34 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
modelscope/evalscope#2330 ·
維護者通常 1 天內回覆
-
Distribution plot crashes when a numeric feature is constant in the train or test set可能已有人在做 @adembilge 今天認領。 未關閉bug good first issue
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 10 天內回覆
-
難度 1/5 1-3 小時 新手友好度 85/100
維護者通常 2 天內回覆
-
namespace team:operations
難度 2/5 1-3 小時 新手友好度 60/100
EclipseFdn/open-vsx.org#16738 ·
維護者通常 1 天內回覆