A rejected nested COV_JUSTIFIED_START lets its STOP close the enclosing region
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 73/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- testing-qa
调研方向
从 issue 中提到的入口 justify.scan_file_for_markers 开始,跟踪它如何处理未知 ID,以及平台筛选后的 COV_JUSTIFIED_START 标记在区域栈中的处理方式。使用 issue 中的复现示例检查哪些行得到豁免,以及报告了哪些警告。当被拒绝的内层区域的 STOP 不再关闭外层区域,并且 issue 中关于是否计入内层行的未决问题得到解决时,工作即告完成。
由索引模型根据 Issue 内容生成。
描述
Found while reviewing the user manual against the implementation at fe013fe. Reproduced by calling justify.scan_file_for_markers.
A COV_JUSTIFIED_START whose id is unknown, or filtered out by the platform, is reported as a warning and is not pushed onto the region stack. Its COV_JUSTIFIED_STOP then closes the enclosing region instead. Lines inside the rejected region are credited to the outer justification, and the lines after it up to the outer STOP are not.
Reproduction
// COV_JUSTIFIED_START outer
int a;
// COV_JUSTIFIED_START nope
int b;
// COV_JUSTIFIED_STOP
int c;
// COV_JUSTIFIED_STOP
With only outer in the YAML, the scan justifies lines 2, 3 and 4 under outer and warns:
a.cpp:3: COV_JUSTIFIED_START references unknown ID 'nope'
a.cpp:7: COV_JUSTIFIED_STOP without matching START
Expected: the inner STOP closes the rejected inner region, so that outer justifies lines 2 to 6 and only the unknown id is reported. Whether the lines of the rejected inner region count under outer needs a decision; they must not be the only ones that do.
Effect
The set of justified lines depends on a marker that the tool itself rejected. The same happens when the inner justification lists another platform than the one given with --platform.
- 主要语言
- 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 小时 新手友好度 78/100
eclipse-score/coverage_tool#95 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
eclipse-score/coverage_tool#27 ·
维护者通常 2 天内回复
查看 eclipse-score/coverage_tool 的全部 Issue
相似的 Issue
-
accepted
难度 2/5 1-3 小时 新手友好度 66/100
future-agi/future-agi#5908 ·
维护者通常 1 天内回复
-
Placeholder export disables HTML image input for picture description可能已有人在做 @cloudiful 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
docling-project/docling-serve#817 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
Techiebutler/freeframe#687 ·
维护者通常 1 天内回复
-
Parse truncated verbose GC logs up to the first XML error可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug verbose GC
难度 2/5 1-3 小时 新手友好度 74/100
IBM/javacore-analyser#677 ·
维护者通常 1 天内回复
-
Image publishing fails for annotated release tags (v0.2.3 never published)可能已有人在做 @zgypa-agent 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
bolton-brush/BFD9000#119 ·