Skip to content

[cpp-RCP-N2-04] DAL-B coverage report has zero branch coverage instrumentation yet asserts a 100% threshold #67

Closed

Description

@SoundMatt

Location: coverage-report.json — top-level dal/thresholdBranch fields and summary block.

Finding: The committed coverage report declares a DAL-B target and a 100% branch-coverage threshold, but its own summary reports zero total branches measured (totalBranches: 0, hitBranches: 0) and every per-file entry shows branchesTotal: 0. No branch/decision coverage data was actually collected by whatever produced this report — the branch-coverage gate is measuring a 0/0 ratio, which is vacuously "nothing failed" rather than "100% met." DAL-B (and the repo's stated ASIL-B target) requires real branch/decision coverage evidence, and this report currently provides none while still reporting a pass/fail judgement.

Recommendation: Enable branch/decision coverage collection in whatever generates coverage.info (e.g. lcov's branch-coverage flag or the equivalent gcov instrumentation) so totalBranches is nonzero, and make the CI gate that consumes this report treat "no branch data collected" as a failure rather than a vacuous pass.

Verification: Independently re-read coverage-report.json from current HEAD (commit 4b9449a, 2026-07-29). Confirmed summary.totalBranches and summary.hitBranches are both 0, thresholdBranch is 100.0, and dal is "DAL-B".

Filed from the 2026-07-29 ecosystem audit register; independently re-verified against current HEAD before filing.

Activity

  1. added a commit that references this issue on Jul 30, 2026
  2. SoundMatt commented on Jul 30, 2026

    @SoundMatt
    OwnerAuthor

    Fixed by #92 (merged), which was not auto-linked because the PR description's bold markdown around the issue numbers broke GitHub's closing-keyword parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions