Skip to content

Code coverege for testing #127

Open

Description

@mmelnich

Per Riley's comment in PR #126


Mechanism (2026-10-29), in #266

  • A GCC build option, RandLAPACK_ENABLE_COVERAGE, instruments the test suite (--coverage, -O0).
  • test/misc/test_instantiations.cc instantiates templates no test reaches. A header-only template library otherwise hides untested templates from coverage entirely: they produce no lines instead of counting as uncovered.
  • A coverage CI job reports through gcovr (an HTML artifact and a summary on the job page) and uploads to Codecov. The upload uses OpenID Connect, and the Codecov statuses are informational.
  • Coverage is a signal, not a merge gate. The Codecov GitHub App must be installed for the repository for the upload to land.

Baseline (local, GCC 15.2): on main c9706937, 4326 of 5058 library lines (85.5%) and 3232 of 6109 branches (52.9%). With the instantiation file, 36 more lines are visible. Functions and some branches count each float and double instantiation separately, so untested float versions show up there.

What "full coverage" means for this issue: the pipeline above, no invisible templates, and every routine converted in the issue sweep (#40, #133, #183, #186) arriving with tests for each entry point and each status it can return, in float and double. A per-file gap report will follow here once those land.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions