A rejected nested COV_JUSTIFIED_START lets its STOP close the enclosing region

オープン 初心者向け
#96 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
73/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
testing-qa

調査の方向性

Issue で示されたエントリーポイント justify.scan_file_for_markers から始め、不明な ID と、プラットフォームでフィルタリングされた COV_JUSTIFIED_START マーカーがリージョンスタック上でどのように処理されるかを追ってください。Issue の再現例を使って、どの行が正当化され、どの警告が報告されるかを確認してください。拒否された内側のリージョンの STOP が外側のリージョンを閉じなくなり、内側の行をクレジットするかどうかという Issue の未解決の問いが解決されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

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時間
マージ済み PR(30日)
16

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-score/coverage_tool のほかの issue

eclipse-score/coverage_tool の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。